old mode 100644
new mode 100755
| | |
| | | /// 渐变时间进度条 |
| | | /// </summary> |
| | | DiyImageSeekBar barFadeTime; |
| | | /// <summary> |
| | | /// 色盘里面那个会滑动的球 |
| | | /// </summary> |
| | | Button btnWhiteRound; |
| | | #endregion |
| | | |
| | | #region 区域变量 |
| | |
| | | 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() |
| | | { |