diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-04 20:53:17 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-04 20:53:17 +0100 |
commit | be71bf80d290c98c0f6a66d3dcab28515b4ea371 (patch) | |
tree | d936090c5b5c9435febfe220770ff7f25399a235 /src/window.ui |
Initial commit
Diffstat (limited to 'src/window.ui')
-rw-r--r-- | src/window.ui | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/src/window.ui b/src/window.ui new file mode 100644 index 0000000..3072280 --- /dev/null +++ b/src/window.ui @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <requires lib="libadwaita" version="1.0"/> + <menu id="primary_menu"> + <section> + <item> + <attribute name="label" translatable="yes">_Preferences</attribute> + <attribute name="action">app.preferences</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_About</attribute> + <attribute name="action">app.about</attribute> + </item> + </section> + </menu> + <template class="WeegtkWindow" parent="AdwApplicationWindow"> + <property name="title" translatable="yes">Weegtk</property> + <property name="default_width">800</property> + <property name="default_height">576</property> + <child> + <object class="AdwBreakpoint"> + <condition>max-width: 500sp</condition> + <setter object="split_view" property="collapsed">True</setter> + </object> + </child> + <property name="content"> + <object class="AdwToastOverlay" id="toast_overlay"> + <property name="child"> + <object class="AdwNavigationSplitView" id="split_view"> + <property name="min-sidebar-width">200</property> + <property name="sidebar"> + <object class="AdwNavigationPage"> + <property name="title" bind-source="WeegtkWindow" bind-property="title" bind-flags="sync-create"/> + <property name="child"> + <object class="AdwToolbarView"> + <child type="top"> + <object class="AdwHeaderBar"> + <child type="start"> + <object class="GtkButton" id="color_scheme_button"> + <binding name="icon-name"> + <closure type="gchararray" function="get_color_scheme_icon_name"> + <lookup name="dark" type="AdwStyleManager"> + <lookup name="style-manager" type="AdwApplication"> + <lookup name="application">WeegtkWindow</lookup> + </lookup> + </lookup> + </closure> + </binding> + <signal name="clicked" handler="color_scheme_button_clicked_cb" swapped="no"/> + </object> + </child> + <child type="end"> + <object class="GtkMenuButton"> + <property name="tooltip-text" translatable="yes">Main Menu</property> + <property name="menu-model">primary_menu</property> + <property name="icon-name">open-menu-symbolic</property> + <property name="primary">True</property> + </object> + </child> + </object> + </child> + <property name="content"> + <object class="GtkStackSidebar"> + <property name="stack">stack</property> + </object> + </property> + </object> + </property> + </object> + </property> + <property name="content"> + <object class="AdwNavigationPage" id="content_page"> + <property name="child"> + <object class="GtkStack" id="stack"> + <property name="vhomogeneous">False</property> + <signal name="notify::visible-child" handler="notify_visible_child_cb" after="yes" swapped="no"/> + </object> + </property> + </object> + </property> + </object> + </property> + </object> + </property> + </template> +</interface> |