| | |
| | | void LoadDimmingAttrView(VerticalScrolViewLayout attrView) |
| | | { |
| | | string briValue = ""; |
| | | commandDic.TryGetValue(FunctionAttributeKey.Percent,out briValue); |
| | | commandDic.TryGetValue(FunctionAttributeKey.Brightness,out briValue); |
| | | |
| | | var dimmingView = new FrameLayout() |
| | | { |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = StringId.Brightness, |
| | | }; |
| | | btnBrightnessText.Text = Language.StringByID(StringId.Brightness) + " " + commandDic[FunctionAttributeKey.Percent] + "%"; |
| | | btnBrightnessText.Text = Language.StringByID(StringId.Brightness) + " " + commandDic[FunctionAttributeKey.Brightness] + "%"; |
| | | dimmingView.AddChidren(btnBrightnessText); |
| | | |
| | | |
| | |
| | | ProgressTextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | ProgressBarColor = CSS_Color.AuxiliaryColor1, |
| | | MaxValue = 100, |
| | | Progress = Convert.ToInt32(commandDic[FunctionAttributeKey.Percent]), |
| | | Progress = Convert.ToInt32(commandDic[FunctionAttributeKey.Brightness]), |
| | | SeekBarPadding = Application.GetRealWidth(20), |
| | | IsProgressTextShow = false, |
| | | ProgressChangeDelayTime = 0, |
| | |
| | | btnBrightnessText.Text = Language.StringByID(StringId.Brightness) + " " + e + "%"; |
| | | }; |
| | | dimmerBar.OnStopTrackingTouchEvent = (sender, e) => { |
| | | commandDic[FunctionAttributeKey.Percent] = dimmerBar.Progress.ToString(); |
| | | commandDic[FunctionAttributeKey.Brightness] = dimmerBar.Progress.ToString(); |
| | | btnBrightnessText.Text = Language.StringByID(StringId.Brightness) + " " + e + "%"; |
| | | |
| | | foreach (var light in lights) |
| | |
| | | #region 色温 |
| | | |
| | | string valueStr = "2700"; |
| | | commandDic.TryGetValue(FunctionAttributeKey.Percent, out valueStr); |
| | | commandDic.TryGetValue(FunctionAttributeKey.CCT, out valueStr); |
| | | int value = Convert.ToInt32(valueStr) / 100; |
| | | |
| | | var cctView = new FrameLayout() |
| | |
| | | #region RGB |
| | | |
| | | string value = "255,255,255"; |
| | | commandDic.TryGetValue(FunctionAttributeKey.Percent, out value); |
| | | commandDic.TryGetValue(FunctionAttributeKey.RGB, out value); |
| | | |
| | | var rgbView = new FrameLayout() |
| | | { |