aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/global/LauncherPage.cpp
diff options
context:
space:
mode:
authorSantiago Cézar <santiagocezar2013@gmail.com>2022-11-01 19:06:27 -0300
committerSantiago Cézar <santiagocezar2013@gmail.com>2022-11-01 19:06:27 -0300
commit0a0ce74105b1c01bb312175a823e715d6abb310c (patch)
treedb0c0531b98e03cedc05e3fa19fdbbc3ac6b9993 /launcher/ui/pages/global/LauncherPage.cpp
parent7086b1e65ceab38c823542af2c652726d2ad1e09 (diff)
downloadPrismLauncher-0a0ce74105b1c01bb312175a823e715d6abb310c.tar.gz
PrismLauncher-0a0ce74105b1c01bb312175a823e715d6abb310c.tar.bz2
PrismLauncher-0a0ce74105b1c01bb312175a823e715d6abb310c.zip
add rory
Signed-off-by: Santiago Cézar <santiagocezar2013@gmail.com> Co-authored-by: Ashtaka <66513643+AshtakaOOf@users.noreply.github.com>
Diffstat (limited to 'launcher/ui/pages/global/LauncherPage.cpp')
-rw-r--r--launcher/ui/pages/global/LauncherPage.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/LauncherPage.cpp b/launcher/ui/pages/global/LauncherPage.cpp
index 4ae7509c..44421d3b 100644
--- a/launcher/ui/pages/global/LauncherPage.cpp
+++ b/launcher/ui/pages/global/LauncherPage.cpp
@@ -334,6 +334,15 @@ void LauncherPage::applySettings()
APPLICATION->setApplicationTheme(newAppTheme, false);
}
+ switch (ui->themeBackgroundCat->currentIndex()) {
+ case 0: // original cat
+ s->set("BackgroundCat", "kitteh");
+ break;
+ case 1: // rory the cat
+ s->set("BackgroundCat", "rory");
+ break;
+ }
+
s->set("MenuBarInsteadOfToolBar", ui->preferMenuBarCheckBox->isChecked());
// Console settings
@@ -425,6 +434,13 @@ void LauncherPage::loadSettings()
ui->themeComboBox->setCurrentIndex(9);
}
+ auto cat = s->get("BackgroundCat").toString();
+ if (cat == "kitteh") {
+ ui->themeBackgroundCat->setCurrentIndex(0);
+ } else if (cat == "rory") {
+ ui->themeBackgroundCat->setCurrentIndex(1);
+ }
+
{
auto currentTheme = s->get("ApplicationTheme").toString();
auto themes = APPLICATION->getValidApplicationThemes();