From e8147ceaf39253db2c9e6cfe023b505f71ec7ba5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 24 八月 2023 17:48:30 +0800
Subject: [PATCH] 备份2

---
 OnPro/HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 35a7de9..c89937b 100644
--- a/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -500,10 +500,8 @@
 
                     btnChangeFunction.IsSelected = true;
                     btnChangeFunction.TextSize = CSS.CSS_FontSize.HeadlineFontSize;
-                    btnChangeFunction.IsBold = true;
                     btnChangeScene.TextSize = CSS.CSS_FontSize.TextFontSize;
                     btnChangeScene.IsSelected = false;
-                    btnChangeScene.IsBold = false;
                     CurShowTypeContent = 0;
                     contentView.PageIndex = 0;
                 };
@@ -512,10 +510,8 @@
                 {
                     btnChangeScene.IsSelected = true;
                     btnChangeScene.TextSize = CSS.CSS_FontSize.HeadlineFontSize;
-                    btnChangeScene.IsBold = true;
                     btnChangeFunction.TextSize = CSS.CSS_FontSize.TextFontSize;
                     btnChangeFunction.IsSelected = false;
-                    btnChangeFunction.IsBold = false;
                     CurShowTypeContent = 1;
                     contentView.PageIndex = 1;
                 };
@@ -526,19 +522,15 @@
                     {
                         btnChangeFunction.IsSelected = true;
                         btnChangeFunction.TextSize = CSS.CSS_FontSize.HeadlineFontSize;
-                        btnChangeFunction.IsBold = true;
                         btnChangeScene.TextSize = CSS.CSS_FontSize.TextFontSize;
                         btnChangeScene.IsSelected = false;
-                        btnChangeScene.IsBold = false;
                     }
                     else if (contentView.PageIndex == 1)
                     {
                         btnChangeScene.IsSelected = true;
                         btnChangeScene.TextSize = CSS.CSS_FontSize.HeadlineFontSize;
-                        btnChangeScene.IsBold = true;
                         btnChangeFunction.TextSize = CSS.CSS_FontSize.TextFontSize;
                         btnChangeFunction.IsSelected = false;
-                        btnChangeFunction.IsBold = false;
                     }
                 };
 
@@ -758,12 +750,13 @@
                         Width = Application.GetRealWidth(164),
                         Height = Application.GetRealWidth(122),
                         Tag = scene.sid,
-                        BackgroundImagePath = scene.ImagePath,
+                        Radius = (uint)Application.GetRealWidth(12),
+                        BorderColor = 0x00000000,
+                        BorderWidth = 1,
                     };
                     rowView.AddChidren(functionView);
 
                     //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶
-                    ImageUtlis.Current.LoadLocalOrNetworkImages((scene as Scene).ImagePath, functionView);
 
                     LoadSceneFunctionDiv( functionView, scene);
                     index++;
@@ -993,9 +986,21 @@
         {
             try
             {
+                var btnSceneGg = new ImageView()
+                {
+                    Radius = (uint)Application.GetRealWidth(12),
+                    BorderColor = 0x00000000,
+                    BorderWidth = 1,
+                };
+                view.AddChidren(btnSceneGg);
+                ImageUtlis.Current.LoadLocalOrNetworkImages((scene as Scene).ImagePath, btnSceneGg);
+
+
                 Button btnCoverd = new Button()
                 {
-                    UnSelectedImagePath = "Collection/SceneCovered.png",
+                    //UnSelectedImagePath = "Collection/SceneCovered.png",
+                    Radius = (uint)Application.GetRealWidth(12),
+                    BackgroundColor = 0x44000000,
                 };
                 view.AddChidren(btnCoverd);
 
@@ -1087,9 +1092,8 @@
                     {
                         btnName.Text = scene.name;
                         btnZone.Text = scene.GetRoomListName();
-                        //view.BackgroundImagePath = (scene as Scene).ImagePath;
                         //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶
-                        ImageUtlis.Current.LoadLocalOrNetworkImages((scene as Scene).ImagePath, view);
+                        ImageUtlis.Current.LoadLocalOrNetworkImages(scene.ImagePath, btnSceneGg);
                     };
                     var aep = new SceneEditPage(scene, backAction);
                     MainPage.BasePageView.AddChidren(aep);

--
Gitblit v1.8.0