From 27726c9ce1fd6ff1e581bade5911e3bf05bc59f2 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 10 Feb 2024 05:23:34 -0600 Subject: Add integer-based theme scaling (#935) Configurable over the options menu, --- include/aoapplication.h | 2 ++ include/options.h | 3 +++ include/widgets/aooptionsdialog.h | 1 + 3 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 8ef2a12..72c3457 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -66,6 +66,8 @@ public: Courtroom *w_courtroom; AttorneyOnline::Discord *discord; + QFont default_font; + bool lobby_constructed = false; bool courtroom_constructed = false; diff --git a/include/options.h b/include/options.h index aba346c..2beae23 100644 --- a/include/options.h +++ b/include/options.h @@ -48,6 +48,9 @@ public: QString theme() const; void setTheme(QString value); + int themeScalingFactor() const; + void setThemeScalingFactor(int value); + // Returns the value of oocname in config.ini QString oocName() const; void setOocName(QString value); diff --git a/include/widgets/aooptionsdialog.h b/include/widgets/aooptionsdialog.h index dcc66c1..ab36652 100644 --- a/include/widgets/aooptionsdialog.h +++ b/include/widgets/aooptionsdialog.h @@ -47,6 +47,7 @@ private: QWidget *ui_settings_widget; QComboBox *ui_theme_combobox; QComboBox *ui_subtheme_combobox; + QSpinBox *ui_theme_scaling_factor_sb; QPushButton *ui_theme_reload_button; QPushButton *ui_theme_folder_button; QCheckBox *ui_evidence_double_click_cb; -- cgit