comment out non correct working code,
[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                 </colors>
13                 <windowstyle type="skinned">
14                         <color name="Background" color="#33294a6b" />
15                         <color name="LabelForeground" color="#ffffff" />
16                         <color name="ListboxBackground" color="#33294a6b" />
17                         <color name="ListboxForeground" color="#ffffff" />
18                         <color name="ListboxSelectedBackground" color="#225b7395" />
19                         <color name="ListboxSelectedForeground" color="#ffffff" />
20                         <color name="ListboxMarkedBackground" color="#ff0000" />
21                         <color name="ListboxMarkedForeground" color="#ffffff" />
22                         <borderset name="bsWindow">
23                                 <pixmap pos="bpTopLeft"     filename="/usr/share/enigma2/b_w_tl.png" />
24                                 <pixmap pos="bpTop"         filename="/usr/share/enigma2/b_w_t.png"  />
25                                 <pixmap pos="bpTopRight"    filename="/usr/share/enigma2/b_w_tr.png" />
26                                 <pixmap pos="bpLeft"        filename="/usr/share/enigma2/b_w_l.png"  />
27                                 <pixmap pos="bpRight"       filename="/usr/share/enigma2/b_w_r.png"  />
28                                 <pixmap pos="bpBottomLeft"  filename="/usr/share/enigma2/b_w_bl.png" />
29                                 <pixmap pos="bpBottom"      filename="/usr/share/enigma2/b_w_b.png"  />
30                                 <pixmap pos="bpBottomRight" filename="/usr/share/enigma2/b_w_br.png" />
31                         </borderset>
32                 </windowstyle> """ """
33                 <screen name="Standby" flags="wfNoBorder" position="0,0" size="720,576" title="Standby">
34                 </screen>
35                 <screen name="Menu" position="210,150" size="300,235" title="real main menu">
36                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
37                         <!--<widget name="menu" position="10,55" size="280,150" font="Arial;23" />-->
38                         <widget name="menu" position="10,55" size="280,175"/>
39                 </screen>
40                 <screen name="ScartLoopThrough" position="0,0" size="720,576">
41                 </screen>
42                 <screen name="ServiceInfo" position="180,120" size="360,330">
43                         <widget name="infolist" position="20,10" size="320,325" />
44                 </screen>
45                 <screen name="HarddiskSelection" position="140,165" size="360,100">
46                         <widget name="hddlist" position="20,10" size="320,75" />
47                 </screen>
48                 <screen name="HarddiskSetup" position="140,165" size="360,100">
49                         <widget name="model" position="20,10" size="300,20" />
50                         <widget name="capacity" position="20,30" size="300,20" />
51                         <widget name="bus" position="20,50" size="300,20" />
52                         <widget name="initialize" position="40,80" size="75,20" font="Arial;20" backgroundColor="red" />
53                 </screen>
54                 <screen name="Setup" position="140,125" size="460,280" title="Setup">
55                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
56                         <widget name="config" position="10,50" size="420,175" />
57                         <widget name="ok" position="140,240" size="38,20" font="Arial;20" backgroundColor="green" />
58                         <widget name="cancel" position="240,240" size="70,20" font="Arial;20" backgroundColor="red" />
59                 </screen>
60                 <screen name="NimSelection" position="140,165" size="360,100">
61                         <widget name="nimlist" position="20,10" size="320,75" />
62                 </screen>
63                 <screen name="CiWait" position="140,165" size="360,50">
64                         <widget name="message" position="20,10" size="320,25" font="Arial;23" />
65                 </screen>
66                 <screen name="CiSelection" position="140,165" size="360,100">
67                         <widget name="entries" position="20,10" size="320,75" />
68                 </screen>
69                 <screen name="CiMmi" position="140,165" size="360,260">
70                         <widget name="title" position="10,0" size="320,25" font="Arial;23" />
71                         <widget name="subtitle" position="10,35" size="320,25" font="Arial;23" />
72                         <widget name="entries" position="20,70" size="320,150" />
73                         <widget name="bottom" position="20,230" size="320,25" font="Arial;23" />
74                 </screen>
75                 <screen name="NimSetup" position="140,165" size="360,180">
76                         <widget name="config" position="20,10" size="320,150" />
77                 </screen>
78                 <screen name="Satconfig" position="140,125" size="460,280" title="Satconfig">
79                         <widget name="config" position="10,50" size="420,150" />
80                 </screen>
81                 <screen name="ScanSetup" position="100,100" size="500,400" title="Service scan">
82                         <widget name="config" position="20,10" size="460,350" />
83                         <widget name="introduction" position="20,360" size="280,30" font="Arial;23" />
84                 </screen>
85                 <screen name="ScanSimple" position="150,100" size="400,300" title="Service scan">
86                         <widget name="header" position="20,10" size="280,25" font="Arial;23"/>
87                         <widget name="config" position="20,45" size="360,200" />
88                         <widget name="footer" position="20,250" size="360,25" font="Arial;23"/>
89                         <!--<widget name="introduction" position="20,360" size="280,30" font="Arial;23" />-->
90                 </screen>
91                 <screen name="TimerEntry" position="100,100" size="500,400" title="Timer entry">
92                         <widget name="config" position="5,10" size="480,350" />
93                 </screen>
94                 <screen name="NetworkSetup" position="140,125" size="460,280" title="Network Setup">
95                         <widget name="config" position="10,50" size="420,175" />
96                         <widget name="introduction" position="10,230" size="400,30" font="Arial;23" />
97                 </screen>
98                 <screen name="PluginBrowser" position="190,125" size="360,250" title="Plugins">
99                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
100                         <widget name="pluginlist" position="10,50" size="320,200" />
101                 </screen>
102                 <screen name="About" position="140,125" size="360,250" title="About">
103                         <widget name="text" position="10,30" size="420,40" font="Arial;18"/>
104                         <widget name="tuner" position="10,80" size="420,20" font="Arial;18"/>
105                         <widget name="tuner0" position="10,100" size="420,20" font="Arial;18"/>
106                         <widget name="tuner1" position="10,120" size="420,20" font="Arial;18"/>
107                         <widget name="hdd" position="10,170" size="420,20" font="Arial;18"/>
108                         <widget name="hddA" position="10,190" size="420,20" font="Arial;18"/>
109                 </screen>
110                 <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
111                         <widget name="okbutton" position="20,270" size="205,40" />
112                         <widget name="txt_alpha" position="20,20" size="110,20" />
113                         <widget name="sld_alpha" position="150,20" size="290,20" />
114                         <widget name="txt_brightness" position="20,60" size="120,20" />
115                         <widget name="sld_brightness" position="150,20" size="290,20" />
116                         <widget name="txt_gamma" position="20,100" size="120,20" />
117                         <widget name="sld_gamma" position="150,100" size="290,20" />
118                 </screen>
119                 <screen name="configTest" position="300,100" size="300,300" title="config menu">
120                         <widget name="config" position="10,30" size="420,220" />
121                 </screen>
122                 <screen name="TimerEditList" position="70,100" size="560,400" title="Timer Editor">
123                         <widget name="timerlist" position="10,50" size="520,300" />
124                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
125                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
126                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
127                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
128                 </screen>
129                 <screen name="clockDisplay" position="300,100" size="300,300">
130                         <widget name="okbutton" position="10,10" size="280,40" />
131                         <widget name="title" position="10,120" size="280,50" />
132                         <widget name="theClock" position="10,60" size="280,50" />
133                 </screen>
134                 <screen name="InfoBar" flags="wfNoBorder" position="0,380" size="720,148" title="InfoBar">
135                         <ePixmap position="0,0" size="720,148" pixmap="/usr/share/enigma2/info-bg.png" />
136                         
137                         <widget name="ServiceName" position="69,25" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
138                         <widget name="CurrentTime" position="575,10" size="90,30" backgroundColor="dark" font="Arial;19" />
139                         <widget name="Event_Now_StartTime" position="210,68" size="60,22" font="Arial;20" backgroundColor="dark" />
140                         <widget name="Event_Next_StartTime" position="210,98" size="60,22" font="Arial;20" backgroundColor="dark" />
141                         <widget name="Event_Now" position="273,68" size="282,22" font="Arial;20" backgroundColor="dark" />
142                         <widget name="Event_Next" position="273,98" size="282,22" font="Arial;20" backgroundColor="dark" />
143                         <widget name="Event_Now_Duration" position="555,68" size="70,26" font="Arial;22" backgroundColor="dark" />
144                         <widget name="Event_Next_Duration" position="555,98" size="70,26" font="Arial;22" backgroundColor="dark" />
145 <!--                    <eLabel position="70,0" size="300,30" text=".oO skin Oo." font="Arial;20" /> -->
146                 </screen>
147                 <screen name="NumberZap" flags="wfNoBorder" position="300,120" size="120,60">
148                         <widget name="number" position="30,15" size="80,25" font="Arial;23" />
149                 </screen>
150                 <screen name="Volume" flags="wfNoBorder" position="400,125" size="180,60" title="Volume">
151                         <ePixmap position="0,0" size="180,60" pixmap="/usr/share/enigma2/volumeslider-fs8.png" />
152                         
153                         <widget name="Volume" position="8,38" size="164,11" backgroundColor="dark" />
154                 </screen>
155                 <screen name="Mute" flags="wfNoBorder" position="100,100" size="59,80" title="Mute">
156                         <ePixmap position="0,0" size="59,80" pixmap="/usr/share/enigma2/mute-fs8.png" />
157                 </screen>
158                 <screen name="ChannelSelection" position="90,100" size="560,420" title="Channel Selection">
159                         <widget name="list" position="10,50" size="540,325" />
160 <!--                    <widget name="okbutton" position="340,50" size="140,30" />-->
161                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
162                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
163                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
164                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
165                 </screen>
166                 <screen name="EPGSelection" position="90,100" size="560,415" title="EPG Selection">
167                         <widget name="list" position="10,5" size="550,400" />
168                 </screen>
169                 <screen name="EventView" position="100,100" size="520,380" title="Eventview">
170                         <widget name="epg_description" position="10,5" size="500,335" font="Arial;22" />
171                         <widget name="datetime" position="10,345" size="130,30" font="Arial;22" />
172                         <widget name="duration" position="140,345" size="100,30" font="Arial;22" />
173                         <widget name="channel" position="240,345" size="270,30" font="Arial;22" />
174                 </screen>
175                 <screen name="MovieSelection" position="50,50" size="620,476" title="Select-a-movie">
176                         <widget name="list" position="0,30" size="600,375" />
177                         <widget name="freeDiskSpace" position="0,440" size="400,30" />
178                 </screen>
179                 <screen name="ServiceScan" position="200,100" size="300,200" title="Service Scan">
180                         <widget name="scan_progress" position="10,10" size="300,20" />
181                         <widget name="scan_state" position="10,40" size="280,60" font="Arial;20" />
182                 </screen>
183                 <screen name="TimerEdit" position="70,100" size="590,335" title="Timer Edit">
184                         <widget name="description" position="10,10" size="580,40" font="Arial;25" />
185                         <widget name="lbegin" position="405,102" size="103,30" font="Arial;25" foregroundColor="red" />
186                         <widget name="lend" position="405,158" size="103,30" font="Arial;25" foregroundColor="green" />
187                         <widget name="begin" position="508,105" size="72,35" font="Arial;25" />
188                         <widget name="end" position="508,150" size="72,35" font="Arial;25" />
189                         <widget name="apply" position="10,240" size="250,35" />
190                 </screen>
191                 <screen name="MessageBox" position="0,300" size="720,10" title="Message">
192                         <widget name="text" position="0,0" size="650,0" font="Arial;22" />
193                         <applet type="onLayoutFinish">
194 # this should be factored out into some helper code, but currently demonstrated applets.
195 from enigma import eSize, ePoint
196
197 orgwidth = self.instance.size().width()
198 orgpos = self.instance.position()
199 textsize = self["text"].getSize()
200
201 # y size still must be fixed in font stuff...
202 textsize = (textsize[0], textsize[1] + 20)
203 wsize = (textsize[0] + 50, textsize[1] + 50)
204
205 # resize 
206 self.instance.resize(eSize(*wsize))
207
208 # resize label
209 self["text"].instance.resize(eSize(*textsize))
210
211 # center window
212 newwidth = wsize[0]
213 self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y()))
214                         </applet>
215                 </screen>
216         </skin>