change servicelist window and font size
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 17 Nov 2005 13:55:18 +0000 (13:55 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 17 Nov 2005 13:55:18 +0000 (13:55 +0000)
data/skin.xml
lib/python/Components/ServiceList.py

index 0febcc3f4f6eddbe1c2f96ec273160c3d3f2e2c4..4533fa60be40179a4fb33821b6b537e6828d1166 100644 (file)
                <screen name="Mute" flags="wfNoBorder" position="100,100" size="59,80" title="Mute">
                        <ePixmap position="0,0" size="59,80" pixmap="/usr/share/enigma2/mute-fs8.png" />
                </screen>
-               <screen name="ChannelSelection" position="90,100" size="560,450" title="Channel Selection">
-                       <widget name="list" position="10,50" size="540,400" />
-<!--                   <widget name="okbutton" position="340,50" size="140,30" />-->
+               <screen name="ChannelSelection" position="90,98" size="560,417" title="Channel Selection">
+                       <widget name="list" position="10,45" size="540,364" />
                        <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Arial;21" />
                        <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Arial;21" />
                        <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Arial;21" />
index efe928dd67ac8b46271d4f20cc3810da7a0d1e8c..9d3ffb5287f4e77d4e8fdc6815dba179806e87da 100644 (file)
@@ -81,12 +81,14 @@ class ServiceList(HTMLComponent, GUIComponent):
 
        def setMode(self, mode):
                if mode == self.MODE_NORMAL:
-                       self.instance.setItemHeight(25)
+                       self.instance.setItemHeight(28)
                        self.l.setVisualMode(eListboxServiceContent.visModeSimple)
+                       self.l.setElementFont(self.l.celServiceName, gFont("Arial", 22))
+                       self.l.setElementPosition(self.l.celServiceName, eRect(0, 0, self.instance.size().width(), 28))
                else:
-                       self.instance.setItemHeight(40)
-                       self.l.setElementFont(self.l.celServiceName, gFont("Arial", 30))
-                       self.l.setElementPosition(self.l.celServiceName, eRect(40, 0, self.instance.size().width(), 40))
+                       self.instance.setItemHeight(28)
+                       self.l.setElementFont(self.l.celServiceName, gFont("Arial", 22))
+                       self.l.setElementPosition(self.l.celServiceName, eRect(50, 0, self.instance.size().width(), 28))
                        self.l.setElementFont(self.l.celServiceNumber, gFont("Arial", 20))
-                       self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 10, 40, 30))
+                       self.l.setElementPosition(self.l.celServiceNumber, eRect(0, 2, 50, 28))
                        self.l.setVisualMode(eListboxServiceContent.visModeComplex)