| | |
| | | /// 渐变时间进度条 |
| | | /// </summary> |
| | | DiyImageSeekBar barFadeTime; |
| | | /// <summary> |
| | | /// 色盘里面那个会滑动的球 |
| | | /// </summary> |
| | | Button btnWhiteRound; |
| | | #endregion |
| | | |
| | | #region 区域变量 |
| | |
| | | BorderWidth = 1, |
| | | BackgroundColor = (uint)(0xFF000000 + light.GetRGBcolor()) |
| | | }; |
| | | |
| | | controlView.AddChidren(btnCurColor); |
| | | |
| | | btnCollection = new Button() |
| | |
| | | controlView.AddChidren(btnCollection); |
| | | } |
| | | |
| | | //色盘的桌布控件(限制那个白色滑动球使用) |
| | | var framePickerBack = new FrameLayout(); |
| | | framePickerBack.Gravity = Gravity.CenterHorizontal; |
| | | framePickerBack.Y = btnFromFoorAndRoom.Bottom + Application.GetRealHeight(1); |
| | | framePickerBack.Width = Application.GetMinRealAverage(216); |
| | | framePickerBack.Height = Application.GetMinRealAverage(216); |
| | | controlView.AddChidren(framePickerBack); |
| | | |
| | | colorPicker = new ColorPicker() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = btnFromFoorAndRoom.Bottom + Application.GetRealHeight(1), |
| | | Width = Application.GetMinRealAverage(216), |
| | | Height = Application.GetMinRealAverage(216), |
| | | ColorImagePath = "FunctionIcon/Light/ColorWheel.png", |
| | | }; |
| | | controlView.AddChidren(colorPicker); |
| | | framePickerBack.AddChidren(colorPicker); |
| | | if(light.trait_on_off.curValue.ToString() == "off") |
| | | { |
| | | colorPicker.ColorImagePath = "FunctionIcon/Light/ColorWheelGray.png"; |
| | | } |
| | | |
| | | //白点控件 |
| | | this.btnWhiteRound = new Button(); |
| | | btnWhiteRound.Width = Application.GetRealWidth(24); |
| | | btnWhiteRound.Height = Application.GetRealWidth(24); |
| | | btnWhiteRound.UnSelectedImagePath = "FunctionIcon/Light/ColorWheelTip.png"; |
| | | btnWhiteRound.Visible = false; |
| | | framePickerBack.AddChidren(btnWhiteRound); |
| | | |
| | | #region 亮度调节 |
| | | var btnBrightnessText = new Button() |
| | |
| | | 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 |
| | | |
| | | btnRestoredPoint = new Button() |
| | | { |
| | | X = Application.GetRealWidth(104), |
| | | Y = Application.GetRealHeight(462), |
| | | Width = Application.GetMinRealAverage(40), |
| | | Height = Application.GetMinRealAverage(40), |
| | | X = Application.GetRealWidth(116), |
| | | Y = Application.GetRealHeight(466), |
| | | Width = Application.GetMinRealAverage(32), |
| | | Height = Application.GetMinRealAverage(32), |
| | | UnSelectedImagePath = "Public/Restored_Shadow.png", |
| | | SelectedImagePath = "Public/Restored_Shadow.png", |
| | | }; |
| | |
| | | |
| | | btnSwitch = new Button() |
| | | { |
| | | X = btnRestoredPoint.Right + Application.GetRealWidth(40), |
| | | Y = Application.GetRealHeight(462), |
| | | Width = Application.GetMinRealAverage(40), |
| | | Height = Application.GetMinRealAverage(40), |
| | | X = btnRestoredPoint.Right + Application.GetRealWidth(32), |
| | | Y = Application.GetRealHeight(466), |
| | | Width = Application.GetMinRealAverage(32), |
| | | Height = Application.GetMinRealAverage(32), |
| | | UnSelectedImagePath = "Public/PowerClose.png", |
| | | SelectedImagePath = "Public/PowerOpen.png", |
| | | IsSelected = light.trait_on_off.curValue.ToString() == "on" |