[nautilus] progress-info-widget: Use tabular numbers in label
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] progress-info-widget: Use tabular numbers in label
- Date: Mon, 11 May 2020 08:59:50 +0000 (UTC)
commit 0dd7ce7c00e915e27d2d585e263fd2e8265ee315
Author: Diego Escalante Urrelo <diegoe gnome org>
Date: Tue May 5 13:51:38 2020 -0500
progress-info-widget: Use tabular numbers in label
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.
src/resources/ui/nautilus-progress-info-widget.ui | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/resources/ui/nautilus-progress-info-widget.ui
b/src/resources/ui/nautilus-progress-info-widget.ui
index 0e250abc4..72d08e994 100644
--- a/src/resources/ui/nautilus-progress-info-widget.ui
+++ b/src/resources/ui/nautilus-progress-info-widget.ui
@@ -74,6 +74,9 @@
<style>
<class name="dim-label"/>
</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]