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 d5924b8..fb89e41 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())