[haiku-bugs] Re: [Haiku] #7921: Control Look lost in child view
- From: "axeld" <trac@xxxxxxxxxxxx>
- Date: Tue, 16 Aug 2011 17:48:01 -0000
#7921: Control Look lost in child view
----------------------------------+-----------------------
Reporter: Pete | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1/alpha3
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+-----------------------
Changes (by axeld):
* cc: stippi (added)
Comment:
The description wasn't really correct. The button is drawn just fine, only
that it has no visible background. This is because BControl actually
inherits the background color from its parent.
The difference between the BControlLook version, and the old one is that
the new one is taking the background color into account, and uses it as a
base to draw its gradient -- which turns out not to be visible when the
background is white. IOW BButton is matching its background.
Since any good UI should just use the defaults (ie.
B_PANEL_BACKGROUND_COLOR) as background, it usually doesn't make a
difference. I'm CC'ing stippi, maybe he has a good reason why BButton
behaves this way. While I like that BButton is able to behave that way,
I'm not sure this should be the default.
--
Ticket URL: <http://dev.haiku-os.org/ticket/7921#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts: