| | |
| | | /// </summary> |
| | | WaveSeekBarOn dimmerBar; |
| | | /// <summary> |
| | | /// 亮度显示按钮 |
| | | /// </summary> |
| | | Button btnBrightnessText; |
| | | /// <summary> |
| | | /// 开关按钮 |
| | | /// </summary> |
| | | Button btnSwitch; |
| | |
| | | //BackgroundColor = CSS_Color.BackgroundColor, |
| | | //Radius = (uint)Application.GetRealWidth(40), |
| | | Progress = light.brightness, |
| | | //ProgressTextColor =0x00000000, |
| | | IsProgressTextShow = false, |
| | | }; |
| | | controlView.AddChidren(dimmerBar); |
| | | if(light.trait_on_off.value.ToString() == "on") |
| | |
| | | { |
| | | dimmerBar.SetProgressBarColors(CSS_Color.DividingLineColor, CSS_Color.DividingLineColor); |
| | | } |
| | | |
| | | dimmerBar.Progress = light.brightness; |
| | | btnBrightnessText = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y =( (100 - dimmerBar.Progress) * Application.GetRealHeight(288 - 16 - 16) /100)+ Application.GetRealWidth(40), |
| | | Width = Application.GetRealWidth(56), |
| | | Height = Application.GetRealWidth(46), |
| | | UnSelectedImagePath = "FunctionIcon/Light/BrightnessBg.png", |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel, |
| | | Text = light.brightness + "%", |
| | | BackgroundColor = 0xFF000FFF |
| | | }; |
| | | controlView.AddChidren(btnBrightnessText); |
| | | |
| | | |
| | | #region 渐变时间调节 |
| | | var btnGradualChangeText = new Button() |