-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathgallery-ui.xml
297 lines (251 loc) · 12.5 KB
/
gallery-ui.xml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
<mythuitheme>
<!-- Default screen that shows the the available images in a list -->
<window name="gallery">
<imagetype name="fanart" from="base_background"/>
<textarea name="heading" from="base_heading">
<position>0,0</position>
<textarea name="text">
<value>Image Gallery</value>
</textarea>
</textarea>
<shape name="gallery_background" from="base_background_shape">
<area>20,50,1240,570</area>
</shape>
<textarea name="noimages" from="base_textarea">
<area>220,50,840,570</area>
<align>allcenter</align>
</textarea>
<!-- the list that shows the images in the screen -->
<buttonlist name="images">
<area>35,65,1220,540</area>
<layout>grid</layout>
<spacing>2</spacing>
<wrapstyle>flowing</wrapstyle>
<buttonarea>0,0,100%,100%</buttonarea>
<statetype name="buttonitem">
<state name="active">
<!-- Shows the name of the item over a black background -->
<shape name="buttontext_background" from="base_background_shape">
<area>3,99,127,31</area>
<line color="#AAAAAA" alpha="0" width="0" />
</shape>
<textarea name="buttontext" from="base_textarea">
<area>10,105,110,20</area>
<font>text_small</font>
<multiline>yes</multiline>
<align>allcenter</align>
</textarea>
<!-- Shows the background image (if no thumbnail is available) or
the actual thumbnail image and a border around it -->
<imagetype name="background_image">
<area>0,0,133,133</area>
<mask>images/media/image_item_nfmask.png</mask>
<filename>images/media/image_item_bg.png</filename>
</imagetype>
<imagetype name="buttonimage">
<area>0,0,133,133</area>
<mask>images/media/image_item_nfmask.png</mask>
</imagetype>
<!-- shows that the image was marked/selected and
might be manipulated with other images -->
<statetype name="buttoncheck">
<position>96,3</position>
<state name="full">
<shape name="buttoncheck_background" from="base_background_shape">
<area>0,0,34,34</area>
<line color="#AAAAAA" alpha="0" width="0" />
</shape>
<imagetype name="checkfull" from="base_icon_selected">
<area>4,3,28,28</area>
<filename>images/icons/selected.png</filename>
</imagetype>
</state>
</statetype>
<!-- show a folder above the image if its a folder and not an image.
the node is a folder and it is currently not selected -->
<statetype name="nodetype">
<position>0,0</position>
<state name="subfolder">
<shape name="subfolder_background" from="base_background_shape">
<area>2,2,129,36</area>
<line color="#AAAAAA" alpha="0" width="0" />
</shape>
<imagetype name="subfolder_icon">
<area>10,6,28,28</area>
<filename>images/icons/folder_selected.png</filename>
</imagetype>
</state>
<state name="upfolder">
<imagetype name="upfolder_icon">
<area>10,6,28,28</area>
<filename>images/icons/folder_up_selected.png</filename>
</imagetype>
</state>
</statetype>
<imagetype name="background_image_border">
<area>0,0,133,133</area>
<filename>images/media/image_item_nfborder.png</filename>
</imagetype>
<!-- show how many images / directories are in this directory -->
<textarea name="childcount" from="base_textarea" depends="subfolder_icon">
<area>45,3,80,36</area>
</textarea>
</state>
<!-- These two states are not used -->
<state name="inactive" from="active"/>
<state name="selectedinactive" from="active"/>
<state name="selectedactive" from="active">
<area>-26,-26,133,133</area>
<!-- Shows the name of the item over a black background -->
<shape name="buttontext_background" from="base_background_shape_dark">
<area>7,118,171,60</area>
<line color="#AAAAAA" alpha="0" width="0" />
</shape>
<textarea name="buttontext" from="base_textarea">
<area>20,131,145,42</area>
<multiline>yes</multiline>
<scroll direction="vertical" />
<align>allcenter</align>
</textarea>
<!-- Shows the background image (if no thumbnail is available) or
the actual thumbnail image and a border around it -->
<imagetype name="background_image">
<area>0,0,185,185</area>
<mask>images/media/image_item_fmask.png</mask>
<filename>images/media/image_item_bg.png</filename>
</imagetype>
<imagetype name="buttonimage">
<area>0,0,185,185</area>
<mask>images/media/image_item_fmask.png</mask>
</imagetype>
<!-- shows that the image was marked/selected and
might be manipulated with other images -->
<statetype name="buttoncheck">
<position>143,7</position>
<state name="full">
<shape name="buttoncheck_background" from="base_background_shape">
<area>0,0,36,36</area>
<line color="#AAAAAA" alpha="0" width="0" />
</shape>
<imagetype name="checkfull" from="base_icon_selected">
<area>3,3,30,30</area>
<filename>images/icons/selected.png</filename>
</imagetype>
</state>
</statetype>
<!-- show a folder above the image if its a folder and not an image.
the node is a folder and it is currently not selected -->
<statetype name="nodetype">
<position>0,0</position>
<state name="subfolder">
<shape name="subfolder_background" from="base_background_shape">
<area>7,7,171,40</area>
<line color="#AAAAAA" alpha="0" width="0" />
</shape>
<imagetype name="subfolder_icon">
<area>15,12,30,30</area>
<filename>images/icons/folder_selected.png</filename>
</imagetype>
</state>
<state name="upfolder">
<imagetype name="upfolder_icon">
<area>15,12,30,30</area>
<filename>images/icons/folder_up_selected.png</filename>
</imagetype>
</state>
</statetype>
<imagetype name="background_image_border">
<area>0,0,185,185</area>
<filename>images/media/image_item_fborder.png</filename>
</imagetype>
<!-- show how many images / directories are in this directory -->
<textarea name="childcount" from="base_textarea" depends="subfolder_icon">
<area>50,12,80,30</area>
</textarea>
</state>
</statetype>
</buttonlist>
<shape name="gallery_info_background" from="base_background_shape">
<area>-15,636,1310,70</area>
</shape>
<!-- shows the name of the folder or image -->
<textarea name="title" from="base_textarea">
<area>25,640,700,30</area>
</textarea>
<!-- optional - shows current position in grid eg '1 of 123' -->
<textarea name="position" from="base_textarea">
<area>1100,640,155,30</area>
<align>right,vcenter</align>
</textarea>
<!-- shows path to current image -->
<textarea name="breadcrumbs" from="base_textarea">
<area>25,675,1230,20</area>
<scroll direction="horizontal" />
</textarea>
</window>
<!-- Filter screen that lets the user decide what
and how images shall be shown in the gallery screen -->
<window name="filter">
<!-- the background image -->
<imagetype name="background" from="base_background"/>
<!-- The heading (name) of the screen -->
<textarea name="heading" from="base_heading">
<position>0,0</position>
<textarea name="text">
<value>Filter/sort images</value>
</textarea>
</textarea>
<shape name="filter_background" from="base_background_shape">
<area>310,385,660,212</area>
</shape>
<textarea name="filter_text" from="base_textarea">
<area>330,400,240,36</area>
<align>right,vcenter</align>
<value>Directory filter:</value>
</textarea>
<textarea name="type_filter" from="filter_text">
<position>330,440</position>
<value>Type filter:</value>
</textarea>
<textarea name="sort_text" from="filter_text">
<position>330,480</position>
<value>Sort by:</value>
</textarea>
<textedit name="dirfilter_text" from="base_textedit">
<position>580,400</position>
</textedit>
<buttonlist name="typefilter_select" from="base_selector">
<position>580,440</position>
</buttonlist>
<button name="check_button" from="base_button">
<position>805,440</position>
<value>Check Filter</value>
</button>
<buttonlist name="sort_select" from="base_selector_wide">
<position>580,480</position>
</buttonlist>
<shape name="button_separator" from="base_background_shape">
<area>311,530,658,1</area>
</shape>
<button name="save_button" from="base_button">
<position>485,545</position>
<value>Save</value>
</button>
<button name="done_button" from="base_button">
<position>650,545</position>
<value>Cancel</value>
</button>
<shape name="helptext_background_bottom" from="base_background_shape">
<area>-15,615,1310,90</area>
</shape>
<textarea name="numimages_text" from="base_textarea">
<area>120,615,1040,90</area>
<scroll direction="vertical"/>
<align>allcenter</align>
<multiline>yes</multiline>
<value>Enter your current location, nearest large town or city. In some countries postal codes are also supported.</value>
</textarea>
</window>
</mythuitheme>