1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

TopBar: add "goth" corners option for the swooping edge effect

This commit is contained in:
bbedward
2025-09-18 23:37:32 -04:00
parent 97f0acadb6
commit 542536455b
3 changed files with 159 additions and 61 deletions

View File

@@ -104,6 +104,7 @@ Singleton {
property real topBarInnerPadding: 8
property bool topBarSquareCorners: false
property bool topBarNoBackground: false
property bool topBarGothCornersEnabled: true
property bool lockScreenShowPowerActions: true
property bool hideBrightnessSlider: false
property int notificationTimeoutLow: 5000
@@ -280,6 +281,7 @@ Singleton {
topBarInnerPadding = settings.topBarInnerPadding !== undefined ? settings.topBarInnerPadding : 8
topBarSquareCorners = settings.topBarSquareCorners !== undefined ? settings.topBarSquareCorners : false
topBarNoBackground = settings.topBarNoBackground !== undefined ? settings.topBarNoBackground : false
topBarGothCornersEnabled = settings.topBarGothCornersEnabled !== undefined ? settings.topBarGothCornersEnabled : true
lockScreenShowPowerActions = settings.lockScreenShowPowerActions !== undefined ? settings.lockScreenShowPowerActions : true
hideBrightnessSlider = settings.hideBrightnessSlider !== undefined ? settings.hideBrightnessSlider : false
screenPreferences = settings.screenPreferences !== undefined ? settings.screenPreferences : ({})
@@ -382,6 +384,7 @@ Singleton {
"topBarInnerPadding": topBarInnerPadding,
"topBarSquareCorners": topBarSquareCorners,
"topBarNoBackground": topBarNoBackground,
"topBarGothCornersEnabled": topBarGothCornersEnabled,
"lockScreenShowPowerActions": lockScreenShowPowerActions,
"hideBrightnessSlider": hideBrightnessSlider,
"notificationTimeoutLow": notificationTimeoutLow,
@@ -962,6 +965,11 @@ Singleton {
saveSettings()
}
function setTopBarGothCornersEnabled(enabled) {
topBarGothCornersEnabled = enabled
saveSettings()
}
function setLockScreenShowPowerActions(enabled) {
lockScreenShowPowerActions = enabled
saveSettings()