From 9508510f0b27da3278fa1161eb2ba3dd1e3e2030 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 26 七月 2023 13:14:00 +0800
Subject: [PATCH] 2023年07月26日13:12:21

---
 HDL_ON/UI/UI0-Public/TopViewDiv.cs |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
index 7951076..572cffe 100644
--- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs
+++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -26,6 +26,7 @@
         /// </summary>
         Button btnBack;
 
+        public Button btnTilte;
         /// <summary>
         /// 鏍囬鍚嶇О
         /// </summary>
@@ -79,7 +80,7 @@
         /// </summary>
         /// <param name="frame"></param>
         /// <param name="tilte"></param>
-        public void LoadTopView(uint color = CSS_Color.TopViewColor)
+        public void LoadTopView(uint color = CSS_Color.TopViewColor)//,Action<List<Function> action
         {
             contentView = new FrameLayout()
             {
@@ -98,7 +99,7 @@
             };
             contentView.AddChidren(btnBackIcon);
 
-            Button btnTilte = new Button()
+            btnTilte = new Button()
             {
                 Gravity = Gravity.CenterHorizontal,
                 Y = Application.GetRealHeight(30),
@@ -110,6 +111,7 @@
                 Text = title
             };
             contentView.AddChidren(btnTilte);
+           
 
 
             btnBack = new Button()
@@ -223,6 +225,8 @@
             };
         }
 
+
+
         /// <summary>
         /// 鎴块棿鏍囬鍖哄煙
         /// </summary>
@@ -259,17 +263,17 @@
         /// <param name="room"></param>
         /// <param name="skipAction"></param>
         /// <param name="text"></param>
-        public void LoadTopView_SettingText(Action skipAction,string text)
+        public void LoadTopView_SettingText(Action skipAction,string text,bool isDelColor = false)
         {
             LoadTopView();
             
             var btnSetting = new Button()
             {
-                X = Application.GetRealWidth(337-100),
+                X = Application.GetRealWidth(355-100),
                 Y = Application.GetRealHeight(29),
                 Width = Application.GetMinRealAverage(100),
                 Height = Application.GetMinRealAverage(28),
-                TextColor = CSS_Color.MainColor,
+                TextColor = isDelColor ?CSS_Color.WarningColor: CSS_Color.MainColor,
                 TextSize = CSS_FontSize.TextFontSize,
                 TextAlignment = TextAlignment.CenterRight,
                 Text = text,

--
Gitblit v1.8.0