mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
displays: fix text-alignment in model mode
This commit is contained in:
@@ -83,6 +83,7 @@ Rectangle {
|
|||||||
font.pixelSize: Math.max(10, Math.min(14, root.width * 0.12))
|
font.pixelSize: Math.max(10, Math.min(14, root.width * 0.12))
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: root.isConnected ? Theme.surfaceText : Theme.surfaceVariantText
|
color: root.isConnected ? Theme.surfaceText : Theme.surfaceVariantText
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
elide: Text.ElideMiddle
|
elide: Text.ElideMiddle
|
||||||
width: Math.min(implicitWidth, root.width - 8)
|
width: Math.min(implicitWidth, root.width - 8)
|
||||||
|
|||||||
Reference in New Issue
Block a user