wjc
2023-07-26 9508510f0b27da3278fa1161eb2ba3dd1e3e2030
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()
@@ -170,10 +172,10 @@
            var btnSetting = new Button()
            {
                X = Application.GetRealWidth(337-37),
                Y = Application.GetRealHeight(10),
                Y = Application.GetRealHeight(20),
                Width = Application.GetMinRealAverage(28+37),
                Height = Application.GetMinRealAverage(28+19),
                Text = "组合调光",
                TextID = StringId.CombinedDimming,
                TextSize = CSS_FontSize.TextFontSize,
                TextColor = CSS_Color.MainColor,
                IsMoreLines = true
@@ -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,