From eee1b4b3f16b619fbb03297ba2d9803198e78ab9 Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Tue, 2 Mar 2021 21:20:23 -0700 Subject: Put stylesheet stuff into .ui file instead --- src/settingsdialog.ui | 18 +++++++++++++++--- src/settingsdialoggeneral.cpp | 4 ---- src/settingsdialognexus.cpp | 4 ---- src/settingsdialogworkarounds.cpp | 4 ---- 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/settingsdialog.ui b/src/settingsdialog.ui index 44114391..434136ce 100644 --- a/src/settingsdialog.ui +++ b/src/settingsdialog.ui @@ -26,6 +26,10 @@ + + #generalScrollArea { background-color: transparent; } +#generalScrollAreaWidgetContents { background-color: transparent; } + QFrame::NoFrame @@ -45,7 +49,7 @@ - true + false @@ -987,6 +991,10 @@ If you disable this feature, MO will only display official DLCs this way. Please + + #nexusScrollArea { background-color: transparent; } +#nexusScrollAreaWidgetContents { background-color: transparent; } + QFrame::NoFrame @@ -1006,7 +1014,7 @@ If you disable this feature, MO will only display official DLCs this way. Please - true + false @@ -1663,6 +1671,10 @@ If you disable this feature, MO will only display official DLCs this way. Please + + #workaroundScrollArea { background-color: transparent; } +#workaroundScrollAreaWidgetContents { background-color: transparent; } + QFrame::NoFrame @@ -1682,7 +1694,7 @@ If you disable this feature, MO will only display official DLCs this way. Please - true + false diff --git a/src/settingsdialoggeneral.cpp b/src/settingsdialoggeneral.cpp index 08fe759f..30039575 100644 --- a/src/settingsdialoggeneral.cpp +++ b/src/settingsdialoggeneral.cpp @@ -15,10 +15,6 @@ GeneralSettingsTab::GeneralSettingsTab(Settings& s, SettingsDialog& d) addLanguages(); selectLanguage(); - // Set scrollarea to transparent - ui->generalScrollArea->setStyleSheet("QScrollArea { background-color: transparent; }"); - ui->generalScrollAreaWidgetContents->setStyleSheet("background-color: transparent;"); - // download list ui->compactBox->setChecked(settings().interface().compactDownloads()); ui->showMetaBox->setChecked(settings().interface().metaDownloads()); diff --git a/src/settingsdialognexus.cpp b/src/settingsdialognexus.cpp index 13c1467e..364c6aa7 100644 --- a/src/settingsdialognexus.cpp +++ b/src/settingsdialognexus.cpp @@ -295,10 +295,6 @@ void NexusConnectionUI::updateState() NexusSettingsTab::NexusSettingsTab(Settings& s, SettingsDialog& d) : SettingsTab(s, d) { - // Set scrollarea to transparent - ui->nexusScrollArea->setStyleSheet("QScrollArea { background-color: transparent; }"); - ui->nexusScrollAreaWidgetContents->setStyleSheet("background-color: transparent;"); - ui->endorsementBox->setChecked(settings().nexus().endorsementIntegration()); ui->trackedBox->setChecked(settings().nexus().trackedIntegration()); ui->hideAPICounterBox->setChecked(settings().interface().hideAPICounter()); diff --git a/src/settingsdialogworkarounds.cpp b/src/settingsdialogworkarounds.cpp index b742a8fe..17b2259b 100644 --- a/src/settingsdialogworkarounds.cpp +++ b/src/settingsdialogworkarounds.cpp @@ -8,10 +8,6 @@ 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