mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user