stable label widths via minText, increase group glow

This commit is contained in:
Damocles 2026-04-12 17:10:21 +02:00
parent 7ab3b6ef75
commit 5de09fd5e2
9 changed files with 17 additions and 1 deletions

View file

@ -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