aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2024-02-10 05:23:34 -0600
committerGitHub <noreply@github.com>2024-02-10 12:23:34 +0100
commit27726c9ce1fd6ff1e581bade5911e3bf05bc59f2 (patch)
tree5e2c01731e8baaa9ee7705b2916944c10a8ae85e /include
parentff577255d3aa92ad104d674af9c789bf3be2d31f (diff)
Add integer-based theme scaling (#935)
Configurable over the options menu,
Diffstat (limited to 'include')
-rw-r--r--include/aoapplication.h2
-rw-r--r--include/options.h3
-rw-r--r--include/widgets/aooptionsdialog.h1
3 files changed, 6 insertions, 0 deletions
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;