stable label widths via minText, increase group glow
This commit is contained in:
parent
7ab3b6ef75
commit
5de09fd5e2
9 changed files with 17 additions and 1 deletions
|
|
@ -6,8 +6,17 @@ Text {
|
|||
id: root
|
||||
property string label: ""
|
||||
property string tooltip: ""
|
||||
property string minText: ""
|
||||
|
||||
text: label
|
||||
width: minText ? Math.max(implicitWidth, _minMetrics.width) : implicitWidth
|
||||
|
||||
TextMetrics {
|
||||
id: _minMetrics
|
||||
text: root.minText
|
||||
font.pixelSize: root.font.pixelSize
|
||||
font.family: root.font.family
|
||||
}
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue