Skip to content

Commit fb89042

Browse files
committed
refactor: Exclude files from Blueprint compilation that lack Blueprint support for all elements
Signed-off-by: Felicitas Pojtinger <[email protected]>
1 parent 6270349 commit fb89042

File tree

7 files changed

+454
-14
lines changed

7 files changed

+454
-14
lines changed

internal/resources/controls.ui

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<interface>
3+
<requires lib="gtk" version="4.0"/>
4+
<object class="AdwApplicationWindow" id="main-window">
5+
<property name="default-width">700</property>
6+
<property name="default-height">0</property>
7+
<property name="title">Multiplex</property>
8+
<property name="resizable">false</property>
9+
<property name="content">
10+
<object class="AdwToastOverlay" id="toast-overlay">
11+
<child>
12+
<object class="GtkWindowHandle">
13+
<child>
14+
<object class="GtkBox">
15+
<property name="orientation">1</property>
16+
<child>
17+
<object class="AdwHeaderBar">
18+
<style>
19+
<class name="flat"/>
20+
</style>
21+
<property name="show-end-title-buttons">false</property>
22+
<child type="title">
23+
<object class="GtkButton" id="media-info-button">
24+
<style>
25+
<class name="flat"/>
26+
</style>
27+
<property name="tooltip-text">Open media details</property>
28+
<child>
29+
<object class="GtkBox">
30+
<child>
31+
<object class="GtkBox">
32+
<property name="orientation">1</property>
33+
<property name="halign">3</property>
34+
<property name="valign">3</property>
35+
<child>
36+
<object class="GtkLabel" id="button-headerbar-title">
37+
<style>
38+
<class name="title"/>
39+
</style>
40+
</object>
41+
</child>
42+
<child>
43+
<object class="GtkLabel" id="button-headerbar-subtitle">
44+
<style>
45+
<class name="subtitle"/>
46+
</style>
47+
</object>
48+
</child>
49+
</object>
50+
</child>
51+
</object>
52+
</child>
53+
</object>
54+
</child>
55+
<child type="end">
56+
<object class="GtkBox">
57+
<property name="orientation">0</property>
58+
<property name="spacing">12</property>
59+
<property name="valign">1</property>
60+
<child>
61+
<object class="GtkSpinner" id="headerbar-spinner">
62+
<property name="tooltip-text">Preparing stream ...</property>
63+
</object>
64+
</child>
65+
<child>
66+
<object class="GtkMenuButton">
67+
<style>
68+
<class name="flat"/>
69+
</style>
70+
<property name="icon-name">system-users-symbolic</property>
71+
<property name="popover">users-popover</property>
72+
<property name="tooltip-text">Show peers</property>
73+
</object>
74+
</child>
75+
<child>
76+
<object class="GtkMenuButton" id="menu-button">
77+
<property name="icon-name">open-menu-symbolic</property>
78+
<property name="primary">true</property>
79+
<property name="tooltip-text">Open primary menu</property>
80+
</object>
81+
</child>
82+
<child>
83+
<object class="GtkWindowControls">
84+
<property name="side">1</property>
85+
</object>
86+
</child>
87+
</object>
88+
</child>
89+
</object>
90+
</child>
91+
<child>
92+
<object class="GtkBox">
93+
<property name="spacing">6</property>
94+
<property name="halign">0</property>
95+
<property name="valign">3</property>
96+
<property name="vexpand">true</property>
97+
<property name="margin-top">6</property>
98+
<property name="margin-start">18</property>
99+
<property name="margin-end">18</property>
100+
<property name="margin-bottom">24</property>
101+
<child>
102+
<object class="GtkButton" id="play-button">
103+
<style>
104+
<class name="flat"/>
105+
</style>
106+
<property name="icon-name">media-playback-start-symbolic</property>
107+
<property name="tooltip-text">Toggle playback</property>
108+
</object>
109+
</child>
110+
<child>
111+
<object class="GtkButton" id="stop-button">
112+
<style>
113+
<class name="flat"/>
114+
</style>
115+
<property name="icon-name">media-playback-stop-symbolic</property>
116+
<property name="tooltip-text">Stop playback</property>
117+
</object>
118+
</child>
119+
<child>
120+
<object class="GtkSeparator">
121+
<style>
122+
<class name="spacer"/>
123+
</style>
124+
</object>
125+
</child>
126+
<child>
127+
<object class="GtkLabel" id="elapsed-track-label">
128+
<style>
129+
<class name="tabular-nums"/>
130+
</style>
131+
<property name="label">00:00:00</property>
132+
<property name="tooltip-text">Elapsed time</property>
133+
</object>
134+
</child>
135+
<child>
136+
<object class="GtkScale" id="seeker">
137+
<property name="hexpand">true</property>
138+
<property name="tooltip-text">Playback progress</property>
139+
</object>
140+
</child>
141+
<child>
142+
<object class="GtkLabel" id="remaining-track-label">
143+
<style>
144+
<class name="tabular-nums"/>
145+
</style>
146+
<property name="label">-00:00:00</property>
147+
<property name="tooltip-text">Remaining playback time</property>
148+
</object>
149+
</child>
150+
<child>
151+
<object class="GtkSeparator">
152+
<style>
153+
<class name="spacer"/>
154+
</style>
155+
</object>
156+
</child>
157+
<child>
158+
<object class="GtkVolumeButton" id="volume-button">
159+
<property name="value">1</property>
160+
</object>
161+
</child>
162+
<child>
163+
<object class="GtkButton" id="audiotracks-button">
164+
<style>
165+
<class name="flat"/>
166+
</style>
167+
<property name="icon-name">media-optical-cd-audio-symbolic</property>
168+
<property name="tooltip-text">Change audio track</property>
169+
</object>
170+
</child>
171+
<child>
172+
<object class="GtkButton" id="subtitle-button">
173+
<style>
174+
<class name="flat"/>
175+
</style>
176+
<property name="icon-name">media-view-subtitles-symbolic</property>
177+
<property name="tooltip-text">Change subtitles</property>
178+
</object>
179+
</child>
180+
<child>
181+
<object class="GtkToggleButton" id="fullscreen-button">
182+
<style>
183+
<class name="flat"/>
184+
</style>
185+
<property name="icon-name">view-fullscreen-symbolic</property>
186+
<property name="tooltip-text">Toggle fullscreen</property>
187+
</object>
188+
</child>
189+
</object>
190+
</child>
191+
</object>
192+
</child>
193+
</object>
194+
</child>
195+
</object>
196+
</property>
197+
</object>
198+
<object class="GtkPopover" id="users-popover">
199+
<child>
200+
<object class="GtkBox">
201+
<property name="orientation">1</property>
202+
<property name="halign">3</property>
203+
<property name="valign">3</property>
204+
<property name="spacing">12</property>
205+
<property name="margin-top">8</property>
206+
<property name="margin-start">8</property>
207+
<property name="margin-end">8</property>
208+
<property name="margin-bottom">8</property>
209+
<child>
210+
<object class="GtkLabel" id="watching-with-title-label">
211+
<style>
212+
<class name="title"/>
213+
</style>
214+
<property name="label">You're currently watching alone.</property>
215+
</object>
216+
</child>
217+
<child>
218+
<object class="GtkLabel">
219+
<property name="justify">2</property>
220+
<property name="label">Ask the people you want to watch with to enter the following stream code:</property>
221+
</object>
222+
</child>
223+
<child>
224+
<object class="GtkBox">
225+
<style>
226+
<class name="linked"/>
227+
</style>
228+
<child>
229+
<object class="GtkEntry" id="stream-code-input">
230+
<property name="editable">false</property>
231+
<property name="hexpand">true</property>
232+
</object>
233+
</child>
234+
<child>
235+
<object class="GtkButton" id="copy-stream-code-button">
236+
<property name="icon-name">edit-copy-symbolic</property>
237+
<property name="tooltip-text">Copy stream code to clipboard</property>
238+
</object>
239+
</child>
240+
</object>
241+
</child>
242+
</object>
243+
</child>
244+
</object>
245+
</interface>

internal/resources/description.ui

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<interface>
3+
<requires lib="gtk" version="4.0"/>
4+
<object class="AdwWindow" id="description-window">
5+
<property name="default-width">450</property>
6+
<property name="default-height">250</property>
7+
<property name="modal">true</property>
8+
<child type="content">
9+
<object class="GtkBox">
10+
<property name="orientation">1</property>
11+
<child>
12+
<object class="AdwHeaderBar">
13+
<style>
14+
<class name="flat"/>
15+
</style>
16+
<child type="title">
17+
<object class="GtkBox">
18+
<property name="orientation">1</property>
19+
<property name="halign">3</property>
20+
<property name="valign">3</property>
21+
<child>
22+
<object class="GtkLabel" id="headerbar-title">
23+
<style>
24+
<class name="title"/>
25+
</style>
26+
</object>
27+
</child>
28+
<child>
29+
<object class="GtkLabel" id="headerbar-subtitle">
30+
<style>
31+
<class name="subtitle"/>
32+
</style>
33+
<property name="visible">false</property>
34+
</object>
35+
</child>
36+
</object>
37+
</child>
38+
</object>
39+
</child>
40+
<child>
41+
<object class="GtkScrolledWindow">
42+
<property name="margin-start">12</property>
43+
<property name="margin-end">12</property>
44+
<property name="margin-bottom">12</property>
45+
<child>
46+
<object class="GtkBox">
47+
<property name="orientation">1</property>
48+
<child>
49+
<object class="GtkProgressBar" id="preparing-progress-bar">
50+
<style>
51+
<class name="preparing-progress-bar"/>
52+
</style>
53+
<property name="show-text">true</property>
54+
<property name="margin-bottom">12</property>
55+
<property name="visible">false</property>
56+
</object>
57+
</child>
58+
<child>
59+
<object class="GtkTextView" id="description-text">
60+
<style>
61+
<class name="rounded-corners"/>
62+
</style>
63+
<property name="editable">false</property>
64+
<property name="cursor-visible">false</property>
65+
<property name="vexpand">true</property>
66+
<property name="hexpand">true</property>
67+
</object>
68+
</child>
69+
</object>
70+
</child>
71+
</object>
72+
</child>
73+
</object>
74+
</child>
75+
</object>
76+
</interface>

internal/resources/error.ui

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<interface>
3+
<requires lib="gtk" version="4.0"/>
4+
<object class="GtkMessageDialog" id="error-dialog">
5+
<property name="modal">true</property>
6+
<property name="text">A Fatal Error Occured</property>
7+
<property name="secondary-text"></property>
8+
<property name="message-type">3</property>
9+
<child type="action">
10+
<object class="GtkButton" id="report-error-button">
11+
<property name="label">Report Error</property>
12+
</object>
13+
</child>
14+
<child type="action">
15+
<object class="GtkButton" id="close-multiplex-button">
16+
<style>
17+
<class name="destructive-action"/>
18+
</style>
19+
<property name="label">Close Multiplex</property>
20+
</object>
21+
</child>
22+
</object>
23+
</interface>

internal/resources/menu.ui

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<interface>
3+
<requires lib="gtk" version="4.0"/>
4+
<menu id="main-menu">
5+
<section>
6+
<item>
7+
<attribute name="label" translatable="true">Open Downloads</attribute>
8+
<attribute name="action">win.opendownloads</attribute>
9+
</item>
10+
<item>
11+
<attribute name="label" translatable="true">Copy Magnet Link</attribute>
12+
<attribute name="action">win.copymagnetlink</attribute>
13+
</item>
14+
<item>
15+
<attribute name="label" translatable="true">Preferences</attribute>
16+
<attribute name="action">win.preferences</attribute>
17+
<attribute name="accel">&lt;Primary&gt;comma</attribute>
18+
</item>
19+
<item>
20+
<attribute name="label" translatable="true">About Multiplex</attribute>
21+
<attribute name="action">win.about</attribute>
22+
</item>
23+
</section>
24+
</menu>
25+
</interface>

0 commit comments

Comments
 (0)