1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

feat: Intelligent Dock Auto-hide

This commit is contained in:
purian23
2026-01-17 22:20:15 -05:00
parent 340d79000c
commit 7241877995
6 changed files with 188 additions and 3 deletions

View File

@@ -86,10 +86,30 @@ Item {
settingKey: "dockAutoHide"
tags: ["dock", "autohide", "hide", "hover"]
text: I18n.tr("Auto-hide Dock")
description: I18n.tr("Hide the dock when not in use and reveal it when hovering near the dock area")
description: I18n.tr("Always hide the dock and reveal it when hovering near the dock area")
checked: SettingsData.dockAutoHide
visible: SettingsData.showDock
onToggled: checked => SettingsData.set("dockAutoHide", checked)
onToggled: checked => {
if (checked && SettingsData.dockSmartAutoHide) {
SettingsData.set("dockSmartAutoHide", false);
}
SettingsData.set("dockAutoHide", checked);
}
}
SettingsToggleRow {
settingKey: "dockSmartAutoHide"
tags: ["dock", "smart", "autohide", "windows", "overlap", "intelligent"]
text: I18n.tr("Intelligent Auto-hide")
description: I18n.tr("Show dock when floating windows don't overlap its area")
checked: SettingsData.dockSmartAutoHide
visible: SettingsData.showDock && (CompositorService.isNiri || CompositorService.isHyprland)
onToggled: checked => {
if (checked && SettingsData.dockAutoHide) {
SettingsData.set("dockAutoHide", false);
}
SettingsData.set("dockSmartAutoHide", checked);
}
}
SettingsToggleRow {