aboutsummaryrefslogtreecommitdiff
path: root/skin.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-11-28 00:38:00 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-11-28 00:38:00 +0000
commitc5f61282a2391235e05ff40bc40a2f0852ea1a9f (patch)
tree0322d397eb8117e81ba842bdab2c815550cf79dc /skin.py
parent99e66edd91b058d8b5869f900cab9b2f40cd37d5 (diff)
downloadenigma2-c5f61282a2391235e05ff40bc40a2f0852ea1a9f.tar.gz
enigma2-c5f61282a2391235e05ff40bc40a2f0852ea1a9f.zip
add support for render pixmaps with transparent background
use in skin for ePixmaps alphatest="on"
Diffstat (limited to 'skin.py')
-rw-r--r--skin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/skin.py b/skin.py
index dc78c198..f5a67185 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(