aboutsummaryrefslogtreecommitdiff
path: root/main/data/unified_main_content.ui
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-02-14 14:55:59 +0100
committerfiaxh <git@lightrise.org>2022-07-27 20:34:20 +0200
commit7e7dcedaf31ee35499875491c9f569c575d28435 (patch)
tree0c5fee2b28baf320775fbc92b3c252e97d9d054f /main/data/unified_main_content.ui
parentf25bfb00969a7e09996da2d5500e6718f4cc0148 (diff)
downloaddino-7e7dcedaf31ee35499875491c9f569c575d28435.tar.gz
dino-7e7dcedaf31ee35499875491c9f569c575d28435.zip
Port from GTK3 to GTK4
Diffstat (limited to 'main/data/unified_main_content.ui')
-rw-r--r--main/data/unified_main_content.ui189
1 files changed, 86 insertions, 103 deletions
diff --git a/main/data/unified_main_content.ui b/main/data/unified_main_content.ui
index 03c206c1..3fb7b6e5 100644
--- a/main/data/unified_main_content.ui
+++ b/main/data/unified_main_content.ui
@@ -1,94 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
+ <requires lib="gtk" version="4.0"/>
<object class="GtkPaned" id="paned">
+ <property name="shrink-start-child">False</property>
+ <property name="shrink-end-child">False</property>
+ <property name="resize-start-child">False</property>
<property name="position">300</property>
- <property name="orientation">horizontal</property>
- <property name="visible">True</property>
<child>
<object class="GtkStack" id="left_stack">
- <property name="visible">True</property>
<child>
- <object class="GtkScrolledWindow" id="scrolled">
- <property name="expand">True</property>
- <property name="hscrollbar_policy">never</property>
- <property name="visible">True</property>
- <child>
- <object class="DinoUiConversationSelector" id="conversation_list">
- <property name="visible">True</property>
- </object>
- </child>
- </object>
- <packing>
+ <object class="GtkStackPage">
<property name="name">content</property>
- </packing>
- </child>
- <child>
- <object class="GtkBox">
- <property name="margin">20</property>
- <property name="spacing">10</property>
- <property name="valign">start</property>
- <property name="halign">start</property>
- <property name="visible">True</property>
- <child>
- <object class="GtkImage" id="conversation_list_placeholder_image">
- <property name="visible">True</property>
- <property name="valign">start</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="wrap">True</property>
- <property name="margin-top">70</property>
- <property name="margin-right">50</property>
- <property name="visible">True</property>
- <property name="valign">end</property>
- <property name="label" translatable="yes">Click here to start a conversation or join a channel.</property>
- <style>
- <class name="dim-label"/>
- </style>
+ <property name="child">
+ <object class="GtkScrolledWindow">
+ <property name="hscrollbar_policy">never</property>
+ <child>
+ <object class="DinoUiConversationSelector" id="conversation_list">
+ </object>
+ </child>
</object>
- </child>
+ </property>
</object>
- <packing>
- <property name="name">placeholder</property>
- </packing>
</child>
- </object>
- <packing>
- <property name="resize">False</property>
- <property name="shrink">False</property>
- </packing>
- </child>
- <child>
- <object class="GtkOverlay">
- <property name="visible">True</property>
<child>
- <object class="GtkStack" id="right_stack">
- <property name="visible">True</property>
- <child>
- <object class="DinoUiConversationView" id="conversation_view">
- <property name="visible">True</property>
- </object>
- <packing>
- <property name="name">content</property>
- </packing>
- </child>
- <child>
+ <object class="GtkStackPage">
+ <property name="name">placeholder</property>
+ <property name="child">
<object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="expand">True</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="visible">True</property>
+ <property name="margin-start">20</property>
+ <property name="margin-end">20</property>
+ <property name="margin-top">20</property>
+ <property name="margin-bottom">20</property>
+ <property name="spacing">10</property>
+ <property name="valign">start</property>
+ <property name="halign">start</property>
<child>
- <object class="GtkImage">
- <property name="icon-name">im.dino.Dino-symbolic</property>
- <property name="pixel-size">144</property>
- <property name="margin-bottom">30</property>
- <property name="visible">True</property>
+ <object class="GtkImage" id="conversation_list_placeholder_image">
+ <property name="valign">start</property>
<style>
<class name="dim-label"/>
</style>
@@ -96,52 +44,87 @@
</child>
<child>
<object class="GtkLabel">
- <property name="visible">True</property>
- <property name="label" translatable="yes">You have no open chats</property>
- <property name="xalign">0.5</property>
- <property name="yalign">0.5</property>
+ <property name="wrap">1</property>
+ <property name="margin-top">70</property>
+ <property name="margin-end">50</property>
+ <property name="valign">end</property>
+ <property name="label" translatable="1">Click here to start a conversation or join a channel.</property>
<style>
<class name="dim-label"/>
</style>
- <attributes>
- <attribute name="scale" value="1.2"/>
- </attributes>
</object>
</child>
</object>
- <packing>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkOverlay">
+ <property name="child">
+ <object class="GtkStack" id="right_stack">
+ <child>
+ <object class="GtkStackPage">
+ <property name="name">content</property>
+ <property name="child">
+ <object class="DinoUiConversationView" id="conversation_view">
+ </object>
+ </property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkStackPage">
<property name="name">placeholder</property>
- </packing>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <property name="hexpand">1</property>
+ <property name="vexpand">1</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <child>
+ <object class="GtkImage">
+ <property name="icon-name">im.dino.Dino-symbolic</property>
+ <property name="pixel-size">144</property>
+ <property name="margin-bottom">30</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="label" translatable="1">You have no open chats</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ <attributes>
+ <attribute name="scale" value="1.2"></attribute>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
</child>
</object>
- </child>
+ </property>
<child type="overlay">
<object class="GtkRevealer" id="search_revealer">
- <property name="visible">True</property>
<property name="halign">end</property>
<property name="transition-type">slide-left</property>
<style>
<class name="dino-sidebar"/>
</style>
- <child>
- <object class="GtkFrame">
- <property name="visible">True</property>
+ <property name="child">
+ <object class="GtkFrame" id="search_frame">
<property name="width-request">400</property>
- <property name="shadow-type">none</property>
- <child>
- <object class="DinoUiGlobalSearch" id="search_box">
- <property name="visible">True</property>
- </object>
- </child>
</object>
- </child>
+ </property>
</object>
</child>
</object>
- <packing>
- <property name="resize">True</property>
- <property name="shrink">False</property>
- </packing>
</child>
</object>
-</interface>
+</interface> \ No newline at end of file