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/DimmerPage.cs |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index 453d29e..99051bc 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -121,9 +121,14 @@
                 Height = Application.GetMinRealAverage(40),
                 SelectedImagePath = "Collection/CollectionIcon.png",
                 UnSelectedImagePath = "Collection/CollectionGrayIcon.png",
-                IsSelected = light.collection
+                IsSelected = light.collect
             };
-            controlView.AddChidren(btnCollection);
+            //controlView.AddChidren(btnCollection);
+            //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳�
+            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+            {
+                controlView.AddChidren(btnCollection);
+            }
 
             dimmerBar = new WaveSeekBarOn()
             {
@@ -131,15 +136,10 @@
                 Y = Application.GetRealHeight(74 + 16),
                 Width = Application.GetRealWidth(168 - 40),
                 Height = Application.GetRealHeight(288 - 16 - 16),
-                //WaveBorderColor = CSS_Color.PromptingColor2,
                 BorderColor = 0x00000000,
-                CornerRadius = Application.GetRealWidth(40),
+                CornerRadius = Application.GetRealWidth(30),
                 BorderWidth = 0,
-                //WavePadding = Application.GetRealWidth(-5),
-                //BackgroundColor = CSS_Color.BackgroundColor,
-                //Radius = (uint)Application.GetRealWidth(40),
                 Progress = light.brightness,
-                //ProgressTextColor =0x00000000,
                 IsProgressTextShow = false,
             };
             controlView.AddChidren(dimmerBar);
@@ -241,7 +241,11 @@
             LoadEventList();
 
             new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView_FunctionTop(light, actionRefresh);
-
+            new System.Threading.Thread(() =>
+            {
+                DriverLayer.Control.Ins.SendReadCommand(light);
+            })
+            { IsBackground = true }.Start();
         }
 
 

--
Gitblit v1.8.0