[gnome-builder] gui: Use tabular numbers in transfer labels
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] gui: Use tabular numbers in transfer labels
- Date: Sat, 31 Aug 2019 14:50:52 +0000 (UTC)
commit ceb1c710563febead6cf73466c08d707eb8def8e
Author: Diego Escalante Urrelo <diegoe gnome org>
Date: Sat Aug 31 01:17:41 2019 -0500
gui: Use tabular numbers in transfer labels
Use the tabular numbers (tnum) OpenType feature of PangoAttrFontFeature
to prevent numbers from jumping around as transfer progress changes.
This means that "11" occupies the same space as "44" instead of jumping
around.
See: https://gitlab.gnome.org/GNOME/gtk/issues/41
See: https://gitlab.gnome.org/GNOME/gnome-builder/issues/1027
src/libide/gui/ide-notification-list-box-row.ui | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libide/gui/ide-notification-list-box-row.ui b/src/libide/gui/ide-notification-list-box-row.ui
index 269628ff3..b9317d3cf 100644
--- a/src/libide/gui/ide-notification-list-box-row.ui
+++ b/src/libide/gui/ide-notification-list-box-row.ui
@@ -53,6 +53,9 @@
<style>
<class name="body"/>
</style>
+ <attributes>
+ <attribute name="font-features" value="tnum"/>
+ </attributes>
</object>
<packing>
<property name="left_attach">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]