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

Workspace switcher: max icons setting (#150)

This commit is contained in:
Aleksandr Lebedev
2025-09-03 14:50:07 +02:00
committed by GitHub
parent 5146dcb3f7
commit 886c6877d5
3 changed files with 51 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ Singleton {
property bool showWorkspaceIndex: false
property bool showWorkspacePadding: false
property bool showWorkspaceApps: false
property int maxWorkspaceIcons: 3
property var workspaceNameIcons: ({})
property bool clockCompactMode: false
property bool focusedWindowCompactMode: false
@@ -232,6 +233,8 @@ Singleton {
!== undefined ? settings.showWorkspacePadding : false
showWorkspaceApps = settings.showWorkspaceApps
!== undefined ? settings.showWorkspaceApps : false
maxWorkspaceIcons = settings.maxWorkspaceIcons
!== undefined ? settings.maxWorkspaceIcons : 3
workspaceNameIcons = settings.workspaceNameIcons
!== undefined ? settings.workspaceNameIcons : ({})
clockCompactMode = settings.clockCompactMode
@@ -431,6 +434,11 @@ Singleton {
showWorkspaceApps = enabled
saveSettings()
}
function setMaxWorkspaceIcons(maxIcons) {
maxWorkspaceIcons = maxIcons
saveSettings()
}
function setWorkspaceNameIcon(workspaceName, iconData) {
var iconMap = JSON.parse(JSON.stringify(workspaceNameIcons))