]> sigrok.org Git - pulseview.git/blobdiff - pv/globalsettings.hpp
Ask user about adjusting UI colors when choosing a theme
[pulseview.git] / pv / globalsettings.hpp
index d8374a354ff432c3d2edbfff810e6fb909c3389c..6f32bf01ebbb8d959ce531a17ef1e55b0a16bba8 100644 (file)
@@ -81,9 +81,12 @@ public:
 public:
        GlobalSettings();
 
-       void set_defaults_where_needed();
        void save_internal_defaults();
+       void set_defaults_where_needed();
+       void set_bright_theme_default_colors();
+       void set_dark_theme_default_colors();
 
+       bool current_theme_is_dark();
        void apply_theme();
 
        static void add_change_handler(GlobalSettingsInterface *cb);
@@ -125,6 +128,8 @@ private:
 
        static QString default_style_;
        static QPalette default_palette_;
+
+       bool is_dark_theme_;
 };
 
 } // namespace pv