def morphRcImagePath(value): if rc_model.rcIsDefault() is False: if value in ("/usr/share/enigma2/skin_default/rc.png", "/usr/share/enigma2/skin_default/rcold.png"): # OpenPLi version. value = rc_model.getRcImg() # if ("rc.png" or "oldrc.png") in value: # OpenViX version. # value = "%src.png" % rc_model.getRcLocation() return value
def loadPixmap(path, desktop): option = path.find("#") if option != -1: path = path[:option] if rc_model.rcIsDefault() is False and basename(path) in ("rc.png", "rc0.png", "rc1.png", "rc2.png", "oldrc.png"): path = rc_model.getRcImg() pixmap = LoadPixmap(path, desktop) if pixmap is None: raise SkinError("Pixmap file '%s' not found" % path) return pixmap
def morphRcImagePath(value): if rc_model.rcIsDefault() is False: if value == '/usr/share/enigma2/skin_default/rc.png' or value == '/usr/share/enigma2/skin_default/rcold.png': value = rc_model.getRcImg() return value
def morphRcImagePath(value): if rc_model.rcIsDefault() is False: if 'rc.png' in value or 'rcold.png' in value: value = rc_model.getRcImg() return value