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.
167 lines
6.8 KiB
167 lines
6.8 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> |
|
<item> |
|
<attribute name="label" translatable="yes">_Join Room</attribute> |
|
<attribute name="action">session.show-join-room</attribute> |
|
</item> |
|
</section> |
|
<section> |
|
<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> |
|
<menu id="room_row_menu"> |
|
<section> |
|
<item> |
|
<attribute name="label" translatable="yes">_Accept</attribute> |
|
<attribute name="action">room-row.accept-invite</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
<item> |
|
<attribute name="label" translatable="yes">_Reject</attribute> |
|
<attribute name="action">room-row.reject-invite</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
</section> |
|
<section> |
|
<item> |
|
<attribute name="label" translatable="yes">Move to _Favorites</attribute> |
|
<attribute name="action">room-row.set-favorite</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
<item> |
|
<attribute name="label" translatable="yes">Move to _Rooms</attribute> |
|
<attribute name="action">room-row.set-normal</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
<item> |
|
<attribute name="label" translatable="yes">Move to _People</attribute> |
|
<attribute name="action">room-row.set-direct</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
<item> |
|
<attribute name="label" translatable="yes">Move to Low _Priority</attribute> |
|
<attribute name="action">room-row.set-lowpriority</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
</section> |
|
<section> |
|
<item> |
|
<attribute name="label" translatable="yes">_Leave Room</attribute> |
|
<attribute name="action">room-row.leave</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
<item> |
|
<attribute name="label" translatable="yes">Re_join Room</attribute> |
|
<attribute name="action">room-row.join</attribute> |
|
<attribute name="hidden-when">action-disabled</attribute> |
|
</item> |
|
<item> |
|
<attribute name="label" translatable="yes">_Forget Room</attribute> |
|
<attribute name="action">room-row.forget</attribute> |
|
<attribute name="hidden-when">action-disabled</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="account_switcher_button"> |
|
<accessibility> |
|
<property name="label" translatable="yes">Switch Accounts</property> |
|
</accessibility> |
|
<style> |
|
<class name="image-button"/> |
|
</style> |
|
<property name="child"> |
|
<object class="ComponentsAvatar"> |
|
<property name="size">24</property> |
|
<binding name="data"> |
|
<lookup name="avatar-data" 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> |
|
<accessibility> |
|
<property name="label" translatable="yes">App Settings Menu</property> |
|
</accessibility> |
|
</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> |
|
<accessibility> |
|
<property name="label" translatable="yes">Toggle Room Search</property> |
|
</accessibility> |
|
</object> |
|
</child> |
|
</object> |
|
</child> |
|
<child> |
|
<object class="GtkSearchBar" id="room_search"> |
|
<property name="child"> |
|
<object class="GtkSearchEntry" id="room_search_entry"/> |
|
</property> |
|
<accessibility> |
|
<property name="label" translatable="yes">Room Search</property> |
|
<property name="description" translatable="yes">Search for a room</property> |
|
</accessibility> |
|
</object> |
|
</child> |
|
<child> |
|
<object class="AdwBanner" id="offline_banner"> |
|
<property name="title" translatable="yes">Offline</property> |
|
</object> |
|
</child> |
|
<child> |
|
<object class="GtkScrolledWindow" id="scrolled_window"> |
|
<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> |
|
<accessibility> |
|
<property name="label" translatable="yes">Sidebar</property> |
|
<property name="description" translatable="yes">Allows to navigate between rooms</property> |
|
</accessibility> |
|
</object> |
|
</property> |
|
</object> |
|
</child> |
|
</object> |
|
</child> |
|
</template> |
|
</interface>
|
|
|