[gnome-text-editor] openpopover: tweak styling of empty state



commit faf2dbf51cba021139abae1a018faa0d485f045d
Author: Christian Hergert <chergert redhat com>
Date:   Sun Dec 26 13:29:19 2021 -0800

    openpopover: tweak styling of empty state
    
     * Add 64px icon above text
     * Increase padding above/below/between
     * Increase font-size by 1.1x
     * Add bold weight to font
    
    Fixes #268

 src/editor-open-popover.ui | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/src/editor-open-popover.ui b/src/editor-open-popover.ui
index 93bd4ca..0aa71d0 100644
--- a/src/editor-open-popover.ui
+++ b/src/editor-open-popover.ui
@@ -44,12 +44,31 @@
             <property name="vhomogeneous">false</property>
             <property name="hhomogeneous">false</property>
             <child>
-              <object class="GtkLabel" id="empty">
-                <property name="label" translatable="yes">No Recent Documents</property>
+              <object class="GtkBox" id="empty">
+                <property name="orientation">vertical</property>
+                <property name="spacing">18</property>
                 <property name="margin-start">6</property>
-                <property name="margin-top">18</property>
-                <property name="margin-bottom">18</property>
+                <property name="margin-top">36</property>
+                <property name="margin-bottom">36</property>
                 <property name="margin-end">6</property>
+                <child>
+                  <object class="GtkImage">
+                    <property name="icon-name">text-x-generic-symbolic</property>
+                    <property name="pixel-size">64</property>
+                    <style>
+                      <class name="dim-label"/>
+                    </style>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="label" translatable="yes">No Recent Documents</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                      <attribute name="scale" value="1.1"/>
+                    </attributes>
+                  </object>
+                </child>
               </object>
             </child>
             <child>


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