summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2021-10-05 19:09:23 +0200
committerVivien Kraus <vivien@planete-kraus.eu>2021-10-07 12:34:19 +0200
commit84c881aec122036dc1f6f0c2e18f24ce5a28f06b (patch)
treef28cc57e50df5a48860b0c4468ccb7f1850b1953 /src/ui
parent4f2cb622a522691fd13412af9ea4aac0fb36076e (diff)
gui: use libhandy
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/Makefile.am3
-rw-r--r--src/ui/main-window.glade136
2 files changed, 138 insertions, 1 deletions
diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am
index 706725c..cbd7b0f 100644
--- a/src/ui/Makefile.am
+++ b/src/ui/Makefile.am
@@ -19,4 +19,5 @@ dist_uipkgdata_DATA = \
%reldir%/client-widget.glade \
%reldir%/account-widget.glade \
%reldir%/accounts-widget.glade \
- %reldir%/authorization-prompt.glade
+ %reldir%/authorization-prompt.glade \
+ %reldir%/main-window.glade
diff --git a/src/ui/main-window.glade b/src/ui/main-window.glade
new file mode 100644
index 0000000..63ecda1
--- /dev/null
+++ b/src/ui/main-window.glade
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.36.0 -->
+<interface>
+ <requires lib="gtk+" version="3.24"/>
+ <requires lib="libhandy" version="0.0"/>
+ <object class="GtkApplicationWindow" id="main_window">
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="vexpand">True</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkStack" id="stack1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="transition_type">crossfade</property>
+ <child>
+ <object class="GtkBox" id="explorer_container">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="name">explore</property>
+ <property name="title" translatable="yes">Explore</property>
+ <property name="icon_name">eu.planete_kraus.Disfluid-symbolic</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="authorizations_container">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="name">authorizations</property>
+ <property name="title" translatable="yes">Authorizations</property>
+ <property name="icon_name">preferences-system-privacy-symbolic</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="accounts_container">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="name">accounts</property>
+ <property name="title" translatable="yes">Accounts</property>
+ <property name="icon_name">emoji-people-symbolic</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="settings_container">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="name">settings</property>
+ <property name="title" translatable="yes">Settings</property>
+ <property name="icon_name">preferences-system-symbolic</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="HdyViewSwitcherBar" id="bottom_switcher">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="policy">auto</property>
+ <property name="stack">stack1</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <child type="titlebar">
+ <object class="HdyHeaderBar">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="show_close_button">True</property>
+ <property name="centering_policy">strict</property>
+ <child type="title">
+ <object class="HdySqueezer" id="squeezer">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="homogeneous">True</property>
+ <property name="transition_type">crossfade</property>
+ <child>
+ <object class="HdyViewSwitcher" id="headerbar_switcher">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stack">stack1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="name">title_label</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label">Disfluid</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>