mutiny-rust-2022/data/resources/ui/window.ui

114 lines
4.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<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">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Mutiny</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
<template class="MutinyAppWindow" parent="AdwApplicationWindow">
<property name="default-width">980</property>
<property name="default-height">640</property>
<child>
<object class="AdwLeaflet" id="main_leaflet">
<property name="hexpand">True</property>
<child>
<object class="GtkBox" id="sidebar_box">
<property name="hexpand">False</property>
<property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar" id="header">
<property name="show-start-title-buttons">True</property>
<property name="show-end-title-buttons" bind-source="main_leaflet" bind-property="folded" bind-flags="sync-create"/>
<property name="title-widget">
<object class="GtkBox" id="title_box">
<property name="orientation">horizontal</property>
<property name="spacing">6</property>
<child>
<object class="AdwAvatar">
<property name="text">among us</property>
<property name="size">24</property>
<property name="show-initials">true</property>
</object>
</child>
<child>
<object class="AdwWindowTitle" id="sidebar_title_widget">
<property name="title" translatable="yes">Mutiny</property>
</object>
</child>
<child>
<object class="GtkButton" id="sidebar_title_button">
<!-- Placeholder -->
<property name="icon-name">emoji-food-symbolic</property>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="width-request">300</property>
<property name="hscrollbar-policy">never</property>
<property name="vexpand">true</property>
<child>
<object class="GtkListBox" id="server_list">
<child>
<object class="ServerEntry"></object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwLeafletPage">
<property name="navigatable">False</property>
<property name="child">
<object class="GtkSeparator" id="panel_separator">
<property name="orientation">vertical</property>
<style>
<class name="sidebar"/>
</style>
</object>
</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar">
<property name="title-widget">
<object class="AdwWindowTitle">
<property name="title" translatable="yes">Test server</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>