trade Color and transparent skin attributes to parent widget and embedded
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 9 Nov 2007 11:32:35 +0000 (11:32 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 9 Nov 2007 11:32:35 +0000 (11:32 +0000)
scrollbar too

lib/python/Components/ScrollLabel.py

index d5924b88d9d3a51a3a69d23fc892b88bf96d706d..fb89e4114b5da3d2446d54a31f19b8e247f33e36 100644 (file)
@@ -17,6 +17,12 @@ class ScrollLabel(HTMLComponent, GUIComponent):
                ret = False
                if self.skinAttributes is not None:
                        skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes)
+                       attribs = [ ]
+                       for (attrib, value) in self.skinAttributes:
+                               if attrib.find("Color") != -1 or attrib.find("transparent") != -1:
+                                       attribs.append((attrib,value))
+                       skin.applyAllAttributes(self.instance, desktop, attribs)
+                       skin.applyAllAttributes(self.scrollbar, desktop, attribs)
                        ret = True
                s = self.long_text.size()
                self.instance.move(self.long_text.position())