From a251442d9fc088b3d8cf74d20b959f0f6103b095 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 14 九月 2020 17:42:10 +0800
Subject: [PATCH] 20200914

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

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index df8ab1c..c9b2eaf 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -35,6 +35,10 @@
         /// </summary>
         Button btnBrightnessText;
         /// <summary>
+        /// 娓愬彉鏃堕棿淇敼
+        /// </summary>
+        DiyImageSeekBar barFadeTime;
+        /// <summary>
         /// 寮�鍏虫寜閽�
         /// </summary>
         Button btnSwitch;
@@ -158,7 +162,6 @@
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel,
                 Text = light.brightness + "%",
-                BackgroundColor = 0xFF000FFF
             };
             controlView.AddChidren(btnBrightnessText);
 
@@ -190,7 +193,7 @@
             };
             controlView.AddChidren(btnGradualChangeMinValuesText);
 
-            var barGradualChange = new DiyImageSeekBar()
+            barFadeTime = new DiyImageSeekBar()
             {
                 X = btnGradualChangeMinValuesText.Right,
                 Y = Application.GetRealHeight(412 - 21) + Application.GetRealHeight(8),
@@ -204,14 +207,14 @@
                 ProgressTextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                 ProgressBarUnitSring = "s",
                 MaxValue = 10,
-                Progress = 0,
+                Progress = light.fadeTime,
                 SeekBarPadding = Application.GetRealWidth(20),
             };
-            controlView.AddChidren(barGradualChange);
+            controlView.AddChidren(barFadeTime);
 
             var btnGradualChangeMaxValuesText = new Button()
             {
-                X = barGradualChange.Right,
+                X = barFadeTime.Right,
                 Y = btnGradualChangeText.Bottom + Application.GetRealHeight(8),
                 Width = Application.GetRealWidth(35),
                 Height = Application.GetRealHeight(21),
@@ -232,7 +235,6 @@
                 UnSelectedImagePath = "Public/PowerClose.png",
                 SelectedImagePath = "Public/PowerOpen.png",
                 IsSelected = light.trait_on_off.value.ToString() == "on",
-                //Tag = 
             };
             controlView.AddChidren(btnSwitch);
 

--
Gitblit v1.8.0