* Stronger BMenuField popup indicator.
* Softer recessed frame for BMenuField to distinguish more from BButton and make it slightly more similar to BTextControl. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29235 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
virtual float DefaultLabelSpacing() const;
|
||||
uint32 Flags(BControl* control) const;
|
||||
|
||||
virtual void DrawButtonFrame(BView* view, BRect& rect,
|
||||
virtual void DrawButtonFrame(BView* view, BRect& rect,
|
||||
const BRect& updateRect,
|
||||
const rgb_color& base,
|
||||
uint32 flags = 0,
|
||||
@@ -80,6 +80,12 @@ public:
|
||||
const rgb_color& base,
|
||||
uint32 borders = B_ALL_BORDERS);
|
||||
|
||||
virtual void DrawMenuFieldFrame(BView* view, BRect& rect,
|
||||
const BRect& updateRect,
|
||||
const rgb_color& base,
|
||||
uint32 flags = 0,
|
||||
uint32 borders = B_ALL_BORDERS);
|
||||
|
||||
virtual void DrawMenuFieldBackground(BView* view,
|
||||
BRect& rect, const BRect& updateRect,
|
||||
const rgb_color& base, bool popupIndicator,
|
||||
@@ -203,6 +209,13 @@ public:
|
||||
const BAlignment& alignment);
|
||||
|
||||
protected:
|
||||
void _DrawButtonFrame(BView* view, BRect& rect,
|
||||
const BRect& updateRect,
|
||||
const rgb_color& base,
|
||||
float contrast, float brightness = 1.0,
|
||||
uint32 flags = 0,
|
||||
uint32 borders = B_ALL_BORDERS);
|
||||
|
||||
void _DrawOuterResessedFrame(BView* view,
|
||||
BRect& rect, const rgb_color& base,
|
||||
float contrast = 1.0f,
|
||||
|
||||
Reference in New Issue
Block a user