From 505effa88b17ce8c3c7ac5403b76d9e5d0cfc2a5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 28 十月 2024 11:58:31 +0800 Subject: [PATCH] 谷歌版本问题修复 --- HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs index 90cadf6..17895ba 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs @@ -87,7 +87,7 @@ controlView = new FrameLayout() { Gravity = Gravity.CenterHorizontal, - Y = Application.GetRealHeight(88), + Y = Application.GetRealHeight(88 + 10), Width = Application.GetRealWidth(327), Height = Application.GetRealHeight(526), BackgroundImagePath = "Public/Fragmentbg.png", @@ -354,20 +354,19 @@ new System.Threading.Thread(() => { while (true) { - System.Threading.Thread.Sleep(500); - System.Threading.Thread.Sleep(500); + System.Threading.Thread.Sleep(1000); if (curDimmerStatus) { continue; } if (onDimmerBar) { - onDimmerBar = false; continue; } else { DriverLayer.Control.Ins.SendReadCommand(function); + curDimmerStatus = true; } } }) @@ -486,13 +485,13 @@ btnShortcut.UnSelectedImagePath = "FunctionIcon/Light/MeetingGuestsIconOn.png"; }; - //浼氬 3000k + //浼氬 4500k var btnMeet = new Button(); btnMeet.X = btnMeetIcon.Right + Application.GetRealWidth(12); btnMeet.Y = btnMeetIcon.Y; btnMeet.Width = Application.GetRealWidth(100); btnMeet.Height = Application.GetRealWidth(24); - btnMeet.Text = Language.StringByID(StringId.MeetingGuests) + " 3000K"; + btnMeet.Text = Language.StringByID(StringId.MeetingGuests) + " 4500K"; btnMeet.TextSize = CSS_FontSize.TextFontSize; btnMeet.TextColor = CSS_Color.FirstLevelTitleColor; btnMeet.SelectedTextColor = CSS_Color.MainColor; @@ -500,7 +499,7 @@ frameWhite.AddChidren(btnMeet); btnMeet.MouseUpEventHandler += (sender, e) => { - barColorTemplatrue.Progress = 30; + barColorTemplatrue.Progress = 45; function.SetAttrState(FunctionAttributeKey.CCT, barColorTemplatrue.Progress * 100); barColorTemplatrue.SetCustomText((barColorTemplatrue.Progress * 100) + "K"); frameBack.Close(); @@ -564,7 +563,7 @@ btnCozy.IsSelected = true; btnCozyIcon.IsSelected = true; } - if (function.GetAttrState(FunctionAttributeKey.CCT) == "3000") + if (function.GetAttrState(FunctionAttributeKey.CCT) == "4500") { btnMeet.IsSelected = true; btnMeetIcon.IsSelected = true; @@ -788,7 +787,7 @@ //褰撳墠婊戞潯鎵�鍦ㄧ殑澶ц嚧鐧惧垎姣� int tempValue = this.Progress - this.m_MinValue; if (tempValue < 0) { tempValue = 0; } - decimal persent = (decimal)tempValue / (this.m_MaxValue - this.m_MinValue); + decimal persent = (decimal)tempValue / (this.m_MaxValue - this.m_MinValue) == 0 ? 1 : (this.m_MaxValue - this.m_MinValue); //褰撳墠婊戞潯鎵�鍦ㄧ殑澶ц嚧浣嶇疆 XX += (int)((this.Width - this.m_SeekBarPadding * 2) * persent); //鍥犱负瑕佸眳涓�,鎵�浠ュ噺鎺夎嚜瀹氫箟鎺т欢鐨勫搴︾殑涓�鑸� -- Gitblit v1.8.0