changeset 25385:2b0680bdb1ed stable

Remove code to install default colors for qt toolkit from window theme (bug #53805). Default colors should come from root graphics object, not current window theme. * __init_qt__.cc (__init__): Delete code that copied colors from window theme and set these colors on the root graphics object.
author Rik <rik@octave.org>
date Wed, 16 May 2018 22:02:10 -0700
parents 61ba501d8f04
children dd77a0628cce 6cf9d00ad848
files libgui/graphics/__init_qt__.cc
diffstat 1 files changed, 0 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/__init_qt__.cc	Tue May 15 14:53:41 2018 -0400
+++ b/libgui/graphics/__init_qt__.cc	Wed May 16 22:02:10 2018 -0700
@@ -66,38 +66,6 @@
 
             octave::interpreter::add_atexit_function ("__shutdown_qt__");
 
-            // Change some default settings to use Qt default colors
-            QPalette p;
-            graphics_object root = gh_manager::get_object (0);
-
-            /*
-            root.set ("defaultfigurecolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Window))));
-            */
-            root.set ("defaultuicontrolbackgroundcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Window))));
-            root.set ("defaultuicontrolforegroundcolor",
-                      octave_value (Utils::toRgb
-                                    (p.color (QPalette::WindowText))));
-            root.set ("defaultuipanelbackgroundcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Window))));
-            root.set ("defaultuipanelforegroundcolor",
-                      octave_value (Utils::toRgb
-                                    (p.color (QPalette::WindowText))));
-            root.set ("defaultuipanelhighlightcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Light))));
-            root.set ("defaultuipanelshadowcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Dark))));
-            root.set ("defaultuibuttongroupbackgroundcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Window))));
-            root.set ("defaultuibuttongroupforegroundcolor",
-                      octave_value (Utils::toRgb
-                                    (p.color (QPalette::WindowText))));
-            root.set ("defaultuibuttongrouphighlightcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Light))));
-            root.set ("defaultuibuttongroupshadowcolor",
-                      octave_value (Utils::toRgb (p.color (QPalette::Dark))));
-
             qtHandlesInitialized = true;
 
             return true;