diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-24 02:45:08 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-24 02:45:08 +0000 |
| commit | 3d05da66ac0fb10d27409fc8b8f5cd99aedf939b (patch) | |
| tree | 486f3db49feaf92029e40e31b86b395fcd78a6bf /data | |
| parent | 2fa2790e0eae7ef70ac58c9832f8f330dcf92f99 (diff) | |
| download | enigma2-3d05da66ac0fb10d27409fc8b8f5cd99aedf939b.tar.gz enigma2-3d05da66ac0fb10d27409fc8b8f5cd99aedf939b.zip | |
make messagebox look better and translate it
Diffstat (limited to 'data')
| -rw-r--r-- | data/keymap.xml | 5 | ||||
| -rw-r--r-- | data/skin.xml | 11 |
2 files changed, 13 insertions, 3 deletions
diff --git a/data/keymap.xml b/data/keymap.xml index c6160b2d..1275e2a5 100644 --- a/data/keymap.xml +++ b/data/keymap.xml @@ -157,9 +157,12 @@ <key id="\x1b" mapto="cancel" flags="m" /> <!-- use this on rcu, ok? --> - <key id="KEY_OK" mapto="ok" flags="m" /> + <key id="KEY_GREEN" mapto="ok" flags="m" /> + <key id="KEY_OK" mapto="ok" flags="m" /> + <key id="KEY_RED" mapto="cancel" flags="m" /> <key id="KEY_EXIT" mapto="cancel" flags="m" /> + <key id="KEY_ENTER" mapto="ok" flags="m" /> <key id="KEY_ESC" mapto="cancel" flags="m" /> </map> diff --git a/data/skin.xml b/data/skin.xml index d19e0fa3..66bcd202 100644 --- a/data/skin.xml +++ b/data/skin.xml @@ -225,7 +225,9 @@ <eLabel position="500,40" size="220,60" text="help..." font="Arial;50" /> </screen> <screen name="MessageBox" position="0,300" size="720,10" title="Message"> - <widget name="text" position="0,0" size="650,0" font="Arial;22" /> + <widget name="text" position="0,35" size="650,0" font="Arial;22" /> + <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Arial;21" /> + <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Arial;21" /> <applet type="onLayoutFinish"> # this should be factored out into some helper code, but currently demonstrates applets. from enigma import eSize, ePoint @@ -236,7 +238,12 @@ textsize = self["text"].getSize() # y size still must be fixed in font stuff... textsize = (textsize[0], textsize[1] + 50) -wsize = (textsize[0] + 50, textsize[1] + 50) +wsizex = textsize[0] + 50 +wsizey = textsize[1] + 50 +if (280 > wsizex): + wsizex = 280 +wsize = (wsizex, wsizey) + # resize self.instance.resize(eSize(*wsize)) |
