- return 1 for used action
[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="#4075a7" />
15                         <color name="LabelForeground" color="#ffffff" />
16                         <color name="ListboxBackground" color="#4075a7" />
17                         <color name="ListboxForeground" color="#ffffff" />
18                         <color name="ListboxSelectedBackground" color="#404080" />
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="data/b_w_tl.png" />
24                                 <pixmap pos="bpTop"         filename="data/b_w_t.png"  />
25                                 <pixmap pos="bpTopRight"    filename="data/b_w_tr.png" />
26                                 <pixmap pos="bpLeft"        filename="data/b_w_l.png"  />
27                                 <pixmap pos="bpRight"       filename="data/b_w_r.png"  />
28                                 <pixmap pos="bpBottomLeft"  filename="data/b_w_bl.png" />
29                                 <pixmap pos="bpBottom"      filename="data/b_w_b.png"  />
30                                 <pixmap pos="bpBottomRight" filename="data/b_w_br.png" />
31                         </borderset>
32                 </windowstyle> """ """
33                 <screen name="Menu" position="300,100" size="300,250" title="real main menu">
34 <!--                    <widget name="okbutton" position="10,190" size="280,50" font="Arial;20" valign="center" halign="center" />-->
35                         <widget name="title" position="10,10" size="280,20" font="Arial;18" />
36                         <widget name="menu" position="10,40" size="280,200" />
37                 </screen>
38                 <screen name="ScartLoopThrough" position="0,0" size="720,576">
39                 </screen>
40                 <screen name="HarddiskSelection" position="140,165" size="360,100">
41                         <widget name="hddlist" position="20,10" size="320,80" />
42                 </screen>
43                 <screen name="HarddiskSetup" position="140,165" size="360,100">
44                         <widget name="model" position="20,10" size="300,20" />
45                         <widget name="capacity" position="20,30" size="300,20" />
46                         <widget name="bus" position="20,50" size="300,20" />
47                         <widget name="initialize" position="40,80" size="75,20" font="Arial;20" backgroundColor="red" />
48                 </screen>
49                 <screen name="Setup" position="140,125" size="460,220" title="Setup">
50                         <widget name="config" position="10,30" size="420,120" />
51                         <widget name="ok" position="140,180" size="38,20" font="Arial;20" backgroundColor="green" />
52                         <widget name="cancel" position="240,180" size="70,20" font="Arial;20" backgroundColor="red" />
53                 </screen>
54                 <screen name="About" position="140,125" size="360,200" title="About">
55                         <widget name="text" position="10,30" size="420,40" font="Arial;20"/>
56                         <widget name="tuner" position="10,80" size="420,20"/>
57                         <widget name="tunerA" position="10,100" size="420,20"/>
58                         <widget name="tunerB" position="10,120" size="420,20"/>
59                         <widget name="hdd" position="10,150" size="420,20"/>
60                         <widget name="hddA" position="10,170" size="420,20"/>
61                 </screen>
62                 <screen name="Network" position="140,125" size="360,200" title="Network">
63                         <widget name="text" position="10,30" size="420,40" font="Arial;20"/>
64                         <widget name="tuner" position="10,80" size="420,20"/>
65                         <widget name="tunerA" position="10,100" size="420,20"/>
66                         <widget name="tunerB" position="10,120" size="420,20"/>
67                         <widget name="hdd" position="10,150" size="420,20"/>
68                         <widget name="hddA" position="10,170" size="420,20"/>
69                 </screen>
70                 <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
71                         <widget name="okbutton" position="20,245" size="205,40" />
72                         <widget name="txt_alpha" position="20,20" size="110,20" />
73                         <widget name="sld_alpha" position="150,20" size="290,20" />
74                         <widget name="txt_brightness" position="20,60" size="120,20" />
75                         <widget name="sld_brightness" position="150,20" size="290,20" />
76                         <widget name="txt_gamma" position="20,100" size="120,20" />
77                         <widget name="sld_gamma" position="150,100" size="290,20" />
78                 </screen>
79                 <screen name="configTest" position="300,100" size="300,300" title="config menu">
80                         <widget name="config" position="10,30" size="420,220" />
81                 </screen>
82                 <screen name="TimerEditList" position="160,100" size="420,430" title="Timer Editor">
83                         <widget name="timerlist" position="10,30" size="400,300" />
84                 </screen>
85                 <screen name="clockDisplay" position="300,100" size="300,300">
86                         <widget name="okbutton" position="10,10" size="280,40" />
87                         <widget name="title" position="10,120" size="280,50" />
88                         <widget name="theClock" position="10,60" size="280,50" />
89                 </screen>
90                 <screen name="InfoBar" flags="wfNoBorder" position="0,380" size="720,148" title="InfoBar">
91                         <ePixmap position="0,0" size="720,148" pixmap="data/info-bg.png" />
92                         
93                         <widget name="ServiceName" position="69,25" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
94                         <widget name="CurrentTime" position="575,10" size="90,30" backgroundColor="dark" font="Arial;19" />
95                         <widget name="Volume" position="575,45" size="100,5" backgroundColor="dark" />
96                         <widget name="Event_Now" position="273,68" size="282,22" font="Arial;20" backgroundColor="dark" />
97                         <widget name="Event_Next" position="273,98" size="282,22" font="Arial;20" backgroundColor="dark" />
98                         <widget name="Event_Now_Duration" position="555,68" size="70,26" font="Arial;22" backgroundColor="dark" />
99                         <widget name="Event_Next_Duration" position="555,98" size="70,26" font="Arial;22" backgroundColor="dark" />
100 <!--                    <eLabel position="70,0" size="300,30" text=".oO skin Oo." font="Arial;20" /> -->
101                 </screen>
102                 <screen name="ChannelSelection" position="90,100" size="560,420" title="Channel Selection">
103                         <widget name="list" position="0,50" size="560,320" />
104 <!--                    <widget name="okbutton" position="340,50" size="140,30" />-->
105                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
106                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
107                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
108                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
109                 </screen>
110                 <screen name="MovieSelection" position="150,100" size="400,420" title="Select-a-movie">
111                         <widget name="list" position="0,50" size="400,300" />
112                 </screen>
113                 <screen name="ServiceScan" position="150,100" size="300,90" title="Service Scan">
114                         <widget name="scan_progress" position="10,10" size="300,20" />
115                         <widget name="scan_state" position="10,40" size="280,30" />
116                 </screen>
117                 <screen name="TimerEdit" position="70,100" size="590,335" title="Timer Edit">
118                         <widget name="description" position="10,10" size="580,40" font="Arial;25" />
119                         <widget name="lbegin" position="405,102" size="103,30" font="Arial;25" foregroundColor="red" />
120                         <widget name="lend" position="405,158" size="103,30" font="Arial;25" foregroundColor="green" />
121                         <widget name="begin" position="508,105" size="72,35" font="Arial;25" />
122                         <widget name="end" position="508,150" size="72,35" font="Arial;25" />
123                         <widget name="apply" position="10,240" size="250,35" />
124                 </screen>
125                 <screen name="MessageBox" position="0,300" size="720,10" title="Message">
126                         <widget name="text" position="0,0" size="650,0" font="Arial;22" />
127                         <applet type="onLayoutFinish">
128 # this should be factored out into some helper code, but currently demonstrated applets.
129 from enigma import eSize, ePoint
130
131 orgwidth = self.instance.size().width()
132 orgpos = self.instance.position()
133 textsize = self["text"].getSize()
134
135 # y size still must be fixed in font stuff...
136 textsize = (textsize[0], textsize[1] + 20)
137 wsize = (textsize[0] + 20, textsize[1] + 20)
138
139 # resize 
140 self.instance.resize(eSize(*wsize))
141
142 # resize label
143 self["text"].instance.resize(eSize(*textsize))
144
145 # center window
146 newwidth = wsize[0]
147 self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y()))
148                         </applet>
149                 </screen>
150         </skin>