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:
@@ -323,8 +323,11 @@ BSlider::AttachedToWindow()
|
|||||||
|
|
||||||
BControl::AttachedToWindow();
|
BControl::AttachedToWindow();
|
||||||
|
|
||||||
if (view && Parent()) {
|
if (view) {
|
||||||
rgb_color color = Parent()->ViewColor();
|
|
||||||
|
rgb_color color = ViewColor();
|
||||||
|
if (Parent() != NULL)
|
||||||
|
color = Parent()->ViewColor();
|
||||||
|
|
||||||
/* fOffScreenBits->Lock();
|
/* fOffScreenBits->Lock();
|
||||||
fOffScreenView->SetViewColor(color);
|
fOffScreenView->SetViewColor(color);
|
||||||
|
|||||||
Reference in New Issue
Block a user