diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-09 00:13:20 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-11-09 00:13:20 +0000 |
| commit | 612e765ceb09fce886ffc02120f039f7d880048f (patch) | |
| tree | 2b0bb67fe3e1a4e81b21b12bd57293caf1038c23 /lib/python/Components | |
| parent | bae4b8c8df551c8a32ce9611ad1691ccb405791a (diff) | |
| download | enigma2-612e765ceb09fce886ffc02120f039f7d880048f.tar.gz enigma2-612e765ceb09fce886ffc02120f039f7d880048f.zip | |
add foregroundcolor selected and backgroundcolor selected to local listbox
styles (backgroundColorSelected, foregroundColorSelected in skin)
add EntryForegroundColorSelected support to GraphMultiEPG
add possibility to set selected foregroundcolor for listboxmulticontent
entries
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/MultiContent.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/python/Components/MultiContent.py b/lib/python/Components/MultiContent.py index 3031fb3a..71096df8 100644 --- a/lib/python/Components/MultiContent.py +++ b/lib/python/Components/MultiContent.py @@ -1,15 +1,10 @@ from enigma import eListboxPythonMultiContent, RT_HALIGN_LEFT, RT_VALIGN_TOP -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 MultiContentEntryText(pos = (0, 0), size = (0, 0), font = 0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP, text = "", color = None, color_sel = None, backcolor = None, backcolor_sel = None, border_width = None, border_color = None): + return (eListboxPythonMultiContent.TYPE_TEXT, pos[0], pos[1], size[0], size[1], font, flags, text, color, color_sel, backcolor, backcolor_sel, border_width, border_color) -def MultiContentEntryPixmap(pos = (0, 0), size = (0, 0), png = None): - return (eListboxPythonMultiContent.TYPE_PIXMAP, pos[0], pos[1], size[0], size[1], png) +def MultiContentEntryPixmap(pos = (0, 0), size = (0, 0), png = None, backcolor = None, backcolor_sel = None): + return (eListboxPythonMultiContent.TYPE_PIXMAP, pos[0], pos[1], size[0], size[1], png, backcolor, backcolor_sel) -def MultiContentEntryPixmapAlphaTest(pos = (0, 0), size = (0, 0), png = None): - return (eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, pos[0], pos[1], size[0], size[1], png) - -
\ No newline at end of file +def MultiContentEntryPixmapAlphaTest(pos = (0, 0), size = (0, 0), png = None, backcolor = None, backcolor_sel = None): + return (eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, pos[0], pos[1], size[0], size[1], png, backcolor, backcolor_sel) |
