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:
committed by
Jessica Hamilton
parent
dd1c718026
commit
405208a782
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user