X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FSelectionList.py;h=030f7c5fe7aa204fe3b6fd469b75c9d9c6f76773;hp=1c5423fba62c512a789261a8e303067cacadec3d;hb=0fee8bdaa26f854460b63475c91f1f2cf762594b;hpb=4588321e0ee8151324a5a183ff2ced5ea80629cf diff --git a/lib/python/Components/SelectionList.py b/lib/python/Components/SelectionList.py index 1c5423f..030f7c5 100755 --- a/lib/python/Components/SelectionList.py +++ b/lib/python/Components/SelectionList.py @@ -2,6 +2,7 @@ from MenuList import MenuList from Tools.Directories import resolveFilename, SCOPE_CURRENT_SKIN from enigma import eListboxPythonMultiContent, eListbox, gFont, RT_HALIGN_LEFT from Tools.LoadPixmap import LoadPixmap +import skin selectionpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/selectioncross.png")) @@ -17,8 +18,9 @@ def SelectionEntryComponent(description, value, index, selected): class SelectionList(MenuList): def __init__(self, list = None, enableWrapAround = False): MenuList.__init__(self, list or [], enableWrapAround, content = eListboxPythonMultiContent) - self.l.setFont(0, gFont("Regular", 20)) - self.l.setItemHeight(30) + font = skin.fonts.get("SelectionList", ("Regular", 20, 30)) + self.l.setFont(0, gFont(font[0], font[1])) + self.l.setItemHeight(font[2]) def addSelection(self, description, value, index, selected = True): self.list.append(SelectionEntryComponent(description, value, index, selected))