You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
4.0 KiB
104 lines
4.0 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<interface> |
|
<menu id="primary_menu"> |
|
<section> |
|
<item> |
|
<attribute name="label" translatable="yes">_New Room</attribute> |
|
<attribute name="action">session.room-creation</attribute> |
|
</item> |
|
</section> |
|
<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 Fractal</attribute> |
|
<attribute name="action">app.about</attribute> |
|
</item> |
|
</section> |
|
</menu> |
|
<template class="Sidebar" parent="AdwBin"> |
|
<child> |
|
<object class="GtkBox"> |
|
<property name="orientation">vertical</property> |
|
<child> |
|
<object class="AdwHeaderBar" id="headerbar"> |
|
<property name="title-widget"> |
|
<object class="AdwWindowTitle"/> |
|
</property> |
|
<property name="show-end-title-buttons" bind-source="Sidebar" bind-property="compact" bind-flags="sync-create"/> |
|
<child type="start"> |
|
<object class="GtkMenuButton" id="accounts_button"> |
|
<property name="popover"> |
|
<object class="AccountSwitcher" id="account_switcher"/> |
|
</property> |
|
<style> |
|
<class name="image-button"/> |
|
</style> |
|
<property name="child"> |
|
<object class="ComponentsAvatar"> |
|
<property name="size">20</property> |
|
<binding name="item"> |
|
<lookup name="avatar" type="User"> |
|
<lookup name="user">Sidebar</lookup> |
|
</lookup> |
|
</binding> |
|
</object> |
|
</property> |
|
</object> |
|
</child> |
|
<child type="end"> |
|
<object class="GtkMenuButton" id="appmenu_button"> |
|
<property name="icon-name">open-menu-symbolic</property> |
|
<property name="menu-model">primary_menu</property> |
|
</object> |
|
</child> |
|
<child type="end"> |
|
<object class="GtkToggleButton" id="search_button"> |
|
<property name="icon-name">system-search-symbolic</property> |
|
<property name="active" bind-source="room_search" bind-property="search-mode-enabled" bind-flags="sync-create"/> |
|
<property name="action-name">session.toggle-room-search</property> |
|
</object> |
|
</child> |
|
</object> |
|
</child> |
|
<child> |
|
<object class="GtkSearchBar" id="room_search"> |
|
<property name="child"> |
|
<object class="GtkSearchEntry" id="room_search_entry"/> |
|
</property> |
|
</object> |
|
</child> |
|
<child> |
|
<object class="GtkScrolledWindow"> |
|
<property name="vexpand">True</property> |
|
<property name="hscrollbar-policy">never</property> |
|
<property name="child"> |
|
<object class="GtkListView" id="listview"> |
|
<style> |
|
<class name="navigation-sidebar"/> |
|
<class name="sidebar-list"/> |
|
</style> |
|
<property name="single-click-activate">true</property> |
|
<property name="factory"> |
|
<object class="GtkBuilderListItemFactory"> |
|
<property name="resource">/org/gnome/FractalNext/sidebar-item.ui</property> |
|
</object> |
|
</property> |
|
<accessibility> |
|
<property name="label" translatable="yes">Sidebar</property> |
|
</accessibility> |
|
</object> |
|
</property> |
|
</object> |
|
</child> |
|
</object> |
|
</child> |
|
</template> |
|
</interface> |
|
|
|
|