Nebula: Set View color in constructor
We don't need to wait for AttachedToWindow for view color unlike high and low color.
This commit is contained in:
parent
a6ab3387c7
commit
e5147b1d89
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user