added nims to the about box
[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="/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="Menu" position="210,150" size="300,235" title="real main menu">
34                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
35                         <!--<widget name="menu" position="10,55" size="280,150" font="Arial;23" />-->
36                         <widget name="menu" position="10,55" size="280,175"/>
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,280" title="Setup">
50                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
51                         <widget name="config" position="10,50" size="420,175" />
52                         <widget name="ok" position="140,240" size="38,20" font="Arial;20" backgroundColor="green" />
53                         <widget name="cancel" position="240,240" size="70,20" font="Arial;20" backgroundColor="red" />
54                 </screen>
55                 <screen name="NimSelection" position="140,165" size="360,100">
56                         <widget name="nimlist" position="20,10" size="320,75" />
57                 </screen>
58                 <screen name="NimSetup" position="140,165" size="360,180">
59                         <widget name="config" position="20,10" size="320,150" />
60                 </screen>
61                 <screen name="Satconfig" position="140,125" size="460,280" title="Satconfig">
62                         <widget name="config" position="10,50" size="420,150" />
63                 </screen>
64                 <screen name="PluginBrowser" position="190,125" size="360,250" title="Plugins">
65                         <widget name="title" position="10,10" size="280,35" font="Arial;23" />
66                         <widget name="pluginlist" position="10,50" size="320,200" />
67                 </screen>
68                 <screen name="About" position="140,125" size="360,250" title="About">
69                         <widget name="text" position="10,30" size="420,40" font="Arial;18"/>
70                         <widget name="tuner" position="10,80" size="420,20" font="Arial;18"/>
71                         <widget name="tuner0" position="10,100" size="420,20" font="Arial;18"/>
72                         <widget name="tuner1" position="10,120" size="420,20" font="Arial;18"/>
73                         <widget name="hdd" position="10,170" size="420,20" font="Arial;18"/>
74                         <widget name="hddA" position="10,190" size="420,20" font="Arial;18"/>
75                 </screen>
76                 <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
77                         <widget name="okbutton" position="20,270" size="205,40" />
78                         <widget name="txt_alpha" position="20,20" size="110,20" />
79                         <widget name="sld_alpha" position="150,20" size="290,20" />
80                         <widget name="txt_brightness" position="20,60" size="120,20" />
81                         <widget name="sld_brightness" position="150,20" size="290,20" />
82                         <widget name="txt_gamma" position="20,100" size="120,20" />
83                         <widget name="sld_gamma" position="150,100" size="290,20" />
84                 </screen>
85                 <screen name="configTest" position="300,100" size="300,300" title="config menu">
86                         <widget name="config" position="10,30" size="420,220" />
87                 </screen>
88 <!--            <screen name="TimerEditList" position="160,100" size="420,430" title="Timer Editor">-->
89                 <screen name="TimerEditList" position="160,100" size="420,330" title="Timer Editor">
90                         <widget name="timerlist" position="10,30" size="400,300" />
91                 </screen>
92                 <screen name="clockDisplay" position="300,100" size="300,300">
93                         <widget name="okbutton" position="10,10" size="280,40" />
94                         <widget name="title" position="10,120" size="280,50" />
95                         <widget name="theClock" position="10,60" size="280,50" />
96                 </screen>
97                 <screen name="InfoBar" flags="wfNoBorder" position="0,380" size="720,148" title="InfoBar">
98                         <ePixmap position="0,0" size="720,148" pixmap="/usr/share/enigma2/info-bg.png" />
99                         
100                         <widget name="ServiceName" position="69,25" size="427,26" valign="center" font="Arial;22" backgroundColor="#101258" />
101                         <widget name="CurrentTime" position="575,10" size="90,30" backgroundColor="dark" font="Arial;19" />
102                         <widget name="Volume" position="575,45" size="100,5" backgroundColor="dark" />
103                         <widget name="Event_Now" position="273,68" size="282,22" font="Arial;20" backgroundColor="dark" />
104                         <widget name="Event_Next" position="273,98" size="282,22" font="Arial;20" backgroundColor="dark" />
105                         <widget name="Event_Now_Duration" position="555,68" size="70,26" font="Arial;22" backgroundColor="dark" />
106                         <widget name="Event_Next_Duration" position="555,98" size="70,26" font="Arial;22" backgroundColor="dark" />
107 <!--                    <eLabel position="70,0" size="300,30" text=".oO skin Oo." font="Arial;20" /> -->
108                 </screen>
109                 <screen name="ChannelSelection" position="90,100" size="560,420" title="Channel Selection">
110                         <widget name="list" position="0,50" size="560,320" />
111 <!--                    <widget name="okbutton" position="340,50" size="140,30" />-->
112                         <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
113                         <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
114                         <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
115                         <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Arial;21" />
116                 </screen>
117                 <screen name="MovieSelection" position="150,100" size="400,420" title="Select-a-movie">
118                         <widget name="list" position="0,50" size="400,300" />
119                         <widget name="freeDiskSpace" position="0,360" size="400,40" />
120                 </screen>
121                 <screen name="ServiceScan" position="200,100" size="300,200" title="Service Scan">
122                         <widget name="scan_progress" position="10,10" size="300,20" />
123                         <widget name="scan_state" position="10,40" size="280,60" font="Arial;20" />
124                 </screen>
125                 <screen name="TimerEdit" position="70,100" size="590,335" title="Timer Edit">
126                         <widget name="description" position="10,10" size="580,40" font="Arial;25" />
127                         <widget name="lbegin" position="405,102" size="103,30" font="Arial;25" foregroundColor="red" />
128                         <widget name="lend" position="405,158" size="103,30" font="Arial;25" foregroundColor="green" />
129                         <widget name="begin" position="508,105" size="72,35" font="Arial;25" />
130                         <widget name="end" position="508,150" size="72,35" font="Arial;25" />
131                         <widget name="apply" position="10,240" size="250,35" />
132                 </screen>
133                 <screen name="MessageBox" position="0,300" size="720,10" title="Message">
134                         <widget name="text" position="0,0" size="650,0" font="Arial;22" />
135                         <applet type="onLayoutFinish">
136 # this should be factored out into some helper code, but currently demonstrated applets.
137 from enigma import eSize, ePoint
138
139 orgwidth = self.instance.size().width()
140 orgpos = self.instance.position()
141 textsize = self["text"].getSize()
142
143 # y size still must be fixed in font stuff...
144 textsize = (textsize[0], textsize[1] + 20)
145 wsize = (textsize[0] + 20, textsize[1] + 20)
146
147 # resize 
148 self.instance.resize(eSize(*wsize))
149
150 # resize label
151 self["text"].instance.resize(eSize(*textsize))
152
153 # center window
154 newwidth = wsize[0]
155 self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y()))
156                         </applet>
157                 </screen>
158         </skin>