From 2bec9c838d2d688025698de8ec1de401ffd7dd1f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 11 八月 2020 14:13:55 +0800
Subject: [PATCH] 20200811

---
 HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index cf785d1..306d98e 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -29,7 +29,7 @@
         /// <summary>
         /// 璋冨厜鎺т欢
         /// </summary>
-        WaveSeekBar dimmerBar;
+        WaveSeekBarOn dimmerBar;
         /// <summary>
         /// 寮�鍏虫寜閽�
         /// </summary>
@@ -41,6 +41,7 @@
         Button btnCollection_Out;
         Button btnFunctionName_Out;
         Button btnFromFloor_Out;
+        bool onDimmerBar = false;
         /// <summary>
         /// 鍒锋柊鏄剧ず淇℃伅
         /// </summary>
@@ -116,23 +117,31 @@
             };
             controlView.AddChidren(btnCollection);
 
-            dimmerBar = new WaveSeekBar()
+            dimmerBar = new WaveSeekBarOn()
             {
                 Gravity = Gravity.CenterHorizontal,
                 Y = Application.GetRealHeight(74 + 16),
                 Width = Application.GetRealWidth(168 - 40),
                 Height = Application.GetRealHeight(288 - 16 - 16),
-                WaveColor = light.on_off == "on" ? CSS_Color.AuxiliaryColor1 : CSS_Color.DividingLineColor,
-                WaveBorderColor = CSS_Color.PromptingColor2,
+                //WaveBorderColor = CSS_Color.PromptingColor2,
                 BorderColor = 0x00000000,
-                CornerRadius = Application.GetRealWidth(1),
+                CornerRadius = Application.GetRealWidth(40),
                 BorderWidth = 0,
-                WavePadding = Application.GetRealWidth(-5),
-                BackgroundColor = CSS_Color.BackgroundColor,
-                Radius = (uint)Application.GetRealWidth(40),
+                //WavePadding = Application.GetRealWidth(-5),
+                //BackgroundColor = CSS_Color.BackgroundColor,
+                //Radius = (uint)Application.GetRealWidth(40),
                 Progress = light.brightness,
             };
             controlView.AddChidren(dimmerBar);
+            if(light.on_off == "on")
+            {
+                dimmerBar.SetProgressBarColors(CSS_Color.AuxiliaryColor1, CSS_Color.AuxiliaryColor1);
+            }
+            else
+            {
+                dimmerBar.SetProgressBarColors(CSS_Color.DividingLineColor, CSS_Color.DividingLineColor);
+            }
+            
 
             #region 娓愬彉鏃堕棿璋冭妭
             var btnGradualChangeText = new Button()

--
Gitblit v1.8.0