X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=skin.py;h=58426c0f18f052332f78b1da24a7318bcde92ba6;hb=81aa63ccad4fbbb82e256295cec014189ff3e623;hp=8535dc810ee34d27e9b0794fe0c00091bc9b802b;hpb=7a8fff2da5f732bad0beaf934e7a20395b4921bd;p=vuplus_dvbapp diff --git a/skin.py b/skin.py index 8535dc8..58426c0 100644 --- a/skin.py +++ b/skin.py @@ -14,13 +14,10 @@ def dump(x, i=0): except: None +from Tools.Directories import resolveFilename, SCOPE_SKIN + # read the skin -try: - # first we search in the current path - skinfile = file('data/skin.xml', 'r') -except: - # if not found in the current path, we use the global datadir-path - skinfile = file('/usr/share/enigma2/skin.xml', 'r') +skinfile = file(resolveFilename(SCOPE_SKIN, 'skin.xml'), 'r') dom = xml.dom.minidom.parseString(skinfile.read()) skinfile.close() @@ -165,7 +162,7 @@ def loadSkin(desktop): for windowstyle in elementsWithTag(skin.childNodes, "windowstyle"): style = eWindowStyleSkinned() - style.setTitleFont(gFont("Arial", 20)); + style.setTitleFont(gFont("Regular", 20)); style.setTitleOffset(eSize(20, 5)); for borderset in elementsWithTag(windowstyle.childNodes, "borderset"):