[gnome-boxes/wip/cdavis/hdystatuspage: 2/2] empty-boxes: Use HdyStatusPage




commit ed303c561bfe3b6b8c6d698ea23f4eb1e32d07ce
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Feb 4 02:13:22 2021 -0800

    empty-boxes: Use HdyStatusPage
    
    Simplifies our empty page using HdyStatusPage,
    so we have a consistent empty page styling across apps.

 data/ui/empty-boxes.ui | 66 +++++---------------------------------------------
 1 file changed, 6 insertions(+), 60 deletions(-)
---
diff --git a/data/ui/empty-boxes.ui b/data/ui/empty-boxes.ui
index 6e724c4f..af79c4d8 100644
--- a/data/ui/empty-boxes.ui
+++ b/data/ui/empty-boxes.ui
@@ -42,68 +42,14 @@
         <property name="valign">fill</property>
 
         <child>
-          <object class="GtkGrid" id="grid">
+          <object class="HdyStatusPage">
             <property name="visible">True</property>
-            <property name="orientation">vertical</property>
-            <property name="halign">center</property>
-            <property name="valign">center</property>
-
-            <child>
-              <object class="GtkImage" id="image">
-                <property name="visible">True</property>
-                <property name="resource">/org/gnome/Boxes/icons/empty-boxes.png</property>
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <property name="margin-bottom">24</property>
-              </object>
-            </child>
-
-            <child>
-              <object class="GtkLabel" id="no_boxes_found_label">
-                <property name="visible">True</property>
-                <property name="use-markup">True</property>
-                <property name="halign">center</property>
-                <property name="vexpand">True</property>
-                <property name="margin-bottom">6</property>
-                <property name="label" translatable="yes">State of the art virtualization</property>
-                <attributes>
-                  <attribute name="scale" value="1.2"/> <!-- PANGO_SCALE_LARGE -->
-                  <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
-                </attributes>
-              </object>
-            </child>
-
-            <child>
-              <object class="GtkLabel" id="definition_label">
-                <property name="visible">True</property>
-                <property name="use-markup">True</property>
-                <property name="halign">center</property>
-                <property name="vexpand">True</property>
-                <property name="label" translatable="yes">Boxes can be virtual or remote machines.</property>
-                <style>
-                  <class name="dim-label"/>
-                </style>
-              </object>
-            </child>
-
-            <child>
-              <object class="GtkLabel" id="instructions_label">
-                <property name="visible">True</property>
-                <property name="use-markup">True</property>
-                <property name="halign">center</property>
-                <property name="vexpand">True</property>
-                <property name="label" translatable="yes">Just hit the &lt;b&gt;+&lt;/b&gt; button to create 
your first one.</property>
-                <style>
-                  <class name="dim-label"/>
-                </style>
-              </object>
-            </child>
+            <property name="hexpand">True</property>
+            <property name="vexpand">True</property>
+            <property name="icon-name">empty-boxes</property>
+            <property name="title" translatable="yes">State of the art virtualization</property>
+            <property name="description" translatable="yes">Boxes can be virtual or remote machines. Just 
hit the &lt;b&gt;+&lt;/b&gt; button to create your first one.</property>
           </object>
-
-          <packing>
-            <property name="expand">True</property>
-            <property name="fill">True</property>
-          </packing>
         </child>
       </object>
     </child>


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