center text in labels with minText padding
This commit is contained in:
parent
ffa3111407
commit
ae3d55912f
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ Text {
|
||||||
|
|
||||||
text: label
|
text: label
|
||||||
width: minText ? Math.max(implicitWidth, _minMetrics.width) : implicitWidth
|
width: minText ? Math.max(implicitWidth, _minMetrics.width) : implicitWidth
|
||||||
|
horizontalAlignment: minText ? Text.AlignHCenter : Text.AlignLeft
|
||||||
color: M.Theme.base05
|
color: M.Theme.base05
|
||||||
font.pixelSize: M.Theme.fontSize
|
font.pixelSize: M.Theme.fontSize
|
||||||
font.family: M.Theme.fontFamily
|
font.family: M.Theme.fontFamily
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue