mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-06 03:55:02 +00:00
Fix named workspace text positioning
Workspace.qml: add slight centerOffset
This commit is contained in:
@@ -161,6 +161,18 @@ 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 {
|
||||||
@@ -173,6 +185,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
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|||||||
Reference in New Issue
Block a user