From c74bf433c3357935a150ccc617d593eb1f673194 Mon Sep 17 00:00:00 2001 From: François Revol Date: Thu, 16 Jan 2014 18:12:41 +0100 Subject: beos: Fix updating system colors --- beos/gui.cpp | 10 +++++++--- beos/scaffolding.cpp | 3 +-- beos/window.cpp | 3 +-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/beos/gui.cpp b/beos/gui.cpp index 9e730a0c8..feac53a29 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -128,6 +128,7 @@ NSBrowserApplication::MessageReceived(BMessage *message) { switch (message->what) { case B_REFS_RECEIVED: + case B_UI_SETTINGS_CHANGED: // messages for top-level // we'll just send them to the first window case 'back': @@ -468,6 +469,11 @@ static nserror set_defaults(struct nsoption_s *defaults) return NSERROR_OK; } +void nsbeos_update_system_ui_colors(void) +{ + set_defaults(nsoptions); +} + /** * Ensures output logging stream is correctly configured */ @@ -511,9 +517,7 @@ static void gui_init(int argc, char** argv) return; } - // ui_color() gives hardcoded values before BApplication is created. - //FIXME: - //nsbeos_update_system_ui_colors(); + nsbeos_update_system_ui_colors(); fetch_rsrc_register(); diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp index aede7aec4..c673f19a5 100644 --- a/beos/scaffolding.cpp +++ b/beos/scaffolding.cpp @@ -929,8 +929,7 @@ void nsbeos_scaffolding_dispatch_event(nsbeos_scaffolding *scaffold, BMessage *m break; } case B_UI_SETTINGS_CHANGED: - //FIXME: - //nsbeos_update_system_ui_colors(); + nsbeos_update_system_ui_colors(); nsbeos_scaffolding_update_colors(scaffold); break; case B_NETPOSITIVE_OPEN_URL: diff --git a/beos/window.cpp b/beos/window.cpp index 5863c06ae..0040a1d0c 100644 --- a/beos/window.cpp +++ b/beos/window.cpp @@ -643,8 +643,7 @@ void nsbeos_dispatch_event(BMessage *message) case B_MOUSE_WHEEL_CHANGED: break; case B_UI_SETTINGS_CHANGED: - //FIXME: - //nsbeos_update_system_ui_colors(); + nsbeos_update_system_ui_colors(); break; case 'nsLO': // login { -- cgit v1.2.3