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

Added number indexing option for the workspace switcher

This commit is contained in:
amadoabad
2025-07-20 00:03:39 +03:00
parent 4202b8323b
commit fa3d02552a
3 changed files with 30 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ Rectangle {
property int sequentialNumber: index + 1
width: isActive ? Theme.spacingXL + Theme.spacingM : Theme.spacingL + Theme.spacingXS
height: Theme.spacingM
height: Theme.spacingL
radius: height / 2
color: isActive ? Theme.primary : isHovered ? Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.5) : Qt.rgba(Theme.surfaceText.r, Theme.surfaceText.g, Theme.surfaceText.b, 0.3)
@@ -99,6 +99,16 @@ Rectangle {
}
}
// Only show index if enabled in preferences
Text {
visible: Prefs.showWorkspaceIndex
anchors.centerIn: parent
text: sequentialNumber
color: Theme.surfaceText
font.pixelSize: Theme.fontSizeMedium
font.bold: isActive
}
Behavior on width {
NumberAnimation {
duration: Theme.mediumDuration