aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-09-25 21:44:51 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-09-25 21:44:51 +0000
commit0cbfa65b2c9e28aa8b065f578f132844c4c4c32d (patch)
tree133a48455645ddd74e3523ebfa607f4a1a6aaae3 /lib/python/Plugins/Extensions
parent8d74491f8ae2a175cf46ded1cca190e3c7ebb892 (diff)
downloadenigma2-0cbfa65b2c9e28aa8b065f578f132844c4c4c32d.tar.gz
enigma2-0cbfa65b2c9e28aa8b065f578f132844c4c4c32d.zip
add EntryForegroundColor, EntryBorderColor, EntryBackgroundColor and
EntryBackgroundColorSelected attributes to GraphMultiEPG EPGList.. instead of use queryColor... remove unneeded queryColor function
Diffstat (limited to 'lib/python/Plugins/Extensions')
-rw-r--r--lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py40
1 files changed, 21 insertions, 19 deletions
diff --git a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py
index 648d4f11..594aea4b 100644
--- a/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py
+++ b/lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py
@@ -1,4 +1,4 @@
-from skin import queryColor
+from skin import parseColor
from Components.config import config, ConfigClock, ConfigInteger
from Components.Pixmap import Pixmap
from Components.Button import Button
@@ -43,24 +43,26 @@ class EPGList(HTMLComponent, GUIComponent):
self.list = None
self.event_rect = None
- #query skin colors
- col = queryColor("GraphEpg.Foreground")
- self.foreColor = col and col.argb()
-
- col = queryColor("GraphEpg.Border")
- self.borderColor = col and col.argb()
-
- col = queryColor("GraphEpg.Background")
- if col is None:
- self.backColor = 0x586d88
- else:
- self.backColor = col.argb()
-
- col = queryColor("GraphEpg.BackgroundSelected")
- if col is None:
- self.backColorSelected = 0x808080
- else:
- self.backColorSelected = col.argb()
+ self.foreColor = None
+ self.borderColor = None
+ self.backColor = 0x586d88
+ self.backColorSelected = 0x808080
+
+ def applySkin(self, desktop):
+ attribs = [ ]
+ for (attrib, value) in self.skinAttributes:
+ if attrib == "EntryForegroundColor":
+ self.foreColor = parseColor(value).argb()
+ elif attrib == "EntryBorderColor":
+ self.borderColor = parseColor(value).argb()
+ elif attrib == "EntryBackgroundColor":
+ self.backColor = parseColor(value).argb()
+ elif attrib == "EntryBackgroundColorSelected":
+ self.backColorSelected = parseColor(value).argb()
+ else:
+ attribs.append((attrib,value))
+ self.skinAttributes = attribs
+ return GUIComponent.applySkin(self, desktop)
def isSelectable(self, service, sname, event_list):
return (event_list and len(event_list) and True) or False