From 74a9ba8e9a2df9c39f9c2eb212a5ac889a055cd4 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 03 十二月 2019 10:47:51 +0800
Subject: [PATCH] 优化UI细节(请合并最新代码)
---
ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs b/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs
index dc7cbca..609c8b7 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs
@@ -80,11 +80,11 @@
var titleName = new Button
{
- TextSize = 16,
+ TextSize = 17,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
TextAlignment = TextAlignment.CenterLeft,
X = Application.GetRealWidth(176),
- Width = Application.GetRealWidth(400),
+ Width = Application.GetRealWidth(600),
Height = Application.GetRealHeight(69),
Y = Application.GetRealHeight(92),
TextID = MyInternationalizationString.addtime,
@@ -165,7 +165,8 @@
Text = Language.StringByID(MyInternationalizationString.type),
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
- Width = Application.GetRealWidth(265)
+ Width = Application.GetRealWidth(265),
+ TextSize = 14,
};
typeRowlayout.AddChidren(btnTypeTextTitle);
@@ -179,6 +180,7 @@
TextAlignment = TextAlignment.CenterRight,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
TextID=MyInternationalizationString.immediateexecution,
+ TextSize = 14,
};
typeRowlayout.AddChidren(btnimmediateexecution);
@@ -223,7 +225,8 @@
Text = Language.StringByID(MyInternationalizationString.moment),
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
- Width=Application.GetRealWidth(265)
+ Width=Application.GetRealWidth(265),
+ TextSize = 14,
};
rowSelectedTimeType.AddChidren(btnTimeText);
@@ -236,6 +239,7 @@
Width = Application.GetRealWidth(630),
TextAlignment = TextAlignment.CenterRight,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
+ TextSize = 14,
};
rowSelectedTimeType.AddChidren(btnTimeTpye);
@@ -380,7 +384,8 @@
Text = Language.StringByID(MyInternationalizationString.Advancedelay),
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
- Width = Application.GetRealWidth(265)
+ Width = Application.GetRealWidth(265),
+ TextSize = 14,
};
rowDelayType.AddChidren(btnDelayTimeText);
@@ -394,6 +399,7 @@
TextAlignment = TextAlignment.CenterRight,
TextColor = ZigbeeColor.Current.LogicTextBlackColor,
Text = textvalue,
+ TextSize = 14,
};
rowDelayType.AddChidren(btnDelayTime);
@@ -517,6 +523,7 @@
BackgroundColor =ZigbeeColor.Current.LogicBtnSaveBackgroundColor,
TextID = MyInternationalizationString.Save,
TextColor= ZigbeeColor.Current.LogicBtnSaveTextColor,
+ TextSize = 16,
};
fra.AddChidren(btnsave);
btnsave.MouseUpEventHandler += (sender, e) =>
@@ -593,24 +600,17 @@
flMain.RemoveFromParent();
};
- var fraview1 = new FrameLayout
- {
- Width = Application.GetRealWidth(1080),
- Height = Application.GetRealHeight(100),
- Y = Application.GetRealHeight(1920 - 100),
- BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor,
- };
- flMain.AddChidren(fraview1);
-
+
var fraview = new FrameLayout
{
Width = Application.GetRealWidth(1080),
Height = Application.GetRealHeight(850),
Y = Application.GetRealHeight(1920 - 850),
BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor,
- Radius = (uint)Application.GetRealHeight(60),
+ //Radius = (uint)Application.GetRealHeight(60),
};
flMain.AddChidren(fraview);
+ fraview.SetCornerWithSameRadius(20, HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
#region -------鍙栨秷 瀹屾垚
var timetype = new RowLayout
@@ -627,6 +627,7 @@
Width = Application.GetRealWidth(200),
X = Application.GetRealWidth(80),
TextAlignment = TextAlignment.CenterLeft,
+ TextSize = 14,
};
timetype.AddChidren(Btncancel);
Btncancel.MouseUpEventHandler += (sender16, e16) =>
@@ -654,6 +655,7 @@
Width = Application.GetRealWidth(200),
TextAlignment = TextAlignment.CenterRight,
X = Btntitle.Right + Application.GetRealWidth(100),
+ TextSize = 14,
};
timetype.AddChidren(Btncomplete);
@@ -685,6 +687,7 @@
TextID = MyInternationalizationString.sunrise,
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
+ TextSize = 14,
};
sunriseRow.AddChidren(btnsunrisetext);
@@ -718,6 +721,7 @@
TextID = MyInternationalizationString.sunset,
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
+ TextSize = 14,
};
sunsetRow.AddChidren(btnsunsettext);
@@ -753,6 +757,7 @@
TextID = MyInternationalizationString.noon,
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
+ TextSize = 14,
};
noonRow.AddChidren(btnnoontext);
@@ -785,6 +790,7 @@
TextID = MyInternationalizationString.logiccustom,
TextAlignment = TextAlignment.CenterLeft,
TextColor = ZigbeeColor.Current.LogicBtnNotSelectedColor,
+ TextSize = 14,
};
logiccustomRow.AddChidren(btnlogiccustomtext);
--
Gitblit v1.8.0