From 1026814d931de92f0da5f15a58870565a94100e0 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 11 一月 2021 14:37:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/NewFilePath' into WJC --- HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs index 881ab91..a2014d0 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Light/ColorTureLampPage.cs @@ -163,7 +163,7 @@ btnBrightnessText = new Button() { Gravity = Gravity.CenterHorizontal, - Y = ((100 - dimmerBar.Progress) * Application.GetRealHeight(222 - 16 - 16) / 100) + Application.GetRealWidth(40), + Y = ((100 - light.brightness) * Application.GetRealHeight(222 - 16) / 100) + Application.GetRealWidth(80), Width = Application.GetRealWidth(56), Height = Application.GetRealWidth(46), UnSelectedImagePath = "FunctionIcon/Light/BrightnessBg.png", @@ -218,6 +218,9 @@ barColorTemplatrue.Y = btnTempClolorMin.Y - (barColorTemplatrue.Height - btnTempClolorMin.Height) / 2; //鏄剧ず涓婃柟鐨凾xt barColorTemplatrue.ShowCustomTextView(Application.GetRealWidth(50), CSS_FontSize.PromptFontSize_FirstLevel, CSS_Color.FirstLevelTitleColor); + var cct = 27; + int.TryParse(light.Attr_CCT.curValue.ToString(), out cct); + barColorTemplatrue.Progress = cct; //璁剧疆鍒濆鍊� barColorTemplatrue.SetCustomText(barColorTemplatrue.Progress * 100 + "K"); @@ -300,10 +303,10 @@ btnSwitch = new Button() { - X = Application.GetRealWidth(184), - Y = Application.GetRealHeight(462), - Width = Application.GetRealWidth(40), - Height = Application.GetRealWidth(40), + X = Application.GetRealWidth(180), + Y = Application.GetRealHeight(466), + Width = Application.GetRealWidth(32), + Height = Application.GetRealWidth(32), UnSelectedImagePath = "Public/PowerClose.png", SelectedImagePath = "Public/PowerOpen.png", IsSelected = light.trait_on_off.curValue.ToString() == "on", @@ -312,10 +315,10 @@ //鑹叉俯鐨勫揩鎹锋柟寮忓浘鏍� btnShortcut = new Button(); - btnShortcut.X = Application.GetRealWidth(104); + btnShortcut.X = Application.GetRealWidth(116); btnShortcut.Y = btnSwitch.Y; - btnShortcut.Width = Application.GetRealWidth(36); - btnShortcut.Height = Application.GetRealWidth(36); + btnShortcut.Width = Application.GetRealWidth(32); + btnShortcut.Height = Application.GetRealWidth(32); btnShortcut.UnSelectedImagePath = "FunctionIcon/Light/CozyIconOn.png"; controlView.AddChidren(btnShortcut); btnShortcut.MouseUpEventHandler += (sender, e) => -- Gitblit v1.8.0