From a4924de3136289d10cabbf2f61a228387d44ded7 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 07 十一月 2019 13:48:36 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLightSettionForm.cs |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLightSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLightSettionForm.cs
index 2285ed2..efd7e12 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLightSettionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLightSettionForm.cs
@@ -109,10 +109,7 @@
             //鑺傝兘妯″紡
             frameBack.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uEnergyConservationMode), 400);
             //寮�鍏虫帶浠�
-            var btnSwitch = frameBack.AddMostRightEmptyIcon(104, 63);
-            frameBack.ChangedChidrenBindMode(btnSwitch, ChidrenBindMode.NotBind);
-            btnSwitch.UnSelectedImagePath = "Item/Switch.png";
-            btnSwitch.SelectedImagePath = "Item/SwitchSelected.png";
+            var btnSwitch = frameBack.AddMostRightSwitchIcon();
             btnSwitch.ButtonClickEvent += (sender, e) =>
             {
                 btnSwitch.IsSelected = !btnSwitch.IsSelected;
@@ -138,14 +135,14 @@
             //褰撳墠浜害
             var btnProgressView1 = new NormalViewControl(200, 49, true);
             btnProgressView1.X = ControlCommonResourse.XXLeft;
-            btnProgressView1.Y = Application.GetRealHeight(161);
+            btnProgressView1.Y = Application.GetRealHeight(164);
             btnProgressView1.TextSize = 12;
             btnProgressView1.TextColor = UserCenterColor.Current.TextGrayColor1;
             btnProgressView1.TextID = R.MyInternationalizationString.uNowLuminance;
             frameBack.AddChidren(btnProgressView1);
             var btnProgress1 = new NormalViewControl(200, 49, true);
             btnProgress1.X = Application.GetRealWidth(222);
-            btnProgress1.Y = Application.GetRealHeight(158);
+            btnProgress1.Y = Application.GetRealHeight(164);
             btnProgress1.TextSize = 12;
             btnProgress1.TextColor = UserCenterColor.Current.TextGrayColor1;
             btnProgress1.Text = energyModeInfo.level + "%";
@@ -294,13 +291,12 @@
             uint backColor = this.GetColorByRGB((byte)R1, (byte)G1, (byte)B1);
             var btnColor = new NormalViewControl(Application.GetMinRealAverage(69), Application.GetMinRealAverage(69), false);
             btnColor.X = btnColorView.Right + Application.GetRealHeight(23);
-            btnColor.Radius = (uint)Application.GetMinRealAverage(69);
+            btnColor.Radius = (uint)Application.GetMinRealAverage(69) / 2;
             btnColor.BackgroundColor = backColor;
             frameColor.AddChidren(btnColor, ChidrenBindMode.BindEventOnly);
 
             var btnRight = new NormalViewControl(Application.GetMinRealAverage(58), Application.GetMinRealAverage(58), false);
             btnRight.UnSelectedImagePath = "Item/Next.png";
-            btnRight.BackgroundColor = UserCenterColor.Current.Green;
             btnRight.X = frameColor.Width - Application.GetMinRealAverage(58);
             frameColor.AddChidren(btnRight, ChidrenBindMode.BindEventOnly);
             btnRight.Y += Application.GetMinRealAverage(8);
@@ -422,13 +418,12 @@
             uint backColor = this.GetColorByRGB((byte)R1, (byte)G1, (byte)B1);
             var btnColor = new NormalViewControl(Application.GetMinRealAverage(69), Application.GetMinRealAverage(69), false);
             btnColor.X = btnColorView.Right + Application.GetRealHeight(23);
-            btnColor.Radius = (uint)Application.GetMinRealAverage(69);
+            btnColor.Radius = (uint)Application.GetMinRealAverage(69) / 2;
             btnColor.BackgroundColor = backColor;
             frameColor.AddChidren(btnColor, ChidrenBindMode.BindEventOnly);
 
             var btnRight = new NormalViewControl(Application.GetMinRealAverage(58), Application.GetMinRealAverage(58), false);
             btnRight.UnSelectedImagePath = "Item/Next.png";
-            btnRight.BackgroundColor = UserCenterColor.Current.Green;
             btnRight.X = frameColor.Width - Application.GetMinRealAverage(58);
             frameColor.AddChidren(btnRight, ChidrenBindMode.BindEventOnly);
             btnRight.Y += Application.GetMinRealAverage(8);

--
Gitblit v1.8.0