diff options
author | Ken Moore <ken@ixsystems.com> | 2017-08-18 13:22:01 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-08-18 13:22:01 -0400 |
commit | 94b73445ccaf5652714373ce6e5a6d6feeb3914d (patch) | |
tree | fdeff9b0317758d1e1e81a54c1665e898a8725b5 /src-qt5/core/libLumina/LDesktopUtils.cpp | |
parent | add lumina-fm-dev to tree while I work on it (diff) | |
download | lumina-94b73445ccaf5652714373ce6e5a6d6feeb3914d.tar.gz lumina-94b73445ccaf5652714373ce6e5a6d6feeb3914d.tar.bz2 lumina-94b73445ccaf5652714373ce6e5a6d6feeb3914d.zip |
Change around the default settings for Lumina quite a bit:
1) Turn on some themes by default (DarkGlass/Black)
2) Sync icon theme between desktop/lthemeengine
3) If DarkGlass/Black is for the desktop, automatically turn on the "darker" color scheme for applications within lthemeengine.
4) Ensure lumina-pdf is added as a default PDF viewer.
5) Change the wallpapers/interface for the TrueOS defaults.
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LDesktopUtils.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp index b79f777d..973763e8 100644 --- a/src-qt5/core/libLumina/LDesktopUtils.cpp +++ b/src-qt5/core/libLumina/LDesktopUtils.cpp @@ -409,6 +409,7 @@ void LDesktopUtils::LoadSystemDefaults(bool skipOS){ } } } + } //qDebug() << " - Final Theme Color:" << themesettings[1]; @@ -419,7 +420,16 @@ void LDesktopUtils::LoadSystemDefaults(bool skipOS){ dir.mkpath(setdir); } //Now save the settings files - if(setTheme){ LTHEME::setCurrentSettings( themesettings[0], themesettings[1], themesettings[2], themesettings[3], themesettings[4]); } + if(setTheme){ + LTHEME::setCurrentSettings( themesettings[0], themesettings[1], themesettings[2], themesettings[3], themesettings[4]); + QSettings themeset("lthemeengine","lthemeengine"); + themeset.setValue("Appearance/icon_theme",themesettings[2]); + //Quick hack for a "dark" theme/color to be uniform across the desktop/applications + if(themesettings[0].contains("DarkGlass") || themesettings[1].contains("Black")){ + themeset.setValue("Appearance/custom_palette", true); + themeset.setValue("Appearance/color_scheme_path", LOS::LuminaShare().section("/",0,-3)+"/lthemeengine/colors/darker.conf"); + } + } LUtils::writeFile(setdir+"/sessionsettings.conf", sesset, true); LUtils::writeFile(setdir+"/desktopsettings.conf", deskset, true); |