From 301d3f15ba03ff942c029bd4c0b1ff544f7cfede Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 30 十二月 2020 11:19:48 +0800
Subject: [PATCH] 2020-12-30 1.解决RGB灯,色盘ColorPicker部分安卓手机,刷新图片时会变小问题

---
 HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs
index 881ab91..c3c51ef 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs
@@ -163,7 +163,7 @@
             btnBrightnessText = new Button()
             {
                 Gravity = Gravity.CenterHorizontal,
-                Y = ((100 - dimmerBar.Progress) * Application.GetRealHeight(222 - 16 - 16) / 100) + Application.GetRealWidth(40),
+                Y = ((100 - light.brightness) * Application.GetRealHeight(222  - 16) / 100) + Application.GetRealWidth(80),
                 Width = Application.GetRealWidth(56),
                 Height = Application.GetRealWidth(46),
                 UnSelectedImagePath = "FunctionIcon/Light/BrightnessBg.png",
@@ -218,6 +218,9 @@
             barColorTemplatrue.Y = btnTempClolorMin.Y - (barColorTemplatrue.Height - btnTempClolorMin.Height) / 2;
             //鏄剧ず涓婃柟鐨凾xt
             barColorTemplatrue.ShowCustomTextView(Application.GetRealWidth(50), CSS_FontSize.PromptFontSize_FirstLevel, CSS_Color.FirstLevelTitleColor);
+            var cct = 27;
+            int.TryParse(light.Attr_CCT.curValue.ToString(), out cct);
+            barColorTemplatrue.Progress = cct;
             //璁剧疆鍒濆鍊�
             barColorTemplatrue.SetCustomText(barColorTemplatrue.Progress * 100 + "K");
 

--
Gitblit v1.8.0