summaryrefslogtreecommitdiff
path: root/src/settingsdialogworkarounds.cpp
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2021-03-02 03:36:50 -0700
committerChris Bessent <lost.dragonist@gmail.com>2021-03-02 04:07:46 -0700
commit726b381ea715631953d843596176faac72083fa3 (patch)
tree4620813a3710ec9fb94ab27f860d55dd0a178bd4 /src/settingsdialogworkarounds.cpp
parentf8a50edd0fa010a32057158c9033130d92267fd8 (diff)
Add scrollbars to some settings tabs to reduce minimum size
The previous minimum size was around 450 x 560px. At a DPI scaling of 200%, this means 900 x 1120px which extends off the typical 1080p screen. Why is someone using 200% scaling on a 1080p screen? I have no clue. Now, the minimum size is around 450 x 410px for 900 x 820 px at 200% scaling. Which works for anything short of a 1376 x 768 screen at 200% scaling which I just don't really care about.
Diffstat (limited to 'src/settingsdialogworkarounds.cpp')
-rw-r--r--src/settingsdialogworkarounds.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/settingsdialogworkarounds.cpp b/src/settingsdialogworkarounds.cpp
index 17b2259b..b742a8fe 100644
--- a/src/settingsdialogworkarounds.cpp
+++ b/src/settingsdialogworkarounds.cpp
@@ -8,6 +8,10 @@
WorkaroundsSettingsTab::WorkaroundsSettingsTab(Settings& s, SettingsDialog& d)
: SettingsTab(s, d)
{
+ // Set scrollarea to transparent
+ ui->workaroundScrollArea->setStyleSheet("QScrollArea { background-color: transparent; }");
+ ui->workaroundScrollAreaWidgetContents->setStyleSheet("background-color: transparent;");
+
// options
ui->forceEnableBox->setChecked(settings().game().forceEnableCoreFiles());
ui->lockGUIBox->setChecked(settings().interface().lockGUI());