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:
looncraz 2016-01-05 17:49:42 -06:00 committed by Augustin Cavalier
parent 678f8a7b5d
commit cef0a7b262
2 changed files with 2 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);