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

feat: add autohide and settings ipc functions (#786)

* feat: bar visibility and autoHide IPC

also changed reveal to show

* feat: settings get/set IPC

* fix: show -> reveal, show is reserved keyword

* move IpcHandlers from SettingsData to DMSShellIPC
This commit is contained in:
mbpowers
2025-11-30 19:50:00 -06:00
committed by GitHub
parent abf3249b67
commit 7959a79575
2 changed files with 137 additions and 61 deletions

View File

@@ -1390,27 +1390,4 @@ rm -rf '${home}'/.cache/icon-cache '${home}'/.cache/thumbnails 2>/dev/null || tr
}
property bool pluginSettingsFileExists: false
IpcHandler {
function reveal(): string {
root.setShowDock(true);
return "DOCK_SHOW_SUCCESS";
}
function hide(): string {
root.setShowDock(false);
return "DOCK_HIDE_SUCCESS";
}
function toggle(): string {
root.toggleShowDock();
return root.showDock ? "DOCK_SHOW_SUCCESS" : "DOCK_HIDE_SUCCESS";
}
function status(): string {
return root.showDock ? "visible" : "hidden";
}
target: "dock"
}
}