root/data/resources/ui/queue_page.ui

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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <menu id="queue_menu">
    <section>
       <item>
        <attribute name="label" translatable="yes">Toggle _Single Mode</attribute>
        <attribute name="action">app.toggle-single-mode</attribute>
      </item>

       <item>
        <attribute name="label" translatable="yes">Toggle Consume Mode</attribute>
        <attribute name="action">app.toggle-consume-mode</attribute>
      </item>

      <item>
        <attribute name="label" translatable="yes">_Clear Queue</attribute>
        <attribute name="action">app.clear-queue</attribute>
      </item>


      <item>
        <attribute name="label" translatable="yes">_Refresh</attribute>
        <attribute name="action">app.refresh</attribute>
      </item>

      <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 pmpdc</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
  </menu>

  <menu id="track_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 GTK Rust Template</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
  </menu>


  <template class="QueuePage" parent="GtkBox">
    <property name="orientation">vertical</property>
    <child type="titlebar">
        <object class="GtkHeaderBar" id="headerbar">
            <child type="start">
                <object class="GtkButton" id="open_filters_button">
                    <property name="icon-name">go-previous-symbolic</property>
                </object>
            </child>
            <child type="end">
                <object class="GtkMenuButton" id="menu_button">
                    <property name="icon-name">view-more-symbolic</property>
                    <property name="menu-model">queue_menu</property>
                </object>
            </child>
        </object>
    </child>
    <child>
      <object class="GtkScrolledWindow" id="scroll">
        <property name="vexpand">True</property>
        <property name="hexpand">True</property>
        <property name="hscrollbar-policy">never</property>
        <child>
        </child>
      </object>
    </child>
    <child>
        <object class="AdwBin" id="controls_bin"></object>
    </child>
  </template>
</interface>