Small workspace indicator fix
This commit is contained in:
parent
024f35496c
commit
c323985f03
1 changed files with 10 additions and 4 deletions
|
|
@ -152,7 +152,7 @@ Item {
|
||||||
model: localWorkspaces
|
model: localWorkspaces
|
||||||
Item {
|
Item {
|
||||||
id: workspacePillContainer
|
id: workspacePillContainer
|
||||||
height: Math.round(18 * scaling)
|
height: Math.round(19 * scaling)
|
||||||
width: root.calculatedWsWidth(model)
|
width: root.calculatedWsWidth(model)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
@ -161,11 +161,17 @@ Item {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
active: Settings.data.bar.showWorkspacesNames
|
active: true
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
Text {
|
Text {
|
||||||
text: model.name.substring(0, 2)
|
text: {
|
||||||
font.pointSize: Style.fontSizeXS * scaling
|
if (Settings.data.bar.showWorkspacesNames && model.name && model.name.length > 0) {
|
||||||
|
return model.name.substring(0, 2).toUpperCase()
|
||||||
|
} else {
|
||||||
|
return model.idx.toString()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
font.pointSize: model.isFocused ? Style.fontSizeXS * scaling : Style.fontSizeXXS * scaling
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue