mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-11 06:49:37 -04:00
Refactor(DankBar): Restore previous autohide logic & add autoHideStrict setting
This commit is contained in:
@@ -129,6 +129,7 @@ Item {
|
||||
fontScale: defaultBar.fontScale ?? 1.0,
|
||||
iconScale: defaultBar.iconScale ?? 1.0,
|
||||
autoHide: defaultBar.autoHide ?? false,
|
||||
autoHideStrict: defaultBar.autoHideStrict ?? false,
|
||||
autoHideDelay: defaultBar.autoHideDelay ?? 250,
|
||||
showOnWindowsOpen: defaultBar.showOnWindowsOpen ?? false,
|
||||
openOnOverview: defaultBar.openOnOverview ?? false,
|
||||
@@ -641,6 +642,18 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
width: parent.width - parent.leftPadding
|
||||
text: I18n.tr("Strict auto-hide", "Dank bar setting: hide the bar when the pointer leaves even if a menu or bar popover is still open")
|
||||
checked: selectedBarConfig?.autoHideStrict ?? false
|
||||
onToggled: toggled => {
|
||||
SettingsData.updateBarConfig(selectedBarId, {
|
||||
autoHideStrict: toggled
|
||||
});
|
||||
notifyHorizontalBarChange();
|
||||
}
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
width: parent.width - parent.leftPadding
|
||||
visible: CompositorService.isNiri || CompositorService.isHyprland
|
||||
|
||||
Reference in New Issue
Block a user