diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-09 23:42:54 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-09 23:42:54 +0000 |
| commit | e6a5bc34b9fe0066c3d926b184b6811872ad6116 (patch) | |
| tree | 337e780d631a5cb23c4bc0531cb82edc488b443d /lib/python/Plugins/Extensions/GraphMultiEPG | |
| parent | becf6d478299223be066226557d9912fa4a5e3de (diff) | |
| download | enigma2-e6a5bc34b9fe0066c3d926b184b6811872ad6116.tar.gz enigma2-e6a5bc34b9fe0066c3d926b184b6811872ad6116.zip | |
add ServiceNameForegroundColor and ServiceNameBackgroundColor skin
attributes to GraphMultiEpg
Diffstat (limited to 'lib/python/Plugins/Extensions/GraphMultiEPG')
| -rw-r--r-- | lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py index 45a5139b..eb95b99c 100644 --- a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py +++ b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py @@ -49,6 +49,8 @@ class EPGList(HTMLComponent, GUIComponent): self.borderColor = None self.backColor = 0x586d88 self.backColorSelected = 0x808080 + self.foreColorService = None + self.backColorService = None def applySkin(self, desktop): if self.skinAttributes is not None: @@ -64,6 +66,10 @@ class EPGList(HTMLComponent, GUIComponent): self.backColor = parseColor(value).argb() elif attrib == "EntryBackgroundColorSelected": self.backColorSelected = parseColor(value).argb() + elif attrib == "ServiceNameForegroundColor": + self.foreColorService = parseColor(value).argb() + elif attrib == "ServiceNameBackgroundColor": + self.backColorService = parseColor(value).argb() else: attribs.append((attrib,value)) self.skinAttributes = attribs @@ -192,7 +198,7 @@ class EPGList(HTMLComponent, GUIComponent): def buildEntry(self, service, service_name, events): r1=self.service_rect r2=self.event_rect - res = [ None, MultiContentEntryText(pos = (r1.left(),r1.top()), size = (r1.width(), r1.height()), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_CENTER, text = service_name) ] + res = [ None, MultiContentEntryText(pos = (r1.left(),r1.top()), size = (r1.width(), r1.height()), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_CENTER, text = service_name, color = self.foreColorService, backcolor = self.backColorService) ] if events: start = self.time_base+self.offs*self.time_epoch*60 |
