diff options
author | François Revol <revol@free.fr> | 2014-01-01 17:41:23 +0100 |
---|---|---|
committer | François Revol <revol@free.fr> | 2014-01-04 19:44:02 +0100 |
commit | bd89e5a0883b4c5444ec41ff7c70bb9053ef2442 (patch) | |
tree | fceb3727d1d567ad41ecf9ac993bf2a718ddb345 /beos | |
parent | 92afacbe6fde01cdbf8cc02076e0a40d8581682e (diff) | |
download | netsurf-bd89e5a0883b4c5444ec41ff7c70bb9053ef2442.tar.gz netsurf-bd89e5a0883b4c5444ec41ff7c70bb9053ef2442.tar.bz2 |
beos: Fix background color for control on replicants
Still some redundancy there but it works.
Diffstat (limited to 'beos')
-rw-r--r-- | beos/scaffolding.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp index 36ba9ea63..26ca2e952 100644 --- a/beos/scaffolding.cpp +++ b/beos/scaffolding.cpp @@ -606,13 +606,23 @@ NSBaseView::AllAttached() g->url_bar->SetTarget(this); - SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); + rgb_color c = ui_color(B_PANEL_BACKGROUND_COLOR); + SetViewColor(c); - g->tool_bar->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - g->dragger->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); + g->tool_bar->SetViewColor(c); + g->back_button->SetViewColor(c); + g->forward_button->SetViewColor(c); + g->stop_button->SetViewColor(c); + g->reload_button->SetViewColor(c); + g->home_button->SetViewColor(c); + g->url_bar->SetViewColor(c); + g->throbber->SetViewColor(c); + g->scroll_view->SetViewColor(c); - g->status_bar->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - g->status_bar->SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR)) ; + g->dragger->SetViewColor(c); + + g->status_bar->SetViewColor(c); + g->status_bar->SetLowColor(c); #if defined(__HAIKU__) || defined(B_DANO_VERSION) g->status_bar->SetHighColor(ui_color(B_PANEL_TEXT_COLOR)); #endif @@ -1344,6 +1354,8 @@ void nsbeos_attach_toplevel_view(nsbeos_scaffolding *g, BView *view) g->url_bar->SetTarget(view); + nsbeos_scaffolding_update_colors(g); + if (g->window) { recursively_set_menu_items_target(g->menu_bar, view); |