From 6d73bf6e816570291865674bef8bce8972e4de3f Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期三, 01 十二月 2021 16:32:57 +0800
Subject: [PATCH] 2021-12-01-01

---
 HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs
index 535912c..11604ef 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/IrFanPage.cs
@@ -31,7 +31,7 @@
 
             //鍒濆鍖栫涓�涓储寮曢〉鐨勫唴瀹�
             this.InitFrameWhiteContent1();
-            ;
+            
         }
 
         /// <summary>
@@ -44,7 +44,7 @@
                 Gravity = Gravity.CenterHorizontal,
                 Y = Application.GetRealHeight(88),
                 Width = Application.GetRealWidth(134),
-                Height = Application.GetRealHeight(134),
+                Height = Application.GetRealWidth(134),
                 UnSelectedImagePath = "FunctionIcon/IrFan/FanIcon.png",
             };
             FrameWhiteCentet1.AddChidren(btnIcon);
@@ -54,7 +54,7 @@
                                             Language.StringByID(StringId.Mode),
                                             "");
             patternView.Y = Application.GetRealHeight(263);
-            patternView.X = Application.GetRealWidth(57);
+            patternView.X = Application.GetRealWidth(36);
             patternView.Width = Application.GetRealWidth(96);
             patternView.Height = Application.GetRealHeight(74);
             FrameWhiteCentet1.AddChidren(patternView);
@@ -71,7 +71,7 @@
                                             Language.StringByID(StringId.HeadSwinging),
                                             "");
             swingView.Y = Application.GetRealHeight(263);
-            swingView.X = Application.GetRealWidth(216);
+            swingView.X = Application.GetRealWidth(229-34);
             swingView.Width = Application.GetRealWidth(96);
             swingView.Height = Application.GetRealHeight(74);
             FrameWhiteCentet1.AddChidren(swingView);
@@ -89,7 +89,7 @@
                                             Language.StringByID(StringId.Timing),
                                             "");
             timingView.Y = Application.GetRealHeight(366);
-            timingView.X = Application.GetRealWidth(57);
+            timingView.X = Application.GetRealWidth(36);
             timingView.Width = Application.GetRealWidth(96);
             timingView.Height = Application.GetRealHeight(74);
             FrameWhiteCentet1.AddChidren(timingView);
@@ -106,8 +106,8 @@
                                             "FunctionIcon/IrFan/SpeedIconOn.png",
                                             Language.StringByID(StringId.AirVolume),
                                             "");
-            airVolumeView.Y = Application.GetRealHeight(263);
-            airVolumeView.X = Application.GetRealWidth(216);
+            airVolumeView.Y = Application.GetRealHeight(366);
+            airVolumeView.X = Application.GetRealWidth(229 - 34);
             airVolumeView.Width = Application.GetRealWidth(96);
             airVolumeView.Height = Application.GetRealHeight(74);
             FrameWhiteCentet1.AddChidren(airVolumeView);
@@ -184,9 +184,9 @@
 
             btnTitle = new Button()
             {
-                Gravity = Gravity.Center,
+                Y = Application.GetRealWidth(28),
                 Text = title,
-                Height = Application.GetRealHeight(42),
+                Height = Application.GetRealHeight(30),
                 TextColor = CSS_Color.TextualColor,
                 SelectedTextColor = CSS_Color.MainColor,
                 TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
@@ -208,9 +208,11 @@
             btnIcon.MouseUpEventHandler = eventHandler;
             btnTitle.MouseUpEventHandler = eventHandler;
             btnIcon.MouseDownEventHandler = (sender, e) => {
+                btnTitle.IsSelected = true;
                 btnIcon.IsSelected = true;
             };
             btnTitle.MouseDownEventHandler = (sender, e) => {
+                btnTitle.IsSelected = true;
                 btnIcon.IsSelected = true;
             };
             btnIcon.MouseUpEventHandler += (sender, e) => {
@@ -218,7 +220,8 @@
                     System.Threading.Thread.Sleep(500);
                     Application.RunOnMainThread(() =>
                     {
-                        btnIcon.IsSelected = true;
+                        btnTitle.IsSelected = false;
+                        btnIcon.IsSelected = false;
                     });
                 })
                 { IsBackground = true }.Start();
@@ -228,7 +231,8 @@
                     System.Threading.Thread.Sleep(500);
                     Application.RunOnMainThread(() =>
                     {
-                        btnIcon.IsSelected = true;
+                        btnTitle.IsSelected = false;
+                        btnIcon.IsSelected = false;
                     });
                 })
                 { IsBackground = true }.Start();

--
Gitblit v1.8.0