X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fglobalsettings.hpp;h=bc2a4acd795c8d2bab594eccfd84474e006ce609;hb=1fd847fedce2d8b93080ee7cd4d8c86aa916f6d2;hp=d23bf637153a093b277671aad684d506ec31a561;hpb=37b0bd3594a0effb8252c22377f003deafc55b19;p=pulseview.git diff --git a/pv/globalsettings.hpp b/pv/globalsettings.hpp index d23bf637..bc2a4acd 100644 --- a/pv/globalsettings.hpp +++ b/pv/globalsettings.hpp @@ -52,6 +52,8 @@ class GlobalSettings : public QSettings public: static const QString Key_General_Theme; + static const QString Key_General_Style; + static const QString Key_General_SaveWithSetup; static const QString Key_View_ZoomToFitDuringAcq; static const QString Key_View_ZoomToFitAfterAcq; static const QString Key_View_TriggerIsZeroTime; @@ -66,8 +68,10 @@ public: static const QString Key_View_DefaultLogicHeight; static const QString Key_View_ShowHoverMarker; static const QString Key_View_SnapDistance; + static const QString Key_View_CursorFillColor; static const QString Key_Dec_InitialStateConfigurable; static const QString Key_Dec_ExportFormat; + static const QString Key_Dec_AlwaysShowAllRows; static const QString Key_Log_BufferSize; static const QString Key_Log_NotifyOfStacktrace; @@ -80,9 +84,12 @@ public: public: GlobalSettings(); + void save_internal_defaults(); void set_defaults_where_needed(); + void set_bright_theme_default_colors(); + void set_dark_theme_default_colors(); - void save_default_palette(); + bool current_theme_is_dark(); void apply_theme(); static void add_change_handler(GlobalSettingsInterface *cb); @@ -122,7 +129,10 @@ private: static bool tracking_; static map tracked_changes_; + static QString default_style_; static QPalette default_palette_; + + bool is_dark_theme_; }; } // namespace pv