From 46c072d621c5a98d113a9951a37bc9ccf8f2f0a1 Mon Sep 17 00:00:00 2001 From: Doug Thompson Date: Sun, 1 Mar 2026 12:57:58 +0000 Subject: [PATCH] Use 'tnum' OpenType feature (tabular numbers) in bar clock widget --- Modules/Bar/Widgets/Clock.qml | 2 ++ Widgets/NText.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Modules/Bar/Widgets/Clock.qml b/Modules/Bar/Widgets/Clock.qml index 58040608c..34362c384 100644 --- a/Modules/Bar/Widgets/Clock.qml +++ b/Modules/Bar/Widgets/Clock.qml @@ -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 }) } } } diff --git a/Widgets/NText.qml b/Widgets/NText.qml index fa2c71682..e7e283540 100644 --- a/Widgets/NText.qml +++ b/Widgets/NText.qml @@ -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