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

Many bug fixes for media center, spotlight

This commit is contained in:
bbedward
2025-07-12 10:47:01 -04:00
parent 2375b6e7bd
commit af0522ada5
13 changed files with 180 additions and 329 deletions

View File

@@ -10,7 +10,7 @@ QtObject {
// Reference to the main shell root for calling functions
property var rootObj: null
// Apply saved theme on startup
// Initialize theme system
Component.onCompleted: {
console.log("Theme Component.onCompleted")
@@ -19,13 +19,7 @@ QtObject {
Colors.colorsUpdated.connect(root.onColorsUpdated)
}
Qt.callLater(() => {
if (typeof Prefs !== "undefined") {
console.log("Theme applying saved preferences:", Prefs.themeIndex, Prefs.themeIsDynamic, "lightMode:", Prefs.isLightMode)
isLightMode = Prefs.isLightMode
switchTheme(Prefs.themeIndex, Prefs.themeIsDynamic, false) // Don't save during startup
}
})
console.log("Theme initialized, waiting for Prefs to load settings and apply theme")
}
// Handle successful color extraction