wjc
2023-07-26 9508510f0b27da3278fa1161eb2ba3dd1e3e2030
HDL_ON/UI/UI2/FuntionControlView/Light/RGBPageBLL.cs
@@ -58,6 +58,20 @@
                        {
                            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)
@@ -270,6 +284,9 @@
                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();
                };
            }