From 726b381ea715631953d843596176faac72083fa3 Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Tue, 2 Mar 2021 03:36:50 -0700 Subject: 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. --- src/settingsdialogworkarounds.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/settingsdialogworkarounds.cpp') 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()); -- cgit v1.3.1