| | |
| | | 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() |
| | | { |
| | |
| | | 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); |
| | |
| | | }; |
| | | controlView.AddChidren(btnBrightnessText); |
| | | |
| | | |
| | | #region 渐变时间调节 |
| | | var btnGradualChangeText = new Button() |
| | | { |
| | |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = StringId.SpeedOfChange, |
| | | Visible = light.HadFadeTime, |
| | | Enable = light.HadFadeTime, |
| | | }; |
| | | controlView.AddChidren(btnGradualChangeText); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Visible = light.HadFadeTime, |
| | | Enable = light.HadFadeTime, |
| | | }; |
| | | controlView.AddChidren(btnGradualChangeMinValuesText); |
| | | |
| | |
| | | MaxValue = 10, |
| | | Progress = light.fadeTime, |
| | | SeekBarPadding = Application.GetRealWidth(20), |
| | | Visible = light.HadFadeTime, |
| | | Enable = light.HadFadeTime, |
| | | }; |
| | | controlView.AddChidren(barFadeTime); |
| | | |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | Visible = light.HadFadeTime, |
| | | Enable = light.HadFadeTime, |
| | | }; |
| | | controlView.AddChidren(btnGradualChangeMaxValuesText); |
| | | #endregion |
| | |
| | | LoadEventList(); |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Lights)).LoadTopView_FunctionTop(light, actionRefresh); |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | DriverLayer.Control.Ins.SendReadCommand(light); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | |