aboutsummaryrefslogtreecommitdiff
path: root/skin.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-08-20 22:20:22 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-08-20 22:20:22 +0000
commit7e6f15005ac50206ace23e1d3496e8c6550c14f5 (patch)
tree5dc9dc239159f78b816f74581fcc994302394799 /skin.py
parent98b0d9a3feea2b97671a232ea6efdf65ed0bf969 (diff)
downloadenigma2-7e6f15005ac50206ace23e1d3496e8c6550c14f5.tar.gz
enigma2-7e6f15005ac50206ace23e1d3496e8c6550c14f5.zip
make local listbox styles working for text lists
Diffstat (limited to 'skin.py')
-rw-r--r--skin.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/skin.py b/skin.py
index 07213915..3b448127 100644
--- a/skin.py
+++ b/skin.py
@@ -88,7 +88,7 @@ def collectAttributes(skinAttributes, node, skin_path_prefix=None, ignore=[]):
# TODO: localization? as in e1?
value = a.value.encode("utf-8")
- if attrib in ["pixmap", "pointer", "seek_pointer"]:
+ if attrib in ["pixmap", "pointer", "seek_pointer", "backgroundPixmap", "selectionPixmap"]:
value = resolveFilename(SCOPE_SKIN_IMAGE, value, path_prefix=skin_path_prefix)
if attrib not in ignore:
@@ -115,10 +115,15 @@ def applySingleAttribute(guiObject, desktop, attrib, value):
guiObject.setFont(parseFont(value))
elif attrib == 'zPosition':
guiObject.setZPosition(int(value))
- elif attrib == "pixmap":
+ elif attrib in ["pixmap", "backgroundPixmap", "selectionPixmap"]:
ptr = loadPixmap(value) # this should already have been filename-resolved.
desktop.makeCompatiblePixmap(ptr)
- guiObject.setPixmap(ptr)
+ if attrib == "pixmap":
+ guiObject.setPixmap(ptr)
+ elif attrib == "backgroundPixmap":
+ guiObject.setBackgroundPicture(ptr)
+ elif attrib == "selectionPixmap":
+ guiObject.setSelectionPicture(ptr)
# guiObject.setPixmapFromFile(value)
elif attrib == "alphatest": # used by ePixmap
guiObject.setAlphatest(