From 1a13c963a5fb8cad92bf03667e411f46d6a6a843 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 17 十二月 2020 15:10:33 +0800
Subject: [PATCH] Revert "Merge branch 'tzy' into NewFilePath"

---
 HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
index 422b5de..3ec775a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RGBPage.cs
@@ -173,7 +173,7 @@
             {
                 X = Application.GetRealWidth(35),
                 Y = btnBrightnessText.Bottom,
-                Width = Application.GetRealWidth(22),
+                Width = Application.GetRealWidth(30),
                 Height = Application.GetRealHeight(21),
                 Text = "0%",
                 TextAlignment = TextAlignment.CenterLeft,
@@ -184,7 +184,7 @@
 
             dimmerBar = new DiyImageSeekBar()
             {
-                X = btnMinValuesText.Right,
+                X = Application.GetRealWidth(35 +22),
                 Y = Application.GetRealHeight(312),
                 Width = Application.GetRealWidth(210),
                 Height = Application.GetRealHeight(54),
@@ -204,7 +204,7 @@
             {
                 X = dimmerBar.Right,
                 Y = btnBrightnessText.Bottom,
-                Width = Application.GetRealWidth(35),
+                Width = Application.GetRealWidth(45),
                 Height = Application.GetRealHeight(21),
                 Text = "100%",
                 TextAlignment = TextAlignment.CenterLeft,
@@ -300,6 +300,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