Fixed LowColor() of "background" view. Seems this was always wrong, but now we
are running without offscreen view, and this caused dark slider background, since LowColor() was unintentionally B_TRANSPARENT_COLOR. Fixes #5323. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35284 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -392,7 +392,7 @@ BSlider::AttachedToWindow()
|
|||||||
BView* view = OffscreenView();
|
BView* view = OffscreenView();
|
||||||
if (view && view->LockLooper()) {
|
if (view && view->LockLooper()) {
|
||||||
view->SetViewColor(B_TRANSPARENT_COLOR);
|
view->SetViewColor(B_TRANSPARENT_COLOR);
|
||||||
view->SetLowColor(ViewColor());
|
view->SetLowColor(LowColor());
|
||||||
view->UnlockLooper();
|
view->UnlockLooper();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -827,7 +827,7 @@ BSlider::Draw(BRect updateRect)
|
|||||||
|
|
||||||
if (fOffScreenBits->Lock()) {
|
if (fOffScreenBits->Lock()) {
|
||||||
fOffScreenView->SetViewColor(ViewColor());
|
fOffScreenView->SetViewColor(ViewColor());
|
||||||
fOffScreenView->SetLowColor(ViewColor());
|
fOffScreenView->SetLowColor(LowColor());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (drawBackground && background.Frame().IsValid())
|
if (drawBackground && background.Frame().IsValid())
|
||||||
|
|||||||
Reference in New Issue
Block a user