Support Uno4k/Ultimo4k
[vuplus_dvbapp] / lib / python / Components / SelectionList.py
index 1c5423f..030f7c5 100755 (executable)
@@ -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))