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

feat: New Notepad widget w/Autosave

- IPC: qs -c dms ipc call notepad toggle
This commit is contained in:
purian23
2025-09-01 19:46:01 -04:00
parent 53698040ab
commit 437d077bd6
10 changed files with 642 additions and 4 deletions

View File

@@ -37,6 +37,7 @@ Singleton {
property int wallpaperCyclingInterval: 300 // seconds (5 minutes)
property string wallpaperCyclingTime: "06:00" // HH:mm format
property string lastBrightnessDevice: ""
property string notepadContent: ""
Component.onCompleted: {
loadSettings()
@@ -104,6 +105,7 @@ Singleton {
!== undefined ? settings.wallpaperCyclingTime : "06:00"
lastBrightnessDevice = settings.lastBrightnessDevice
!== undefined ? settings.lastBrightnessDevice : ""
notepadContent = settings.notepadContent !== undefined ? settings.notepadContent : ""
}
} catch (e) {
@@ -137,7 +139,8 @@ Singleton {
"wallpaperCyclingMode": wallpaperCyclingMode,
"wallpaperCyclingInterval": wallpaperCyclingInterval,
"wallpaperCyclingTime": wallpaperCyclingTime,
"lastBrightnessDevice": lastBrightnessDevice
"lastBrightnessDevice": lastBrightnessDevice,
"notepadContent": notepadContent
}, null, 2))
}