This fixes the appearance when the slider is directly added to the window, ie.
like it's done in Chart - didn't set the background correctly before. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16208 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7d34abc3e8
commit
662dc0bdc8
@ -323,8 +323,11 @@ BSlider::AttachedToWindow()
|
||||
|
||||
BControl::AttachedToWindow();
|
||||
|
||||
if (view && Parent()) {
|
||||
rgb_color color = Parent()->ViewColor();
|
||||
if (view) {
|
||||
|
||||
rgb_color color = ViewColor();
|
||||
if (Parent() != NULL)
|
||||
color = Parent()->ViewColor();
|
||||
|
||||
/* fOffScreenBits->Lock();
|
||||
fOffScreenView->SetViewColor(color);
|
||||
|
Loading…
Reference in New Issue
Block a user