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 <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
John Scipione 2025-01-14 16:29:43 -05:00 committed by waddlesplash
parent e7735d59c3
commit 297aa21e46

View File

@ -180,11 +180,7 @@ TReplicantTray::AttachedToWindow()
{
BView::AttachedToWindow();
if (be_control_look != NULL) {
AdoptParentColors();
} else {
SetViewUIColor(B_MENU_BACKGROUND_COLOR, B_DARKEN_1_TINT);
}
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);
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);
}