Deskbar: Correct StatusView colors following Set*UIColor merge.
Previous colors matched the menu background color, but should have been darkened. The tint value was not being updated for the SetViewUIColor call construction, therefore the tint parameter was still B_NO_TINT. Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
parent
678f8a7b5d
commit
cef0a7b262
@ -167,10 +167,8 @@ TReplicantTray::AttachedToWindow()
|
||||
{
|
||||
BView::AttachedToWindow();
|
||||
|
||||
float tint = B_NO_TINT;
|
||||
|
||||
if (be_control_look != NULL) {
|
||||
SetViewUIColor(Parent()->ViewUIColor(&tint), tint);
|
||||
AdoptParentColors();
|
||||
} else {
|
||||
SetViewUIColor(B_MENU_BACKGROUND_COLOR, B_DARKEN_1_TINT);
|
||||
}
|
||||
|
@ -135,11 +135,9 @@ TTimeView::AttachedToWindow()
|
||||
fCurrentTime = time(NULL);
|
||||
|
||||
SetFont(be_plain_font);
|
||||
float tint = B_NO_TINT;
|
||||
|
||||
if (Parent()) {
|
||||
fParent = Parent();
|
||||
SetViewUIColor(Parent()->ViewUIColor(&tint), tint);
|
||||
AdoptParentColors();
|
||||
} else
|
||||
SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user