Mercurial > octave
comparison libgui/src/main-window.h @ 30965:291994766c55
add fusion dark style to gui
* gui-preferences-global.h: added extra styles
* main-window.cc (main_window): initiale new class variable with
default style;
(notice_settings): check desired style for extra fusion dark style
and set style togehter with new palette accordingly;
(getFusionDarkPalette): new function for creating the palette for
new fusion dark style
* main-window.h: new function getFusionDarkPalette, new class variable
m_default_palette
* settings-dialog.cc (settings_dialog): add new stayle to combo box
with styles
author | Farid Partonia <f.partonia@gmail.com> |
---|---|
date | Thu, 21 Apr 2022 13:35:47 +0430 |
parents | e2c8c852399e |
children | 0b402f523f09 |
comparison
equal
deleted
inserted
replaced
30964:04601f6c47f4 | 30965:291994766c55 |
---|---|
151 void open_octave_packages_page (void); | 151 void open_octave_packages_page (void); |
152 void open_contribute_page (void); | 152 void open_contribute_page (void); |
153 void open_donate_page (void); | 153 void open_donate_page (void); |
154 void process_settings_dialog_request (const QString& desired_tab | 154 void process_settings_dialog_request (const QString& desired_tab |
155 = QString ()); | 155 = QString ()); |
156 | |
157 void show_about_octave (void); | 156 void show_about_octave (void); |
158 void notice_settings (const gui_settings *settings, | 157 void notice_settings (const gui_settings *settings, |
159 bool update_by_worker = false); | 158 bool update_by_worker = false); |
159 QPalette getFusionDarkPalette(); | |
160 void prepare_to_exit (void); | 160 void prepare_to_exit (void); |
161 void go_to_previous_widget (void); | 161 void go_to_previous_widget (void); |
162 void reset_windows (void); | 162 void reset_windows (void); |
163 void do_reset_windows (bool show = true, bool save = true, | 163 void do_reset_windows (bool show = true, bool save = true, |
164 bool force_all = false); | 164 bool force_all = false); |
307 QHash<QMenu *, QStringList> m_hash_menu_text; | 307 QHash<QMenu *, QStringList> m_hash_menu_text; |
308 | 308 |
309 QString m_default_encoding; | 309 QString m_default_encoding; |
310 | 310 |
311 QString m_default_style; | 311 QString m_default_style; |
312 QPalette m_default_palette; | |
312 | 313 |
313 //! Toolbar. | 314 //! Toolbar. |
314 | 315 |
315 QStatusBar *m_status_bar; | 316 QStatusBar *m_status_bar; |
316 led_indicator *m_profiler_status_indicator; | 317 led_indicator *m_profiler_status_indicator; |