81c85a185aa42a822836b5dd7d514baa69ad4f49
[enigma2.git] / data / skin.xml
1 <skin>
2         
3                 <colors>
4                         <color name="white"     value="#ffffff" />
5                         <color name="black"     value="#000000" />
6                         <color name="dark"      value="#20294a6b" />
7                         
8                         <color name="red"               value="#ff0000" />
9                         <color name="green"     value="#00ff00" />
10                         <color name="blue"              value="#0000ff" />
11                         <color name="yellow"    value="#c0c000" />
12                         <color name="transparent"       value="#ffffffff" />
13                 </colors>
14                 <windowstyle type="skinned">
15                         <color name="Background" color="#33294a6b" />
16                         <color name="LabelForeground" color="#ffffff" />
17                         <color name="ListboxBackground" color="#33294a6b" />
18                         <color name="ListboxForeground" color="#ffffff" />
19                         <color name="ListboxSelectedBackground" color="#225b7395" />
20                         <color name="ListboxSelectedForeground" color="#ffffff" />
21                         <color name="ListboxMarkedBackground" color="#ff0000" />
22                         <color name="ListboxMarkedForeground" color="#ffffff" />
23                         
24                         <color name="WindowTitleForeground" color="#ffffff" />
25                         <color name="WindowTitleBackground" color="#33294a6b" />
26                         <borderset name="bsWindow">
27                                 <pixmap pos="bpTopLeft"     filename="/usr/share/enigma2/b_w_tl.png" />
28                                 <pixmap pos="bpTop"         filename="/usr/share/enigma2/b_w_t.png"  />
29                                 <pixmap pos="bpTopRight"    filename="/usr/share/enigma2/b_w_tr.png" />
30                                 <pixmap pos="bpLeft"        filename="/usr/share/enigma2/b_w_l.png"  />
31                                 <pixmap pos="bpRight"       filename="/usr/share/enigma2/b_w_r.png"  />
32                                 <pixmap pos="bpBottomLeft"  filename="/usr/share/enigma2/b_w_bl.png" />
33                                 <pixmap pos="bpBottom"      filename="/usr/share/enigma2/b_w_b.png"  />
34                                 <pixmap pos="bpBottomRight" filename="/usr/share/enigma2/b_w_br.png" />
35                         </borderset>
36                 </windowstyle>
37                 <screen name="Standby" flags="wfNoBorder" position="0,0" size="720,576" title="Standby">
38                 </screen>
39                 <screen name="Menu" position="210,150" size="300,235" title="Main menu">
40                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
41                         <!--<widget name="menu" position="10,55" size="280,150" font="Arial;23" />-->
42                         <widget name="menu" position="10,55" size="280,175"/>
43                 </screen>
44                 <screen name="ScartLoopThrough" position="0,0" size="720,576">
45                 </screen>
46                 <screen name="ServiceInfo" position="160,120" size="400,330" title="Serviceinfo">
47                         <widget name="infolist" position="20,10" size="360,325" selectionDisabled="1"/>
48                 </screen>
49                 <screen name="AudioSelection" position="210,150" size="300,170" title="Audio">
50                         <widget name="tracks" position="20,10" size="260,150" />
51                 </screen>
52                 <screen name="SubserviceSelection" position="210,150" size="300,320" title="Subservices">
53                         <widget name="subservices" position="20,10" size="260,300" />
54                 </screen>
55                 <screen name="HarddiskWait" position="140,165" size="360,60">
56                         <widget name="wait" position="20,10" size="320,25" font="Arial;23"/>
57                 </screen>
58                 <screen name="HarddiskSelection" position="140,165" size="360,100" title="Select HDD">
59                         <widget name="hddlist" position="20,10" size="320,75" />
60                 </screen>
61                 <screen name="HarddiskSetup" position="140,165" size="420,160" title="Harddisk">
62                         <widget name="model" position="20,10" size="380,25" font="Arial;23"  />
63                         <widget name="capacity" position="20,40" size="380,25" font="Arial;23"  />
64                         <widget name="bus" position="20,70" size="380,25" font="Arial;23"  />
65                         <widget name="initialize" position="40,110" size="100,28" font="Arial;25" backgroundColor="red" />
66                 </screen>
67                 <screen name="Setup" position="100,125" size="540,280" title="Setup">
68                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
69                         <widget name="config" position="10,50" size="520,175" />
70                         <widget name="ok" position="140,240" size="38,20" font="Arial;20" backgroundColor="green" />
71                         <widget name="cancel" position="240,240" size="70,20" font="Arial;20" backgroundColor="red" />
72                 </screen>
73                 <screen name="NimSelection" position="140,165" size="400,100" title="select Slot">
74                         <widget name="nimlist" position="20,10" size="360,75" />
75                 </screen>
76                 <screen name="CiWait" position="140,165" size="360,50" title="Common Interface">
77                         <widget name="message" position="20,10" size="320,25" font="Arial;23" />
78                 </screen>
79                 <screen name="CiSelection" position="140,165" size="360,100" title="Common Interface">
80                         <widget name="entries" position="20,10" size="320,75" />
81                 </screen>
82                 <screen name="CiMmi" position="140,165" size="360,260">
83                         <widget name="title" position="10,0" size="320,25" font="Arial;23" />
84                         <widget name="subtitle" position="10,35" size="320,25" font="Arial;23" />
85                         <widget name="entries" position="20,70" size="320,150" />
86                         <widget name="bottom" position="20,230" size="320,25" font="Arial;23" />
87                 </screen>
88                 <screen name="NimSetup" position="140,165" size="360,250" title="Satconfig">
89                         <widget name="config" position="20,10" size="320,220" />
90                 </screen>
91                 <screen name="Satconfig" position="140,125" size="460,280" title="Satconfig">
92                         <widget name="config" position="10,50" size="420,150" />
93                 </screen>
94                 <screen name="ScanSetup" position="90,100" size="520,400" title="Service scan">
95                         <widget name="config" position="20,10" size="460,350" />
96                         <widget name="introduction" position="20,360" size="350,30" font="Arial;23" />
97                 </screen>
98                 <screen name="ScanSimple" position="150,100" size="400,300" title="Service scan">
99                         <widget name="header" position="20,10" size="280,25" font="Arial;23"/>
100                         <widget name="config" position="20,45" size="360,200" />
101                         <widget name="footer" position="20,250" size="360,25" font="Arial;23"/>
102                         <!--<widget name="introduction" position="20,360" size="280,30" font="Arial;23" />-->
103                 </screen>
104                 <screen name="TimerEntry" position="100,100" size="500,400" title="Timer entry">
105                         <widget name="config" position="5,10" size="480,350" />
106                         <widget name="ok" position="140,365" size="38,20" font="Arial;20" backgroundColor="green" />
107                         <widget name="cancel" position="240,365" size="70,20" font="Arial;20" backgroundColor="red" />
108                 </screen>
109                 <screen name="NetworkSetup" position="140,125" size="460,280" title="Network Setup">
110                         <widget name="config" position="10,50" size="420,175" />
111                         <widget name="introduction" position="10,230" size="400,30" font="Arial;23" />
112                 </screen>
113                 <screen name="PluginBrowser" position="190,125" size="360,250" title="Plugins">
114                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
115                         <widget name="pluginlist" position="10,50" size="320,200" />
116                 </screen>
117                 <screen name="About" position="140,125" size="360,250" title="About">
118                         <widget name="text" position="10,30" size="420,40" font="Arial;18"/>
119                         <widget name="tuner" position="10,80" size="420,20" font="Arial;18"/>
120                         <widget name="tuner0" position="10,100" size="420,20" font="Arial;18"/>
121                         <widget name="tuner1" position="10,120" size="420,20" font="Arial;18"/>
122                         <widget name="hdd" position="10,170" size="420,20" font="Arial;18"/>
123                         <widget name="hddA" position="10,190" size="420,20" font="Arial;18"/>
124                 </screen>
125                 <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
126                         <widget name="okbutton" position="20,270" size="205,40" />
127                         <widget name="txt_alpha" position="20,20" size="110,20" />
128                         <widget name="sld_alpha" position="150,20" size="290,20" />
129                         <widget name="txt_brightness" position="20,60" size="120,20" />
130                         <widget name="sld_brightness" position="150,20" size="290,20" />
131                         <widget name="txt_gamma" position="20,100" size="120,20" />
132                         <widget name="sld_gamma" position="150,100" size="290,20" />
133                 </screen>
134                 <screen name="configTest" position="300,100" size="300,300" title="config menu">
135                         <widget name="config" position="10,30" size="420,220" />
136                 </screen>
137                 <screen name="TimerEditList" position="70,100" size="560,400" title="Timer Editor">
138                         <widget name="timerlist" position="10,50" size="520,300" />
139                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
140                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
141                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
142                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
143                 </screen>
144                 <screen name="clockDisplay" position="300,100" size="300,300">
145                         <widget name="okbutton" position="10,10" size="280,40" />
146                         <widget name="title" position="10,120" size="280,50" />
147                         <widget name="theClock" position="10,60" size="280,50" />
148                 </screen>
149                 <screen name="InfoBar" flags="wfNoBorder" position="0,380" size="720,148" title="InfoBar">
150                         <ePixmap position="0,0" zPosition="-1" size="720,148" pixmap="/usr/share/enigma2/info-bg.png" />
151
152                         <widget name="snr" text="SNR:" position="195,0" size="40,22" valign="center" font="Arial;15" transparent="1" />
153                         <widget name="agc" text="AGC:" position="275,0" size="40,22" valign="center" font="Arial;15" transparent="1" />
154                         <widget name="ber" text="BER:" position="355,0" size="40,22" valign="center" font="Arial;15" transparent="1" />
155                         <widget name="snr_percent" position="234,0" size="40,22" valign="center" font="Arial;15" transparent="1" />
156                         <widget name="agc_percent" position="314,0" size="40,22" valign="center" font="Arial;15" transparent="1" />
157                         <widget name="ber_count" position="394,0" size="40,22" valign="center" font="Arial;15" transparent="1" />
158                         <widget name="snr_progress" position="442,1" size="93,6" />
159                         <widget name="agc_progress" position="442,8" size="93,6" />
160                         <widget name="ber_progress" position="442,15" size="93,6" />
161
162                         <widget name="BlinkingPoint" pixmap="/usr/share/enigma2/record.png" position="430,31" zPosition="2" size="58,25" />
163
164                         <widget name="CryptActive" pixmap="/usr/share/enigma2/crypt.png" position="570,40" size="12,15" />
165                         <widget name="DolbyActive" pixmap="/usr/share/enigma2/dolby.png" position="585,40" size="25,15" />
166                         <widget name="FormatActive" pixmap="/usr/share/enigma2/format.png" position="613,40" size="28,15" />
167
168                         <widget name="ServiceName" position="69,26" size="427,34" valign="center" font="Arial;22" backgroundColor="#101258" />
169                         <widget name="CurrentTime" position="575,10" size="90,30" backgroundColor="dark" font="Arial;19" />
170                         <widget name="Event_Now_StartTime" position="210,68" size="60,22" font="Arial;20" backgroundColor="dark" />
171                         <widget name="Event_Next_StartTime" position="210,98" size="60,22" font="Arial;20" backgroundColor="dark" />
172                         <widget name="Event_Now" position="273,68" size="282,22" font="Arial;20" backgroundColor="dark" />
173                         <widget name="Event_Next" position="273,98" size="282,22" font="Arial;20" backgroundColor="dark" />
174                         <widget name="Event_Now_Duration" position="555,68" size="150,26" font="Arial;22" backgroundColor="dark" />
175                         <widget name="Event_Next_Duration" position="555,98" size="150,26" font="Arial;22" backgroundColor="dark" />
176
177                         <widget name="ButtonRed" pixmap="/usr/share/enigma2/button_red.png" position="210,132" size="27,12" />
178                         <widget name="ButtonRedText" position="240,130" size="85,22" font="Arial;14" backgroundColor="blue" transparent="1" />
179                         <widget name="ButtonGreen" pixmap="/usr/share/enigma2/button_green.png" position="320,132" size="27,12" />
180                         <widget name="ButtonGreenText" position="350,130" size="85,22" font="Arial;14" backgroundColor="blue" transparent="1" />
181                         <widget name="ButtonYellow" pixmap="/usr/share/enigma2/button_yellow.png" position="430,132" size="27,12" />
182                         <widget name="ButtonBlue" pixmap="/usr/share/enigma2/button_blue.png" position="540,132" size="27,12" />
183                         
184                 </screen>
185
186                 <screen name="MoviePlayer" flags="wfNoBorder" position="0,370" size="720,148" title="InfoBar">
187                         <ePixmap position="0,0" zPosition="-1" size="720,148" pixmap="/usr/share/enigma2/info-bg.png" />
188                         <ePixmap position="200,60" zPosition="0" size="433,57" pixmap="/usr/share/enigma2/dvr-buttons.png" />
189                         <!--<ePixmap position="0,0" zPosition="1" size="720,148" pixmap="/usr/share/enigma2/movieplayer.png" />
190 -->
191 <!--                    <ePixmap position="230,70" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/rewindbutton.png" />
192                         <ePixmap position="275,70" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/playbutton.png" />
193                         <ePixmap position="320,70" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/pausebutton.png" />
194                         <ePixmap position="365,70" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/forwardbutton.png" />
195                         <ePixmap position="410,70" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/stopbutton.png" />
196                         <ePixmap position="455,70" zPosition="0" size="40,40" pixmap="/usr/share/enigma2/recordbutton.png" />
197 -->
198 <!--                    <widget name="ServiceName" position="250,75" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
199                         <widget name="CurrentTime" position="575,85" size="90,30" backgroundColor="dark" font="Arial;19" />
200                         <eLabel position="70,0" size="300,30" text=".oO Movie Player Oo." font="Arial;20" />
201 -->
202                         <widget name="ServiceName" position="69,25" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
203                         <widget name="CurrentTime" position="575,10" size="90,30" backgroundColor="dark" font="Arial;19" />
204
205
206                 </screen>
207
208
209                 <screen name="NumberZap" position="200,140" size="280,60" title="Channel">
210                         <widget name="channel" position="50,15" size="110,25" font="Arial;23" />
211                         <widget name="number" position="160,15" size="80,25" halign="right" font="Arial;23" />
212                 </screen>
213                 <screen name="Volume" flags="wfNoBorder" position="400,125" size="180,60" title="Volume">
214                         <ePixmap position="0,0" zPosition="0" size="180,60" pixmap="/usr/share/enigma2/volumeslider-fs8.png" />
215                         
216                         <widget name="Volume" zPosition="1" position="8,38" size="164,11" backgroundColor="dark" />
217                 </screen>
218                 <screen name="Mute" flags="wfNoBorder" position="100,100" size="59,80" title="Mute">
219                         <ePixmap position="0,0" size="59,80" pixmap="/usr/share/enigma2/mute-fs8.png" />
220                 </screen>
221                 <screen name="Dish" flags="wfNoBorder" position="300,100" size="100,107" title="Dish">
222                         <widget name="transparent" zPosition="-1" position="0,0" size="100,107" backgroundColor="transparent" />
223                         <widget name="Dishpixmap" pixmap="/usr/share/enigma2/dish.png" position="0,0" size="100,107" />
224                 </screen>
225                 <screen name="ChannelSelection" position="90,98" size="560,417" title="Channel Selection">
226                         <widget name="list" position="10,45" size="540,364" />
227                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
228                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
229                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
230                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
231                 </screen>
232                 <screen name="SimpleChannelSelection" position="90,98" size="560,417" title="Channel Selection">
233                         <widget name="list" position="10,45" size="540,364" />
234                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
235                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
236                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
237                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
238                 </screen>
239                 <screen name="EPGSelection" position="90,100" size="560,415" title="EPG Selection">
240                         <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Arial;21" />
241                         <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Arial;21" />
242                         <widget name="key_yellow" position="280,0" size="140,30" backgroundColor="yellow" font="Arial;21" />
243                         <widget name="key_blue" position="420,0" size="140,30" backgroundColor="blue" font="Arial;21" />
244
245                         <widget name="list" position="10,40" size="550,370" />
246                 </screen>
247                 <screen name="EventView" position="100,100" size="520,380" title="Eventview">
248                         <widget name="epg_description" position="10,5" size="500,335" font="Arial;22" />
249                         <widget name="datetime" position="10,345" size="130,30" font="Arial;22" />
250                         <widget name="duration" position="140,345" size="100,30" font="Arial;22" />
251                         <widget name="channel" position="240,345" size="270,30" font="Arial;22" />
252                 </screen>
253                 <screen name="MovieSelection" position="90,98" size="560,415" title="Select-a-movie">
254                         <widget name="list" position="0,0" size="560,375" />
255                         <widget name="freeDiskSpace" position="10,380" size="540,30" font="Arial;25" />
256                 </screen>
257                 <screen name="ServiceScan" position="200,100" size="300,200" title="Service Scan">
258                         <widget name="scan_progress" position="10,10" size="300,20" />
259                         <widget name="scan_state" position="10,40" size="280,60" font="Arial;20" />
260                 </screen>
261                 <screen name="TimerEdit" position="70,100" size="590,335" title="Timer Edit">
262                         <widget name="description" position="10,10" size="580,40" font="Arial;25" />
263                         <widget name="lbegin" position="405,102" size="103,30" font="Arial;25" foregroundColor="red" />
264                         <widget name="lend" position="405,158" size="103,30" font="Arial;25" foregroundColor="green" />
265                         <widget name="begin" position="508,105" size="72,35" font="Arial;25" />
266                         <widget name="end" position="508,150" size="72,35" font="Arial;25" />
267                         <widget name="apply" position="10,240" size="250,35" />
268                 </screen>
269                 <screen name="HelpMenu" flags="wfNoBorder" position="0,0" size="720,576" title="Menu">
270                         <widget name="list" position="100,100" size="550,375" />
271                         <eLabel position="500,40" size="220,60" text="help..." font="Arial;50" />
272                 </screen>
273                 <screen name="MessageBox" position="0,300" size="720,10" title="Message">
274                         <widget name="text" position="0,35" size="650,0" font="Arial;22" />
275                         <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Arial;21" />
276                         <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Arial;21" />
277                         <applet type="onLayoutFinish">
278 # this should be factored out into some helper code, but currently demonstrates applets.
279 from enigma import eSize, ePoint
280
281 orgwidth = self.instance.size().width()
282 orgpos = self.instance.position()
283 textsize = self["text"].getSize()
284
285 # y size still must be fixed in font stuff...
286 textsize = (textsize[0] + 50, textsize[1] + 50)
287 wsizex = textsize[0] + 50
288 wsizey = textsize[1] + 50
289 if (280 > wsizex):
290         wsizex = 280
291 wsize = (wsizex, wsizey)
292
293
294 # resize 
295 self.instance.resize(eSize(*wsize))
296
297 # resize label
298 self["text"].instance.resize(eSize(*textsize))
299
300 # center window
301 newwidth = wsize[0]
302 self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y()))
303                         </applet>
304                 </screen>
305         </skin>