1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

feat: Implement Topbar Autohide options

This commit is contained in:
purian23
2025-08-10 08:43:39 -04:00
parent 11173aac96
commit 7f44293f8d
3 changed files with 956 additions and 835 deletions

View File

@@ -90,6 +90,7 @@ Singleton {
property bool dockAutoHide: false
property real cornerRadius: 12
property bool notificationOverlayEnabled: false
property bool topBarAutoHide: false
readonly property string defaultFontFamily: "Inter Variable"
readonly property string defaultMonoFontFamily: "Fira Code"
@@ -255,6 +256,7 @@ Singleton {
dockAutoHide = settings.dockAutoHide !== undefined ? settings.dockAutoHide : false
cornerRadius = settings.cornerRadius !== undefined ? settings.cornerRadius : 12
notificationOverlayEnabled = settings.notificationOverlayEnabled !== undefined ? settings.notificationOverlayEnabled : false
topBarAutoHide = settings.topBarAutoHide !== undefined ? settings.topBarAutoHide : false
applyStoredTheme()
detectAvailableIconThemes()
detectQtTools()
@@ -324,7 +326,8 @@ Singleton {
"showDock": showDock,
"dockAutoHide": dockAutoHide,
"cornerRadius": cornerRadius,
"notificationOverlayEnabled": notificationOverlayEnabled
"notificationOverlayEnabled": notificationOverlayEnabled,
"topBarAutoHide": topBarAutoHide
}, null, 2))
}
@@ -746,6 +749,11 @@ Singleton {
saveSettings()
}
function setTopBarAutoHide(enabled) {
topBarAutoHide = enabled
saveSettings()
}
function _shq(s) {
return "'" + String(s).replace(/'/g, "'\\''") + "'"
}