[eog: 1/2] make zoom entry more visually stable




commit c392f5190351dd4114a4a8d154062c88220ddf39
Author: Lukas K <lu 0x83 eu>
Date:   Sun Dec 26 17:44:32 2021 +0100

    make zoom entry more visually stable
    
     - right-align so that the % sign stays in place
     - use tabular figures

 data/eog-zoom-entry.ui | 4 ++++
 data/eog.css           | 4 ++++
 2 files changed, 8 insertions(+)
---
diff --git a/data/eog-zoom-entry.ui b/data/eog-zoom-entry.ui
index 59ba631d..a6d72cca 100644
--- a/data/eog-zoom-entry.ui
+++ b/data/eog-zoom-entry.ui
@@ -42,8 +42,12 @@
         <property name="primary_icon_activatable">False</property>
         <property name="primary_icon_sensitive">False</property>
         <property name="input_purpose">digits</property>
+        <property name="xalign">1</property>
         <signal name="activate" handler="eog_zoom_entry_activate_cb" object="EogZoomEntry" swapped="no"/>
         <signal name="icon-press" handler="eog_zoom_entry_icon_press_cb" object="EogZoomEntry" swapped="no"/>
+        <style>
+          <class name="tnum"/>
+        </style>
       </object>
       <packing>
         <property name="expand">True</property>
diff --git a/data/eog.css b/data/eog.css
index 7979529a..54cf3124 100644
--- a/data/eog.css
+++ b/data/eog.css
@@ -40,3 +40,7 @@ statusbar {
        border-radius: 0;
        box-shadow: none;
 }
+
+.tnum {
+    font-feature-settings: "tnum 1";
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]