Workspace: another attempt at proper text centering
This commit is contained in:
parent
aa8a72a9d8
commit
fc71f61000
1 changed files with 1 additions and 15 deletions
|
|
@ -161,18 +161,6 @@ Item {
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
anchors.verticalCenterOffset: {
|
|
||||||
if (model.isFocused)
|
|
||||||
return 0
|
|
||||||
if (model.name && model.name.length > 0)
|
|
||||||
return 1 * scaling
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
anchors.horizontalCenterOffset: {
|
|
||||||
if (model.name && model.name.length > 0)
|
|
||||||
return 0.5 * scaling
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
active: Settings.data.bar.showWorkspacesNames
|
active: Settings.data.bar.showWorkspacesNames
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
Text {
|
Text {
|
||||||
|
|
@ -185,9 +173,7 @@ Item {
|
||||||
}
|
}
|
||||||
font.pointSize: model.isFocused ? Style.fontSizeXS * scaling : Style.fontSizeXXS * scaling
|
font.pointSize: model.isFocused ? Style.fontSizeXS * scaling : Style.fontSizeXXS * scaling
|
||||||
font.capitalization: Font.AllUppercase
|
font.capitalization: Font.AllUppercase
|
||||||
//font.family: Settings.data.ui.fontFixed
|
font.family: Settings.data.ui.fontFixed
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
color: {
|
color: {
|
||||||
if (model.isFocused)
|
if (model.isFocused)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue