diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-10 11:18:16 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-10 11:18:16 +0000 |
| commit | bcd547d5342643954ae8be37befa480e8b240c31 (patch) | |
| tree | 92b41691a8e35e8e5db28c143de70bc57103ff8e /lib/python/Components | |
| parent | 4f48015e6f008575d6a6c59b9e6f78cb3c7c244b (diff) | |
| download | enigma2-bcd547d5342643954ae8be37befa480e8b240c31.tar.gz enigma2-bcd547d5342643954ae8be37befa480e8b240c31.zip | |
widget has no foregroundcolor
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/ScrollLabel.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/python/Components/ScrollLabel.py b/lib/python/Components/ScrollLabel.py index fb89e411..109dc8e4 100644 --- a/lib/python/Components/ScrollLabel.py +++ b/lib/python/Components/ScrollLabel.py @@ -17,12 +17,15 @@ class ScrollLabel(HTMLComponent, GUIComponent): ret = False if self.skinAttributes is not None: skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes) - attribs = [ ] + widget_attribs = [ ] + scrollbar_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) + if attrib.find("borderColor") != -1 or attrib.find("borderWidth") != -1: + scrollbar_attribs.append((attrib,value)) + if attrib.find("transparent") != -1 or attrib.find("backgroundColor") != -1: + widget_attribs.append((attrib,value)) + skin.applyAllAttributes(self.instance, desktop, widget_attribs) + skin.applyAllAttributes(self.scrollbar, desktop, scrollbar_attribs+widget_attribs) ret = True s = self.long_text.size() self.instance.move(self.long_text.position()) |
