| | |
| | | { |
| | | bodyView.btnCurColor.BorderColor = 0x00000000; |
| | | } |
| | | try |
| | | { |
| | | var colorfulState = updateTemp.GetAttribute(FunctionAttributeKey.Colorful); |
| | | if (colorfulState != null) |
| | | { |
| | | if(bodyView.btnColorfulSwitch!= null) |
| | | { |
| | | bodyView.btnColorfulSwitch.IsSelected = colorfulState.curValue.ToString() == "on"; |
| | | } |
| | | } |
| | | }catch(Exception ex) |
| | | { |
| | | MainPage.Log($"更新RGB 炫彩开关状态异常:{ex.Message}"); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | barFadeTime.OnStopTrackingTouchEvent = (sender, e) => |
| | | { |
| | | function.SetAttrState(FunctionAttributeKey.FadeTime, e.ToString()); |
| | | var d = new System.Collections.Generic.Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.FadeTime, e.ToString()); |
| | | Control.Ins.SendWriteCommand(function, d); |
| | | function.SaveFunctionFile(); |
| | | }; |
| | | } |