1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

Revise catpuccin palettes

This commit is contained in:
bbedward
2025-09-26 00:16:34 -04:00
parent c7b4e2c49d
commit 0ee9dcc255
2 changed files with 42 additions and 40 deletions

View File

@@ -20,7 +20,7 @@ Singleton {
property string currentTheme: "blue"
property string currentThemeCategory: "generic"
property bool isLightMode: false
property bool isLightMode: typeof SessionData !== "undefined" ? SessionData.isLightMode : false
readonly property string dynamic: "dynamic"
readonly property string custom : "custom"
@@ -82,9 +82,11 @@ Singleton {
Component.onCompleted: {
Quickshell.execDetached(["mkdir", "-p", stateDir])
matugenCheck.running = true
if (typeof SessionData !== "undefined")
if (typeof SessionData !== "undefined") {
SessionData.isLightModeChanged.connect(root.onLightModeChanged)
isLightMode = SessionData.isLightMode
}
if (typeof SettingsData !== "undefined" && SettingsData.currentThemeName) {
switchTheme(SettingsData.currentThemeName, false)
}