ability to set color in multi content lists
[enigma2.git] / lib / python / Components / MultiContent.py
index dab096d352c7c81ecbb43e03883c46755fe143a3..691152b4f35d5a3ee20d7a7a07030648524ba00e 100644 (file)
@@ -11,8 +11,11 @@ RT_WRAP = 32
 
 from enigma import eListboxPythonMultiContent
 
-def MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP, text = ""):
-       return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text)
+def MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP, text = "", color = None):
+       add = ()
+       if color is not None:
+               add = (color, )
+       return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text) + add
 
 def MultiContentEntryPixmap(pos = (0, 0), size = (0, 0), png = None):
        return (eListboxPythonMultiContent.TYPE_PIXMAP, pos[0], pos[1], size[0], size[1], png)