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:
John Scipione
2025-01-14 22:46:39 +00:00
committed by waddlesplash
parent e7735d59c3
commit 297aa21e46
+3 -13
View File
@@ -180,11 +180,7 @@ TReplicantTray::AttachedToWindow()
{ {
BView::AttachedToWindow(); BView::AttachedToWindow();
if (be_control_look != NULL) { AdoptParentColors();
AdoptParentColors();
} else {
SetViewUIColor(B_MENU_BACKGROUND_COLOR, B_DARKEN_1_TINT);
}
SetDrawingMode(B_OP_COPY); SetDrawingMode(B_OP_COPY);
Window()->SetPulseRate(1000000); Window()->SetPulseRate(1000000);
@@ -1373,10 +1369,7 @@ TDragRegion::AttachedToWindow()
CalculateRegions(); CalculateRegions();
if (be_control_look != NULL) SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
else
SetViewUIColor(B_MENU_BACKGROUND_COLOR);
ResizeToPreferred(); ResizeToPreferred();
} }
@@ -1789,10 +1782,7 @@ TResizeControl::AttachedToWindow()
{ {
BView::AttachedToWindow(); BView::AttachedToWindow();
if (be_control_look != NULL) SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
SetViewUIColor(B_MENU_BACKGROUND_COLOR, 1.1);
else
SetViewUIColor(B_MENU_BACKGROUND_COLOR);
} }