| | |
| | | Radius = (uint)Application.GetMinRealAverage(8), |
| | | BorderColor = CSS_Color.PromptingColor2, |
| | | BorderWidth = 1, |
| | | BackgroundColor = (uint)(0xFF000000 + lightTemp.GetRGBcolor(function)) |
| | | BackgroundColor = (uint)(0xFF000000 + lightTemp.GetRGBcolor(function.GetAttrState(FunctionAttributeKey.RGB))) |
| | | }; |
| | | controlView.AddChidren(btnCurColor); |
| | | |
| | |
| | | controlView.AddChidren(btnMaxValuesText); |
| | | #endregion |
| | | |
| | | if (function.GetAttribute(FunctionAttributeKey.FadeTime) != null) |
| | | { |
| | | #region 渐变时间调节 |
| | | var btnGradualChangeText = new Button() |
| | | { |
| | |
| | | Enable = function.GetAttribute(FunctionAttributeKey.FadeTime) != null, |
| | | }; |
| | | controlView.AddChidren(barFadeTime); |
| | | barFadeTime.OnStopTrackingTouchEvent = (sender, e) => |
| | | { |
| | | function.SetAttrState(FunctionAttributeKey.FadeTime, barFadeTime.Progress); |
| | | function.UpdataFuncitonInfo(); |
| | | }; |
| | | |
| | | var btnGradualChangeMaxValuesText = new Button() |
| | | { |
| | |
| | | controlView.AddChidren(btnGradualChangeMaxValuesText); |
| | | #endregion |
| | | |
| | | } |
| | | btnRestoredPoint = new Button() |
| | | { |
| | | X = Application.GetRealWidth(116), |