1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

fix light mode ipc

This commit is contained in:
bbedward
2025-08-27 09:00:56 -04:00
parent 4122cfca4c
commit ab9f482ffd
4 changed files with 33 additions and 33 deletions

View File

@@ -294,27 +294,4 @@ Singleton {
}
}
}
IpcHandler {
target: "theme"
function toggle(): string {
root.setLightMode(!root.isLightMode)
return root.isLightMode ? "light" : "dark"
}
function light(): string {
root.setLightMode(true)
return "light"
}
function dark(): string {
root.setLightMode(false)
return "dark"
}
function getMode(): string {
return root.isLightMode ? "light" : "dark"
}
}
}