From 2ae36ddb40d28c62b64a2fdd4c3033e7d65d5cfb Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 04 三月 2021 15:20:29 +0800 Subject: [PATCH] 2021-0304-1 --- HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs index 453d29e..1a9040b 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); @@ -165,7 +165,6 @@ }; controlView.AddChidren(btnBrightnessText); - #region 娓愬彉鏃堕棿璋冭妭 var btnGradualChangeText = new Button() { @@ -177,6 +176,8 @@ TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, TextID = StringId.SpeedOfChange, + Visible = light.HadFadeTime, + Enable = light.HadFadeTime, }; controlView.AddChidren(btnGradualChangeText); @@ -190,6 +191,8 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + Visible = light.HadFadeTime, + Enable = light.HadFadeTime, }; controlView.AddChidren(btnGradualChangeMinValuesText); @@ -209,6 +212,8 @@ MaxValue = 10, Progress = light.fadeTime, SeekBarPadding = Application.GetRealWidth(20), + Visible = light.HadFadeTime, + Enable = light.HadFadeTime, }; controlView.AddChidren(barFadeTime); @@ -222,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 @@ -241,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(); } -- Gitblit v1.8.0