From 62d6c4bf6c30da21ccd8245199234c5004117d56 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 21 四月 2023 13:32:15 +0800
Subject: [PATCH] V1.7.1发布版本

---
 HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs |   70 +++++++++++++++--------------------
 1 files changed, 30 insertions(+), 40 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs
index b25118e..4add0af 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/GroupControlPage.cs
@@ -122,13 +122,38 @@
             int attrViewHight = Application.GetRealHeight(18 + 22);
 
 
-            //鍙湁缁х數鍣�
-            if (!hadDimming && !hadCCT && !hadRGB)
-            {
                 attrViewHight += Application.GetRealHeight(50);
+                if (hadRGB)
+                {
+                    attrViewHight += Application.GetRealHeight(248);
+                    hadDimming = true;
+                }
+                if (hadCCT)
+                {
+                    attrViewHight += Application.GetRealHeight(75 + 11);
+                    hadDimming = true;
+                }
+                if (hadDimming)
+                {
+                    attrViewHight += Application.GetRealHeight(54 + 11);
+                }
                 attrView.Height = attrViewHight;
                 contentView.AddChidren(attrView);
                 attrView.AddChidren(new Button() { Height = Application.GetRealHeight(18) });
+
+
+                if (hadDimming)
+                {
+                    LoadDimmingAttrView(attrView);
+                }
+                if (hadCCT)
+                {
+                    LoadCctAttrView(attrView);
+                }
+                if (hadRGB)
+                {
+                    LoadRgbAttrView(attrView);
+                }
 
                 var view = new FrameLayout()
                 {
@@ -188,42 +213,7 @@
                     group.Control(d);
                 };
 
-            }
 
-            else
-            {
-                if (hadRGB)
-                {
-                    attrViewHight += Application.GetRealHeight(248);
-                    hadDimming = true;
-                }
-                if (hadCCT)
-                {
-                    attrViewHight += Application.GetRealHeight(54 + 11);
-                    hadDimming = true;
-                }
-                if (hadDimming)
-                {
-                    attrViewHight += Application.GetRealHeight(54 + 11);
-                }
-                attrView.Height = attrViewHight;
-                contentView.AddChidren(attrView);
-                attrView.AddChidren(new Button() { Height = Application.GetRealHeight(18) });
-
-
-                if (hadDimming)
-                {
-                    LoadDimmingAttrView(attrView);
-                }
-                if (hadCCT)
-                {
-                    LoadCctAttrView(attrView);
-                }
-                if (hadRGB)
-                {
-                    LoadRgbAttrView(attrView);
-                }
-            }
 
             contentView.Height = Application.GetRealHeight(52 + 44) + attrViewHight;
             contentView.Gravity = Gravity.Center;
@@ -352,7 +342,7 @@
             #region 鑹叉俯
             var cctView = new FrameLayout()
             {
-                Height = Application.GetRealHeight(54 + 11)
+                Height = Application.GetRealHeight(75 + 11)
             };
             attrView.AddChidren(cctView);
 
@@ -362,7 +352,7 @@
             btnTempClolor.X = Application.GetRealWidth(35);
             btnTempClolor.Y = Application.GetRealHeight(1);
             btnTempClolor.Width = Application.GetRealWidth(224);
-            btnTempClolor.Height = Application.GetRealHeight(21);
+            btnTempClolor.Height = Application.GetRealHeight(42);
             btnTempClolor.TextAlignment = TextAlignment.CenterLeft;
             btnTempClolor.TextColor = CSS_Color.FirstLevelTitleColor;
             btnTempClolor.TextSize = CSS_FontSize.PromptFontSize_FirstLevel;

--
Gitblit v1.8.0