From f500e14c0a994487070380c50c85e0929cbc8e63 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 05 一月 2021 10:48:04 +0800
Subject: [PATCH] 2021-01-05 1.更新
---
Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserLightPage.cs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserLightPage.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserLightPage.cs
index dad8fa1..cb95546 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserLightPage.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Light/UserLightPage.cs
@@ -131,7 +131,7 @@
};
var btnAddLightScene = new Button () {
Width = Application.GetRealWidth (100),
- Height = Application.GetRealHeight (100),
+ Height = Application.GetRealWidth (100),
X = Application.GetRealWidth (640 - 120),
Y = Application.GetRealHeight (20),
UnSelectedImagePath = "Light/UserLightAddScene.png",
@@ -256,7 +256,7 @@
};
Button btnSIcon = new Button () {
Width = Application.GetRealWidth(111),
- Height = Application.GetRealHeight(110),
+ Height = Application.GetRealWidth(110),
Gravity = Gravity.CenterVertical,
UnSelectedImagePath = scene.SceneIconPath,
SelectedImagePath = scene.SceneIconPath,
@@ -670,8 +670,8 @@
lightView.AddChidren (tempLightName);
var tempSiwtch = new Button () {
- Width = Application.GetRealWidth (85),
- Height = Application.GetRealHeight (53),
+ Width = Application.GetMinRealAverage (85),
+ Height = Application.GetMinRealAverage (53),
X = Application.GetRealWidth (640 - 90 - 20),
Gravity = Gravity.CenterVertical,
UnSelectedImagePath = "Item/SwitchClose.png",
@@ -1029,8 +1029,8 @@
};
//寮�鍏虫寜閿�
var tempSwitch = new Button () {
- Width = Application.GetRealWidth (90),
- Height = Application.GetRealHeight (53),
+ Width = Application.GetMinRealAverage (90),
+ Height = Application.GetMinRealAverage (53),
X = Application.GetRealWidth (640 - 90 - 20),
Gravity = Gravity.CenterVertical,
UnSelectedImagePath = "Item/SwitchClose.png",
@@ -1194,7 +1194,7 @@
lightView.AddChidren (btnLightSetting);
Button btnRGBSetting = new Button () {
Width = Application.GetRealWidth (60),
- Height = Application.GetRealHeight (60),
+ Height = Application.GetRealWidth (60),
Radius = (uint)Application.GetRealHeight (30),
X = tempLightSeekBar.Right + Application.GetRealWidth (20),
Gravity = Gravity.CenterVertical,
@@ -1567,8 +1567,8 @@
#endregion
//寮�鍏虫寜閿�
var tempSwitch = new Button () {
- Width = Application.GetRealWidth (90),
- Height = Application.GetRealHeight (53),
+ Width = Application.GetMinRealAverage (90),
+ Height = Application.GetMinRealAverage (53),
X = Application.GetRealWidth (640 - 90 - 20),
Gravity = Gravity.CenterVertical,
UnSelectedImagePath = "Item/SwitchClose.png",
--
Gitblit v1.8.0