update ok and cancel in the timer editor
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 2 Jan 2006 16:48:29 +0000 (16:48 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 2 Jan 2006 16:48:29 +0000 (16:48 +0000)
data/skin.xml
lib/python/Screens/TimerEntry.py

index c1b09e9..385b4be 100644 (file)
                </screen>
                <screen name="TimerEntry" position="100,100" size="500,400" title="Timer entry">
                        <widget name="config" position="5,10" size="480,350" />
                </screen>
                <screen name="TimerEntry" position="100,100" size="500,400" title="Timer entry">
                        <widget name="config" position="5,10" size="480,350" />
-                       <widget name="ok" position="140,365" size="38,20" font="Regular;20" backgroundColor="green" />
-                       <widget name="cancel" position="240,365" size="70,20" font="Regular;20" backgroundColor="red" />
+                       <widget name="ok" position="140,365" size="53,30" pixmap="/usr/share/enigma2/ok.png" />
+                       <widget name="oktext" position="140,365" size="53,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
+                       <widget name="cancel" position="240,365" size="100,30" pixmap="/usr/share/enigma2/cancel.png" />
+                       <widget name="canceltext" position="240,365" size="100,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
                </screen>
                <screen name="NetworkSetup" position="140,125" size="460,280" title="Network Setup">
                        <widget name="config" position="10,50" size="420,175" scrollbarMode="showOnDemand" />
                </screen>
                <screen name="NetworkSetup" position="140,125" size="460,280" title="Network Setup">
                        <widget name="config" position="10,50" size="420,175" scrollbarMode="showOnDemand" />
index 966bbab..5c18c41 100644 (file)
@@ -14,8 +14,10 @@ class TimerEntry(Screen):
                Screen.__init__(self, session)
                self.timer = timer;
                
                Screen.__init__(self, session)
                self.timer = timer;
                
-               self["ok"] = Label("OK")
-               self["cancel"] = Label("Cancel")
+               self["oktext"] = Label(_("OK"))
+               self["canceltext"] = Label(_("Cancel"))
+               self["ok"] = Pixmap()
+               self["cancel"] = Pixmap()
 
                self.createConfig()
 
 
                self.createConfig()