[fractal/wip/cdavis/status-page: 2/2] main_window: Use HdyStatusPage for no room selected view
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/wip/cdavis/status-page: 2/2] main_window: Use HdyStatusPage for no room selected view
- Date: Thu, 4 Feb 2021 14:30:06 +0000 (UTC)
commit f0e70c3fd7f444471f992472e5a2d2b1e3e24d4c
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]