File: player_toolbar.ui

package info (click to toggle)
shortwave 5.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,864 kB
  • sloc: sh: 98; sql: 63; makefile: 22
file content (151 lines) | stat: -rw-r--r-- 6,238 bytes parent folder | download | duplicates (2)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="SwPlayerToolbar" parent="AdwBin">
    <property name="child">
      <object class="GtkBox">
        <child>
          <object class="SwStationCover" id="station_cover">
            <property name="size">64</property>
            <binding name="station">
              <lookup name="station" type="SwPlayer">
                <lookup name="player">SwPlayerToolbar</lookup>
              </lookup>
            </binding>
          </object>
        </child>
        <child>
          <object class="GtkSeparator"></object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="hexpand">True</property>
            <property name="halign">start</property>
            <property name="valign">center</property>
            <property name="margin_start">12</property>
            <property name="margin_end">12</property>
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkLabel" id="station_title_label">
                <property name="label" translatable="yes">No Playback</property>
                <property name="ellipsize">end</property>
                <property name="xalign">0</property>
                <binding name="label">
                  <lookup name="title" type="SwStation">
                    <lookup name="station" type="SwPlayer">
                      <lookup name="player">SwPlayerToolbar</lookup>
                    </lookup>
                  </lookup>
                </binding>
                <style>
                  <class name="title-4" />
                </style>
              </object>
            </child>
            <child>
              <object class="GtkRevealer" id="track_revealer">
                <binding name="reveal-child">
                  <lookup name="has-playing-track" type="SwPlayer">
                    <lookup name="player">SwPlayerToolbar</lookup>
                  </lookup>
                </binding>
                <child>
                  <object class="GtkLabel" id="track_label">
                    <property name="margin_top">3</property>
                    <property name="ellipsize">end</property>
                    <property name="xalign">0</property>
                    <binding name="label">
                      <lookup name="title" type="SwTrack">
                        <lookup name="playing-track" type="SwPlayer">
                          <lookup name="player">SwPlayerToolbar</lookup>
                        </lookup>
                      </lookup>
                    </binding>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkStack" id="playback_button_stack">
            <property name="valign">center</property>
            <property name="width_request">42</property>
            <property name="height_request">42</property>
            <property name="margin_end">9</property>
            <binding name="visible_child_name">
              <lookup name="state" type="SwPlayer">
                <lookup name="player">SwPlayerToolbar</lookup>
              </lookup>
            </binding>
            <binding name="sensitive">
              <lookup name="has-station" type="SwPlayer">
                <lookup name="player">SwPlayerToolbar</lookup>
              </lookup>
            </binding>
            <child>
              <object class="GtkStackPage">
                <property name="name">Stopped</property>
                <property name="child">
                  <object class="GtkButton" id="start_playback_button">
                    <property name="action_name">player.start-playback</property>
                    <property name="icon_name">media-playback-start-symbolic</property>
                    <property name="tooltip_text" translatable="yes">Play</property>
                    <style>
                      <class name="circular" />
                    </style>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">Playing</property>
                <property name="child">
                  <object class="GtkButton" id="stop_playback_button">
                    <property name="action_name">player.stop-playback</property>
                    <property name="tooltip_text" translatable="yes">Stop</property>
                    <property name="icon_name">media-playback-stop-symbolic</property>
                    <style>
                      <class name="circular" />
                    </style>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">Loading</property>
                <property name="child">
                  <object class="GtkButton" id="loading_button">
                    <property name="action_name">player.stop-playback</property>
                    <property name="tooltip_text" translatable="yes">Buffering…</property>
                    <child>
                      <object class="AdwSpinner" />
                    </child>
                    <style>
                      <class name="circular" />
                    </style>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">Failure</property>
                <property name="child">
                  <object class="GtkMenuButton">
                    <property name="icon_name">dialog-error-symbolic</property>
                    <style>
                      <class name="destructive-action"/>
                      <class name="circular"/>
                    </style>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
  </template>
</interface>