[fractal/wip/cdavis/status-page: 3/3] main_window: Use HdyStatusPage for no room selected view




commit b124fcddc308d0a3890abed41725e0767b438e54
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Feb 4 06:29:32 2021 -0800

    main_window: Use HdyStatusPage for no room selected view
    
    Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/710

 fractal-gtk/res/ui/main_window.ui | 45 ++++++---------------------------------
 1 file changed, 6 insertions(+), 39 deletions(-)
---
diff --git a/fractal-gtk/res/ui/main_window.ui b/fractal-gtk/res/ui/main_window.ui
index 6ab5c9e9..5609cbb0 100644
--- a/fractal-gtk/res/ui/main_window.ui
+++ b/fractal-gtk/res/ui/main_window.ui
@@ -340,47 +340,14 @@
                                   </packing>
                                 </child>
                                 <child>
-                                  <object class="GtkBox">
+                                  <object class="HdyStatusPage">
                                     <property name="visible">True</property>
                                     <property name="can_focus">False</property>
-                                    <property name="orientation">vertical</property>
-                                    <property name="margin_bottom">30</property>
-                                    <property name="valign">center</property>
-                                    <property name="expand">True</property>
-                                    <child>
-                                      <object class="GtkImage">
-                                        <property name="visible">True</property>
-                                        <property name="can_focus">False</property>
-                                        <property name="margin_bottom">16</property>
-                                        <property 
name="resource">/org/gnome/Fractal/icons/chat-icon.svg</property>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel">
-                                        <property name="visible">True</property>
-                                        <property name="can_focus">False</property>
-                                        <property name="label" translatable="yes">No room selected</property>
-                                        <property name="margin_bottom">3</property>
-                                        <property name="justify">center</property>
-                                        <attributes>
-                                          <attribute name="weight" value="bold"/>
-                                        </attributes>
-                                        <style>
-                                          <class name="noroom-title"/>
-                                        </style>
-                                      </object>
-                                    </child>
-                                    <child>
-                                      <object class="GtkLabel">
-                                        <property name="visible">True</property>
-                                        <property name="can_focus">False</property>
-                                        <property name="label" translatable="yes">Join a room to start 
chatting</property>
-                                        <property name="justify">center</property>
-                                        <style>
-                                          <class name="noroom-description"/>
-                                        </style>
-                                      </object>
-                                    </child>
+                                    <property name="hexpand">True</property>
+                                    <property name="vexpand">True</property>
+                                    <property name="icon_name">chat-icon</property>
+                                    <property name="title" translatable="yes">No Room Selected</property>
+                                    <property name="description" translatable="yes">Join a room to start 
chatting.</property>
                                   </object>
                                   <packing>
                                     <property name="name">noroom</property>


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