1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

notifications: try to prevent zombies better, markdown, re-org

This commit is contained in:
bbedward
2025-07-26 16:08:58 -04:00
parent 484a947127
commit 01a94a17de
22 changed files with 684 additions and 350 deletions

View File

@@ -44,6 +44,7 @@ Singleton {
property bool wallpaperDynamicTheming: true
property string wallpaperLastPath: ""
property string profileLastPath: ""
property bool doNotDisturb: false
function loadSettings() {
parseSettings(settingsFile.text());
@@ -85,6 +86,7 @@ Singleton {
wallpaperDynamicTheming = settings.wallpaperDynamicTheming !== undefined ? settings.wallpaperDynamicTheming : true;
wallpaperLastPath = settings.wallpaperLastPath !== undefined ? settings.wallpaperLastPath : "";
profileLastPath = settings.profileLastPath !== undefined ? settings.profileLastPath : "";
doNotDisturb = settings.doNotDisturb !== undefined ? settings.doNotDisturb : false;
applyStoredTheme();
detectAvailableIconThemes();
updateGtkIconTheme(iconTheme);
@@ -130,7 +132,8 @@ Singleton {
"wallpaperPath": wallpaperPath,
"wallpaperDynamicTheming": wallpaperDynamicTheming,
"wallpaperLastPath": wallpaperLastPath,
"profileLastPath": profileLastPath
"profileLastPath": profileLastPath,
"doNotDisturb": doNotDisturb
}, null, 2));
}
@@ -481,6 +484,11 @@ gtk-application-prefer-dark-theme=true`;
}
}
function setDoNotDisturb(enabled) {
doNotDisturb = enabled;
saveSettings();
}
Component.onCompleted: loadSettings()