diff options
| author | Chris Bessent <lost.dragonist@gmail.com> | 2021-03-02 21:20:23 -0700 |
|---|---|---|
| committer | Chris Bessent <lost.dragonist@gmail.com> | 2021-03-02 21:20:23 -0700 |
| commit | eee1b4b3f16b619fbb03297ba2d9803198e78ab9 (patch) | |
| tree | 6cc67e1be83112efa1f7898d74664cf8f84a3916 | |
| parent | 726b381ea715631953d843596176faac72083fa3 (diff) | |
Put stylesheet stuff into .ui file instead
| -rw-r--r-- | src/settingsdialog.ui | 18 | ||||
| -rw-r--r-- | src/settingsdialoggeneral.cpp | 4 | ||||
| -rw-r--r-- | src/settingsdialognexus.cpp | 4 | ||||
| -rw-r--r-- | src/settingsdialogworkarounds.cpp | 4 |
4 files changed, 15 insertions, 15 deletions
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 @@ <layout class="QGridLayout" name="gridLayout" rowstretch="0"> <item row="0" column="0"> <widget class="QScrollArea" name="generalScrollArea"> + <property name="styleSheet"> + <string notr="true">#generalScrollArea { background-color: transparent; } +#generalScrollAreaWidgetContents { background-color: transparent; }</string> + </property> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> @@ -45,7 +49,7 @@ </rect> </property> <property name="autoFillBackground"> - <bool>true</bool> + <bool>false</bool> </property> <layout class="QVBoxLayout" name="verticalLayout_8"> <property name="leftMargin"> @@ -987,6 +991,10 @@ If you disable this feature, MO will only display official DLCs this way. Please <layout class="QVBoxLayout" name="verticalLayout_4" stretch="0"> <item> <widget class="QScrollArea" name="nexusScrollArea"> + <property name="styleSheet"> + <string notr="true">#nexusScrollArea { background-color: transparent; } +#nexusScrollAreaWidgetContents { background-color: transparent; }</string> + </property> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> @@ -1006,7 +1014,7 @@ If you disable this feature, MO will only display official DLCs this way. Please </rect> </property> <property name="autoFillBackground"> - <bool>true</bool> + <bool>false</bool> </property> <layout class="QVBoxLayout" name="verticalLayout_34"> <property name="leftMargin"> @@ -1663,6 +1671,10 @@ If you disable this feature, MO will only display official DLCs this way. Please <layout class="QVBoxLayout" name="verticalLayout_5"> <item> <widget class="QScrollArea" name="workaroundScrollArea"> + <property name="styleSheet"> + <string notr="true">#workaroundScrollArea { background-color: transparent; } +#workaroundScrollAreaWidgetContents { background-color: transparent; }</string> + </property> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> @@ -1682,7 +1694,7 @@ If you disable this feature, MO will only display official DLCs this way. Please </rect> </property> <property name="autoFillBackground"> - <bool>true</bool> + <bool>false</bool> </property> <layout class="QVBoxLayout" name="verticalLayout_6"> <property name="leftMargin"> 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()); |
