From fd083bfb31afb60181b9b6f18e585af1e9e5a3f6 Mon Sep 17 00:00:00 2001 From: hschang Date: Wed, 28 Feb 2018 16:32:11 +0900 Subject: [PATCH] [Skin] use default Full HD skin for 4k models. --- lib/python/Components/SystemInfo.py | 1 + skin.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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: -- 2.7.4