mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 06:52:50 -05:00
Persist theme preference, dynamic auto theme with matugen
This commit is contained in:
26
shell.qml
26
shell.qml
@@ -18,6 +18,11 @@ import "Common/Utilities.js" as Utils
|
||||
ShellRoot {
|
||||
id: root
|
||||
|
||||
Component.onCompleted: {
|
||||
// Make root accessible to Theme singleton for error handling
|
||||
Theme.rootObj = root
|
||||
}
|
||||
|
||||
property bool calendarVisible: false
|
||||
property bool showTrayMenu: false
|
||||
property real trayMenuX: 0
|
||||
@@ -73,6 +78,9 @@ ShellRoot {
|
||||
property string wifiConnectionStatus: ""
|
||||
property bool wifiAutoRefreshEnabled: false
|
||||
|
||||
// Wallpaper error status
|
||||
property string wallpaperErrorStatus: ""
|
||||
|
||||
// Notification action handling - ALWAYS invoke action if exists
|
||||
function handleNotificationClick(notifObj) {
|
||||
console.log("Handling notification click for:", notifObj.appName)
|
||||
@@ -167,6 +175,24 @@ ShellRoot {
|
||||
}
|
||||
}
|
||||
|
||||
// Wallpaper Error Status Timer
|
||||
Timer {
|
||||
id: wallpaperErrorTimer
|
||||
interval: 5000 // 5 seconds
|
||||
running: false
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
root.wallpaperErrorStatus = ""
|
||||
}
|
||||
}
|
||||
|
||||
// Function to show wallpaper error
|
||||
function showWallpaperError() {
|
||||
console.log("showWallpaperError called - setting error status")
|
||||
root.wallpaperErrorStatus = "error"
|
||||
wallpaperErrorTimer.restart()
|
||||
}
|
||||
|
||||
// Notification Server
|
||||
NotificationServer {
|
||||
id: notificationServer
|
||||
|
||||
Reference in New Issue
Block a user