wei
2021-01-20 e985d1b79937c41ebdaa4caa2974ec03929db915
HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -136,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);
@@ -170,7 +165,6 @@
            };
            controlView.AddChidren(btnBrightnessText);
            #region 渐变时间调节
            var btnGradualChangeText = new Button()
            {
@@ -182,6 +176,8 @@
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                TextID = StringId.SpeedOfChange,
                Visible = light.HadFadeTime,
                Enable = light.HadFadeTime,
            };
            controlView.AddChidren(btnGradualChangeText);
@@ -195,6 +191,8 @@
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = CSS_Color.PromptingColor1,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                Visible = light.HadFadeTime,
                Enable = light.HadFadeTime,
            };
            controlView.AddChidren(btnGradualChangeMinValuesText);
@@ -214,6 +212,8 @@
                MaxValue = 10,
                Progress = light.fadeTime,
                SeekBarPadding = Application.GetRealWidth(20),
                Visible = light.HadFadeTime,
                Enable = light.HadFadeTime,
            };
            controlView.AddChidren(barFadeTime);
@@ -227,6 +227,8 @@
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = CSS_Color.PromptingColor1,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                Visible = light.HadFadeTime,
                Enable = light.HadFadeTime,
            };
            controlView.AddChidren(btnGradualChangeMaxValuesText);
            #endregion
@@ -246,7 +248,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();
        }