Use 'tnum' OpenType feature (tabular numbers) in bar clock widget

This commit is contained in:
Doug Thompson
2026-03-01 12:57:58 +00:00
parent 1fd249164b
commit 46c072d621
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -105,6 +105,7 @@ Item {
color: textColor
wrapMode: Text.WordWrap
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
features: ({ "tnum": 1 })
}
}
}
@@ -129,6 +130,7 @@ Item {
color: textColor
wrapMode: Text.WordWrap
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
features: ({ "tnum": 1 })
}
}
}
+2
View File
@@ -18,11 +18,13 @@ Text {
}
return fontScale;
}
property var features: ({})
opacity: enabled ? 1.0 : 0.6
font.family: root.family
font.weight: Style.fontWeightMedium
font.pointSize: Math.max(1, root.pointSize * fontScale)
font.features: root.features
color: Color.mOnSurface
elide: Text.ElideRight
wrapMode: Text.NoWrap