From e5147b1d89129dea744fadecd501db2e8b981fbb Mon Sep 17 00:00:00 2001 From: John Scipione Date: Wed, 13 Apr 2016 15:39:33 -0700 Subject: [PATCH] Nebula: Set View color in constructor We don't need to wait for AttachedToWindow for view color unlike high and low color. --- src/add-ons/screen_savers/nebula/Nebula.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/screen_savers/nebula/Nebula.cpp b/src/add-ons/screen_savers/nebula/Nebula.cpp index 86f26f9545..014b0993f5 100644 --- a/src/add-ons/screen_savers/nebula/Nebula.cpp +++ b/src/add-ons/screen_savers/nebula/Nebula.cpp @@ -464,6 +464,8 @@ SettingsView::SettingsView(BRect frame) : BView(frame, "", B_FOLLOW_ALL, B_WILL_DRAW) { + SetViewUIColor(B_PANEL_BACKGROUND_COLOR); + BStringView* titleString = new BStringView(B_EMPTY_STRING, B_TRANSLATE("Nebula")); titleString->SetFont(be_bold_font); @@ -604,8 +606,6 @@ SettingsView::SettingsView(BRect frame) void SettingsView::AttachedToWindow() { - SetViewUIColor(B_PANEL_BACKGROUND_COLOR); - fWidthMenu->Menu()->SetTargetForItems(this); fColorMenu->Menu()->SetTargetForItems(this); fBorderMenu->Menu()->SetTargetForItems(this);