- def applySkin(self, desktop):
- skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes)
+ def applySkin(self, desktop, parent):
+ ret = False
+ if self.skinAttributes is not None:
+ skin.applyAllAttributes(self.long_text, desktop, self.skinAttributes, parent.scale)
+ widget_attribs = [ ]
+ scrollbar_attribs = [ ]
+ for (attrib, value) in self.skinAttributes:
+ 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, parent.scale)
+ skin.applyAllAttributes(self.scrollbar, desktop, scrollbar_attribs+widget_attribs, parent.scale)
+ ret = True