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

scalable topbar

This commit is contained in:
bbedward
2025-08-23 15:15:07 -04:00
parent 9d7b617cd6
commit 3f6d330f5f
21 changed files with 162 additions and 110 deletions

View File

@@ -84,6 +84,7 @@ Singleton {
property bool notificationOverlayEnabled: false
property bool topBarAutoHide: false
property real topBarSpacing: 4
property real topBarInnerPadding: 8
property bool topBarSquareCorners: false
property int notificationTimeoutLow: 5000
property int notificationTimeoutNormal: 5000
@@ -273,6 +274,7 @@ Singleton {
notificationTimeoutCritical = settings.notificationTimeoutCritical
!== undefined ? settings.notificationTimeoutCritical : 0
topBarSpacing = settings.topBarSpacing !== undefined ? settings.topBarSpacing : 4
topBarInnerPadding = settings.topBarInnerPadding !== undefined ? settings.topBarInnerPadding : 8
topBarSquareCorners = settings.topBarSquareCorners
!== undefined ? settings.topBarSquareCorners : false
applyStoredTheme()
@@ -355,6 +357,7 @@ Singleton {
"notificationOverlayEnabled": notificationOverlayEnabled,
"topBarAutoHide": topBarAutoHide,
"topBarSpacing": topBarSpacing,
"topBarInnerPadding": topBarInnerPadding,
"topBarSquareCorners": topBarSquareCorners,
"notificationTimeoutLow": notificationTimeoutLow,
"notificationTimeoutNormal": notificationTimeoutNormal,
@@ -875,6 +878,11 @@ Singleton {
saveSettings()
}
function setTopBarInnerPadding(padding) {
topBarInnerPadding = padding
saveSettings()
}
function setTopBarSquareCorners(enabled) {
topBarSquareCorners = enabled
saveSettings()