Deskbar: Always AdoptParentColors() on StatusView
... be_control_look is assumed. Change-Id: If41f74ede3debd5439093e0172294861f65f5d6b Reviewed-on: https://review.haiku-os.org/c/haiku/+/8832 Haiku-Format: Haiku-format Bot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
e7735d59c3
commit
297aa21e46
@@ -180,11 +180,7 @@ TReplicantTray::AttachedToWindow()
|
||||
{
|
||||
BView::AttachedToWindow();
|
||||
|
||||
if (be_control_look != NULL) {
|
||||
AdoptParentColors();
|
||||
} else {
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR, B_DARKEN_1_TINT);
|
||||
}
|
||||
AdoptParentColors();
|
||||
SetDrawingMode(B_OP_COPY);
|
||||
|
||||
Window()->SetPulseRate(1000000);
|
||||
@@ -1373,10 +1369,7 @@ TDragRegion::AttachedToWindow()
|
||||
|
||||
CalculateRegions();
|
||||
|
||||
if (be_control_look != NULL)
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
|
||||
else
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR);
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
|
||||
|
||||
ResizeToPreferred();
|
||||
}
|
||||
@@ -1789,10 +1782,7 @@ TResizeControl::AttachedToWindow()
|
||||
{
|
||||
BView::AttachedToWindow();
|
||||
|
||||
if (be_control_look != NULL)
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
|
||||
else
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR);
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user