-
Notifications
You must be signed in to change notification settings - Fork 21
/
image-ui.xml
247 lines (220 loc) · 9.49 KB
/
image-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
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE mythuitheme SYSTEM "http://www.mythtv.org/schema/mythuitheme.dtd">
<mythuitheme>
<!-- TODO - buttonstate and buttoncheck -->
<!-- Default screen that shows the the available images in a list -->
<window name="gallery">
<!-- shows path to current image -->
<textarea name="breadcrumbs" from="base_textarea">
<area>25,670,770,30</area>
<scroll direction="horizontal" />
</textarea>
<!-- shows the name of the folder or image -->
<textarea name="caption" from="base_textarea">
<area>25,650,770,30</area>
</textarea>
<!-- optional - shows current position in grid eg '1 of 123' -->
<textarea name="position" from="base_textarea">
<area>1120,670,135,30</area>
<align>right,vcenter</align>
</textarea>
<!-- Mandatory: the image list 10 columns x 6 rows -->
<buttonlist name="images0">
<area>10,30,100%-10,100%-30</area>
<buttonarea>0,25,100%,100%</buttonarea>
<wrapstyle>flowing</wrapstyle>
<layout>grid</layout>
<arrange>fixed</arrange>
<align>allcenter</align>
<spacing>0</spacing> <!-- (100% - 10*10%) / (10-1) or 0% -->
<statetype name="buttonitem">
<area>0,0,100%,100%</area>
<state name="active" from="galleryactivebutton">
<area>0,0,10%,16%</area>
</state>
<state name="selectedactive" from="galleryselectedbutton">
<area>0,0,10%,16%</area>
</state>
<state name="inactive" from="active"/>
<state name="selectedinactive" from="active"/>
</statetype>
<statetype name="upscrollarrow">
<position>100%-70,5</position>
<state type="off">
<imagetype name="upon">
<filename>lb-uparrow-reg.png</filename>
</imagetype>
</state>
<state type="full">
<imagetype name="upoff">
<filename>lb-uparrow-sel.png</filename>
</imagetype>
</state>
</statetype>
<!-- Show the arrow image that indicates that there are
more images below -->
<statetype name="downscrollarrow">
<position>100%-30,5</position>
<state type="off">
<imagetype name="dnon">
<filename>lb-dnarrow-reg.png</filename>
</imagetype>
</state>
<state type="full">
<imagetype name="dnoff">
<filename>lb-dnarrow-sel.png</filename>
</imagetype>
</state>
</statetype>
</buttonlist>
<!-- the image list 8 columns x 4 rows -->
<buttonlist name="images1" from="images0">
<spacing>7</spacing> <!-- (100% - 8*12%) / (8-1) or 0.57% -->
<statetype name="buttonitem">
<state name="active" from="galleryactivebutton">
<area>0,0,12%,24%</area>
</state>
<state name="selectedactive" from="galleryselectedbutton">
<area>0,0,12%,24%</area>
</state>
</statetype>
</buttonlist>
<!-- the image list 6 columns x 3 rows -->
<buttonlist name="images2" from="images0">
<spacing>10</spacing> <!-- (100% - 6*16%) / (6-1) or 0.8% -->
<statetype name="buttonitem">
<state name="active" from="galleryactivebutton">
<area>0,0,16%,32%</area>
</state>
<state name="selectedactive" from="galleryselectedbutton">
<area>0,0,16%,32%</area>
</state>
</statetype>
</buttonlist>
<!-- the image list 4 columns x 2 rows -->
<buttonlist name="images3" from="images0">
<spacing>0</spacing> <!-- (100% - 4*25%) / (4-1) or 0% -->
<statetype name="buttonitem">
<state name="active" from="galleryactivebutton">
<area>0,0,25%,50%</area>
</state>
<state name="selectedactive" from="galleryselectedbutton">
<area>0,0,25%,50%</area>
</state>
</statetype>
</buttonlist>
<!-- shows a message when no images are available
in the current directory -->
<textarea name="noimages" from="base_textarea">
<area>0,0,100%,100%</area>
<align>allcenter</align>
<multiline>yes</multiline>
</textarea>
<!-- Mandatory: Shows file info overlay -->
<buttonlist name="infolist" from="galleryinfolist">
<drawfrombottom>true</drawfrombottom>
</buttonlist>
<!--Shows scan progress-->
<group name="progress">
<area>0,0,100%,100%</area>
<animation trigger="AboutToShow">
<section duration="2000">
<alpha start="0" end="255" easingcurve="OutQuad"/>
</section>
</animation>
<animation trigger="AboutToHide">
<section duration="2000">
<alpha start="255" end="0" easingcurve="InQuad"/>
</section>
</animation>
<!-- Progress bar-->
<progressbar name="scanprogressbar" from="base_progressbar"/>
<!--Shows numerical scan progress-->
<textarea name="scanprogresstext" from="base_textarea">
<area>20%,100%-29,75%,30</area>
<align>center</align>
</textarea>
</group>
<!-- shows state of type filter -->
<textarea name="typefilter" from="base_textarea">
<area>25,100%-29,180,30</area>
<align>vcenter</align>
</textarea>
<!-- shows state of hidden filter -->
<textarea name="hidefilter" from="base_textarea">
<area>100%-190,100%-29,165,30</area>
<align>vcenter,right</align>
</textarea>
</window>
<!-- Slideshow window which shows the a single image only or a slideshow.
This is currently used by the MythImage plugin only -->
<window name="slideshow">
<!-- Extra small text for Gallery images -->
<fontdef name="gallerytext" from="text_small">
</fontdef>
<!-- the background behind the images (black) -->
<shape name="background_shape" from="base_background_shape">
<area>-2,-2,1284,724</area>
<fill color="#000000" alpha="255" />
<line color="#000000" alpha="255" />
</shape>
<!-- this is the image that shown in the foreground.
when fading is enabled this image is faded out. -->
<imagetype name="image">
<area>0,0,1280,720</area>
<preserveaspect>yes</preserveaspect>
</imagetype>
<!-- Represents "Show Captions" state for use as a dependancy by other widgets
Set = Hide; empty = Show -->
<textarea name="hidecaptions" from="base_textarea">
<area>0,0,0,0</area>
</textarea>
<!-- End/Loading/Failed to load status -->
<textarea name="status" from="base_textarea" depends="!hidecaptions">
<area>10,0,100%-200,30</area>
<font>gallerytext</font>
</textarea>
<!-- Slide count -->
<textarea name="slidecount" from="base_textarea" depends="!hidecaptions">
<area>100%-200,100%-32,190,30</area>
<font>gallerytext</font>
<align>right, vcentre</align>
</textarea>
<!-- Date/Comment -->
<textarea name="caption" from="base_textarea" depends="!hidecaptions">
<area>10,100%-28,100%-20,30</area>
<font>gallerytext</font>
<align>centre, vcentre</align>
<cutdown>no</cutdown>
<scroll direction="horizontal"/>
</textarea>
<!-- This list shows all the file information -->
<buttonlist name="infolist" from="base_buttonlist">
<shape name="infolist_background" from="base_background_shape">
<area>-15,-15,680,385</area>
</shape>
<area>315,190,650,354</area>
<statetype name="buttonitem">
<state name="active">
<area>0,0,650,36</area>
<textarea name="name" from="base_textarea">
<area>8,0,250,36</area>
</textarea>
<textarea name="value" from="base_textarea">
<area>270,0,370,36</area>
<scroll direction="horizontal"/>
</textarea>
</state>
<state name="inactive" from="active"/>
<state name="selectedactive" from="active">
<area>0,0,650,36</area>
<shape name="background" from="base_button_shape_selectedactive" />
</state>
<state name="selectedinactive" from="active">
<area>0,0,650,36</area>
<shape name="background" from="base_button_shape_selectedinactive" />
</state>
</statetype>
</buttonlist>
</window>
</mythuitheme>