From: hschang Date: Wed, 28 Feb 2018 07:32:11 +0000 (+0900) Subject: [Skin] use default Full HD skin for 4k models. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=fd083bfb31afb60181b9b6f18e585af1e9e5a3f6;ds=sidebyside [Skin] use default Full HD skin for 4k models. --- diff --git a/lib/python/Components/SystemInfo.py b/lib/python/Components/SystemInfo.py index f0d06c9..73c6111 100644 --- a/lib/python/Components/SystemInfo.py +++ b/lib/python/Components/SystemInfo.py @@ -36,3 +36,4 @@ SystemInfo["FastChannelChange"] = fileExists("/proc/stb/frontend/fbc/fcc") SystemInfo["MiniTV"] = fileExists("/proc/stb/lcd/live_enable") SystemInfo["DisableUsbRecord"] = HardwareInfo().get_vu_device_name() in ("solo4k", "uno4kse", "zero4k") SystemInfo["DefaultAniSpeed"] = HardwareInfo().get_vu_device_name() in ("uno4k", "uno4kse", "zero4k") and 25 or 20 +SystemInfo["DefaultFullHDSkin"] = HardwareInfo().get_vu_device_name() in ("solo4k","ultimo4k","uno4k","uno4kse","zero4k") diff --git a/skin.py b/skin.py index a4c9021..5a776b0 100755 --- a/skin.py +++ b/skin.py @@ -56,8 +56,11 @@ def loadSkin(name, scope = SCOPE_SKIN): # so the first screen found will be used. # example: loadSkin("nemesis_greenline/skin.xml") +from Components.SystemInfo import SystemInfo +DEFAULT_SKIN = SystemInfo.get("DefaultFullHDSkin", False) and "Vu_HD_1080P/skin.xml" or "Vu_HD/skin.xml" + config.skin = ConfigSubsection() -config.skin.primary_skin = ConfigText(default = "skin.xml") +config.skin.primary_skin = ConfigText(default = DEFAULT_SKIN) profile("LoadSkin") try: