X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/52f9ca652c2371b06715265ff74b5b6a680f30b2..06019661790615badd7bd5f4b26595aafe3afa71:/skin.py diff --git a/skin.py b/skin.py index dc78c198..d11cce02 100644 --- a/skin.py +++ b/skin.py @@ -82,6 +82,11 @@ def applySingleAttribute(guiObject, desktop, attrib, value): desktop.makeCompatiblePixmap(ptr) guiObject.setPixmap(ptr) # guiObject.setPixmapFromFile(value) + elif attrib == "alphatest": # used by ePixmap + guiObject.setAlphatest( + { "on": True, + "off": False + }[value]) elif attrib == "orientation": # used by eSlider try: guiObject.setOrientation( @@ -121,6 +126,10 @@ def applySingleAttribute(guiObject, desktop, attrib, value): guiObject.setBackgroundColor(parseColor(value)) elif attrib == "foregroundColor": guiObject.setForegroundColor(parseColor(value)) + elif attrib == "selectionDisabled": + guiObject.setSelectionEnable(0) + elif attrib == "transparent": + guiObject.setTransparent(int(value)) elif attrib != 'name': print "unsupported attribute " + attrib + "=" + value except int: