From e4f7080639ee8cbc71172e5202f953924cedc074 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 12 十月 2023 16:37:40 +0800 Subject: [PATCH] 2023年10月12日16:37:10 --- HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs | 30 ++++++++++++++++++++++++++---- 1 files changed, 26 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs index 5279b01..8fda857 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs @@ -74,7 +74,7 @@ /// </summary> public List<KeypadEntity> GetTestList() { - return AksCommonMethod.Current.GetTYYKeypadList(); + return AksCommonMethod.Current.GetTYYKeypadList(null); } /// <summary> @@ -125,9 +125,17 @@ line++; xCount = 0; } + //涓嶆敮鎸佹寜閿偣鍑昏儗鏅鑹� + if (!keypad.isClicked) + { + buttonFram.Enable = false; + buttonFram.GetImageButton().Enable = false; + buttonFram.GetNameButton().Enable = false; + buttonFram.BackgroundColor = AksCommonMethod.unBackgroundColor; + } buttonFram.SetClickListener((fl, btnIcon, btnName) => { - if (buttonFram.Tag != null&& buttonFram.Tag is KeypadEntity) + if (buttonFram.Tag != null && buttonFram.Tag is KeypadEntity) { selectKeyAction?.Invoke((KeypadEntity)buttonFram.Tag); } @@ -205,7 +213,14 @@ currnetheightValue += ButtonFramLayout.heightFrameLayout; currnetWidthValue = 0; } - + //涓嶆敮鎸佹寜閿偣鍑昏儗鏅鑹� + if (!keypad.isClicked) + { + buttonFram.Enable = false; + buttonFram.GetImageButton().Enable = false; + buttonFram.GetNameButton().Enable = false; + buttonFram.BackgroundColor = AksCommonMethod.unBackgroundColor; + } buttonFram.SetClickListener((fl, btnIcon, btnName) => { if (buttonFram.Tag != null&& buttonFram.Tag is KeypadEntity) @@ -258,8 +273,9 @@ IsBold = true, Tag = keypad, BackgroundColor = MusicColor.WhiteColor, - SelectedBackgroundColor = 0xFFEFEFEF, + SelectedBackgroundColor = 0xFFF2F3F7, Radius = (uint)Application.GetRealHeight(8), + SelectedTextColor = MusicColor.TextColor, }; this.AddChidren(button); @@ -269,6 +285,12 @@ currnetheightValue += heightMaxValue; currnetWidthValue = 0; } + //涓嶆敮鎸佹寜閿偣鍑昏儗鏅鑹� + if (!keypad.isClicked) + { + button.Enable = false; + button.BackgroundColor = AksCommonMethod.unBackgroundColor; + } button.MouseDownEventHandler += (sen, e) => { if (button.Tag == null || ((KeypadEntity)button.Tag).keypad == "none") -- Gitblit v1.8.0