1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="Headerbar" parent="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="AdwHeaderBar" id="headerbar">
<child type="title">
<object class="AdwViewSwitcher" id="view_switcher">
<property name="policy">wide</property>
</object>
</child>
<child type="start">
<object class="GtkToggleButton" id="show_sidebar_button">
<property name="visible">false</property>
<property name="icon-name">sidebar-show-symbolic</property>
<property name="tooltip-text" translatable="true">Toggle Filter Sidebar</property>
</object>
</child>
<child type="end">
<object class="GtkMenuButton" id="menu_button">
<property name="tooltip-text" translatable="true">Options</property>
<property name="menu-model">primary_menu</property>
<property name="icon-name">open-menu-symbolic</property>
<accessibility>
<property name="label" translatable="true">Open the options popover</property>
</accessibility>
</object>
</child>
<child type="end">
<object class="GtkToggleButton" id="search_button">
<property name="name">Search toggle button</property>
<property name="tooltip-text" translatable="true">Search your library</property>
<property name="icon-name">com.github.geigi.cozy.loupe-large-symbolic</property>
<accessibility>
<property name="label" translatable="true">Open the search popover</property>
</accessibility>
</object>
</child>
<child type="end">
<object class="GtkMenuButton" id="progress_menu_button">
<property name="visible">false</property>
<property name="can-focus">true</property>
<property name="tooltip-text" translatable="true">Display background task progress</property>
<child>
<object class="GtkSpinner" id="progress_spinner"/>
</child>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSearchBar" id="search_bar">
<property name="search-mode-enabled" bind-source="search_button" bind-property="active" bind-flags="sync-create|bidirectional"/>
<child>
<object class="AdwClamp">
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<property name="margin-bottom">6</property>
<property name="maximum-size">450</property>
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="search-delay">100</property>
<property name="placeholder-text" translatable="true">Start typing...</property>
<property name="hexpand">true</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<menu id="primary_menu">
<section>
<item>
<attribute name="action">app.scan</attribute>
<attribute name="label" translatable="yes">_Scan Library</attribute>
</item>
</section>
<section>
<item>
<attribute name="action">app.hide_offline</attribute>
<attribute name="label" translatable="yes">_Hide unavailable books</attribute>
</item>
</section>
<section>
<item>
<attribute name="action">app.prefs</attribute>
<attribute name="label" translatable="yes">_Preferences</attribute>
</item>
<item>
<attribute name="action">app.about</attribute>
<attribute name="label" translatable="yes">_About Cozy</attribute>
</item>
</section>
<section>
<item>
<attribute name="action">app.quit</attribute>
<attribute name="label" translatable="yes">_Quit</attribute>
</item>
</section>
</menu>
</interface>
|