mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
ipc: added bar setDisplayMode {mode}
This commit is contained in:
@@ -199,7 +199,7 @@ Singleton {
|
||||
property bool hideOnOverview: false
|
||||
|
||||
// Auto-hide settings
|
||||
property string displayMode: "always_visible" // "always_visible", "auto_hide"
|
||||
property string displayMode: "always_visible"
|
||||
property int autoHideDelay: 500 // ms before hiding after mouse leaves
|
||||
property int autoShowDelay: 150 // ms before showing when mouse enters
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@ Item {
|
||||
function showBar() {
|
||||
BarService.isVisible = true;
|
||||
}
|
||||
function setDisplayMode(mode: string) {
|
||||
if (mode === "always_visible" || mode === "non_exclusive" || mode === "auto_hide") {
|
||||
Settings.data.bar.displayMode = mode;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Settings IPC helpers (outside IpcHandler to avoid QVariant IPC warnings)
|
||||
|
||||
Reference in New Issue
Block a user