[Skin] use default Full HD skin for 4k models.
authorhschang <chang@dev3>
Wed, 28 Feb 2018 07:32:11 +0000 (16:32 +0900)
committerhschang <chang@dev3>
Wed, 28 Feb 2018 08:14:08 +0000 (17:14 +0900)
lib/python/Components/SystemInfo.py
skin.py

index f0d06c9..73c6111 100644 (file)
@@ -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["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 (executable)
--- 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")
 # 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 = ConfigSubsection()
-config.skin.primary_skin = ConfigText(default = "skin.xml")
+config.skin.primary_skin = ConfigText(default = DEFAULT_SKIN)
 
 profile("LoadSkin")
 try:
 
 profile("LoadSkin")
 try: