From 642fcdaeb496d9a8f3154e17fd76005be3fcf197 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期二, 03 十二月 2019 12:00:24 +0800 Subject: [PATCH] 2019.12.3 --- ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs index f47744d..db2a05a 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneMainView.cs @@ -16,7 +16,7 @@ /// <summary> /// SceneIcon /// </summary> - public Button SceneIcon; + public ImageView SceneIcon; /// <summary> /// statu /// </summary> @@ -92,16 +92,15 @@ }; AddChidren(CardBG); - SceneIcon = new Button + SceneIcon = new ImageView { - X = Application.GetMinRealAverage(14), Width = Application.GetMinRealAverage(458), - Height = Application.GetRealHeight(305), - Gravity = Gravity.CenterHorizontal + Height = Application.GetMinRealAverage(305), + Gravity = Gravity.CenterHorizontal, }; AddChidren(SceneIcon); SceneIcon.SetViewShadow(true); - + SceneIcon.SetCornerWithSameRadius(Application.GetRealHeight(100), HDLUtils.RectCornerBottomRight); //sceneBG = new Button //{ @@ -140,7 +139,7 @@ Y = Application.GetMinRealAverage(239), Width = Application.GetMinRealAverage(279), Height = Application.GetMinRealAverage(60), - TextColor = ZigbeeColor.Current.GXCTextBlackColor, + TextColor = ZigbeeColor.Current.GXCTextWhiteColor, SelectedTextColor = ZigbeeColor.Current.GXCTextSelectedColor, TextAlignment = TextAlignment.CenterLeft, }; @@ -219,11 +218,11 @@ { if (scene.IconPathType == 0) { - SceneIcon.UnSelectedImagePath = iconPath; + SceneIcon.ImagePath = iconPath; } else { - SceneIcon.UnSelectedImagePath = System.IO.Path.Combine(Config.Instance.FullPath, iconPath); + SceneIcon.ImagePath = System.IO.Path.Combine(Config.Instance.FullPath, iconPath); } } -- Gitblit v1.8.0