From 82b9be3297db7baeb605c286b01978bab02b5373 Mon Sep 17 00:00:00 2001 From: Lukas K Date: Sat, 29 Feb 2020 14:32:29 +0100 Subject: [PATCH] theme: use tabular figures where appropriate Set font-feature-settings: "tnum" on spinbuttons, progress bars and scales fixes #1478 --- gtk/theme/Adwaita/_common.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 03a94d2c63..f733efe77c 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -1443,6 +1443,7 @@ spinbutton { padding: 1px 2px; } } + font-feature-settings: "tnum"; } @@ -3330,7 +3331,10 @@ scale { } marks, - value { color: gtkalpha(currentColor, 0.55); } + value { + color: gtkalpha(currentColor, 0.55); + font-feature-settings: "tnum"; + } //marks margins @each $scale_orient, $marks_class, $marks_pos, $marks_margin in (horizontal, top, top, bottom), @@ -3598,6 +3602,7 @@ progressbar { // FIXME: insensitive state missing and some other state should be set probably font-size: smaller; color: transparentize($fg_color, 0.6); + font-feature-settings: "tnum"; &:backdrop { box-shadow: none;