PowerStatus background tint

Recent changes require us to adopt the tint value for PowerStatus's
low color as well as the ViewUIColor.

This repairs the issue where the replicant's background color was lighter
than the Deskbar's tray color.

Fixes #12566.

Signed-off-by: Jessica Hamilton <[email protected]>
This commit is contained in:
looncraz
2016-01-11 09:27:04 +13:00
committed by Jessica Hamilton
parent dd1c718026
commit 405208a782
+5 -2
View File
@@ -120,10 +120,13 @@ PowerStatusView::AttachedToWindow()
BView::AttachedToWindow();
AdoptParentColors();
if (ViewUIColor() == B_NO_COLOR)
float tint = B_NO_TINT;
color_which which = ViewUIColor(&tint);
if (which == B_NO_COLOR)
SetLowUIColor(B_PANEL_BACKGROUND_COLOR);
else
SetLowUIColor(ViewUIColor());
SetLowUIColor(which, tint);
Update();
}