Merge pull request #2292 from maxschipper/workspace-label-character-count-vertical-bar

feat(workspace): allow one character labels on vertical bar
This commit is contained in:
Lysec
2026-03-24 18:46:18 +01:00
committed by GitHub
+4 -1
View File
@@ -59,7 +59,10 @@ Item {
}
readonly property bool hideUnoccupied: (widgetSettings.hideUnoccupied !== undefined) ? widgetSettings.hideUnoccupied : widgetMetadata.hideUnoccupied
readonly property bool followFocusedScreen: (widgetSettings.followFocusedScreen !== undefined) ? widgetSettings.followFocusedScreen : widgetMetadata.followFocusedScreen
readonly property int characterCount: isVertical ? 2 : ((widgetSettings.characterCount !== undefined) ? widgetSettings.characterCount : widgetMetadata.characterCount)
readonly property int characterCount: {
const count = (widgetSettings.characterCount !== undefined) ? widgetSettings.characterCount : widgetMetadata.characterCount;
return isVertical ? Math.min(count, 2) : count;
}
// Pill size setting (0.5-1.0 range)
readonly property real pillSize: (widgetSettings.pillSize !== undefined) ? widgetSettings.pillSize : widgetMetadata.pillSize