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

control center: open relevant tab based on click area, configurable

icons
This commit is contained in:
bbedward
2025-08-20 13:45:46 -04:00
parent 8c7b72fb6c
commit ee8ab26d45
7 changed files with 386 additions and 10 deletions

View File

@@ -39,6 +39,9 @@ Singleton {
property bool showNotificationButton: true
property bool showBattery: true
property bool showControlCenterButton: true
property bool controlCenterShowNetworkIcon: true
property bool controlCenterShowBluetoothIcon: true
property bool controlCenterShowAudioIcon: true
property bool showWorkspaceIndex: false
property bool showWorkspacePadding: false
property var workspaceNameIcons: ({})
@@ -169,6 +172,12 @@ Singleton {
showBattery = settings.showBattery !== undefined ? settings.showBattery : true
showControlCenterButton = settings.showControlCenterButton
!== undefined ? settings.showControlCenterButton : true
controlCenterShowNetworkIcon = settings.controlCenterShowNetworkIcon
!== undefined ? settings.controlCenterShowNetworkIcon : true
controlCenterShowBluetoothIcon = settings.controlCenterShowBluetoothIcon
!== undefined ? settings.controlCenterShowBluetoothIcon : true
controlCenterShowAudioIcon = settings.controlCenterShowAudioIcon
!== undefined ? settings.controlCenterShowAudioIcon : true
showWorkspaceIndex = settings.showWorkspaceIndex
!== undefined ? settings.showWorkspaceIndex : false
showWorkspacePadding = settings.showWorkspacePadding
@@ -299,6 +308,9 @@ Singleton {
"showNotificationButton": showNotificationButton,
"showBattery": showBattery,
"showControlCenterButton": showControlCenterButton,
"controlCenterShowNetworkIcon": controlCenterShowNetworkIcon,
"controlCenterShowBluetoothIcon": controlCenterShowBluetoothIcon,
"controlCenterShowAudioIcon": controlCenterShowAudioIcon,
"showWorkspaceIndex": showWorkspaceIndex,
"showWorkspacePadding": showWorkspacePadding,
"workspaceNameIcons": workspaceNameIcons,
@@ -563,6 +575,21 @@ Singleton {
saveSettings()
}
function setControlCenterShowNetworkIcon(enabled) {
controlCenterShowNetworkIcon = enabled
saveSettings()
}
function setControlCenterShowBluetoothIcon(enabled) {
controlCenterShowBluetoothIcon = enabled
saveSettings()
}
function setControlCenterShowAudioIcon(enabled) {
controlCenterShowAudioIcon = enabled
saveSettings()
}
function setTopBarWidgetOrder(order) {
topBarWidgetOrder = order
saveSettings()