From 21acf4b2157e86788f59ef6bc54c45f08596514e Mon Sep 17 00:00:00 2001 From: Eideren Date: Mon, 15 Jul 2024 05:50:31 +0200 Subject: [PATCH 1/2] [GUI] Fix for warning and missing close icon under Unity 2023 --- Plugins/Editor/Resources/GUI/WinBtnClose.png | Bin 0 -> 425 bytes .../Editor/Resources/GUI/WinBtnClose.png.meta | 115 ++++++++++++++++++ .../GUI/EditModeGUI/EditModeSelection.GUI.cs | 2 +- .../EditModes/EditMode.Clip.GUI.cs | 2 +- .../EditModes/EditMode.Edit.GUI.cs | 2 +- .../EditModes/EditMode.Generate.GUI.cs | 2 +- .../EditModes/EditMode.Place.GUI.cs | 2 +- .../EditModes/EditMode.Surface.GUI.cs | 2 +- .../View/GUI/Utility/CSG_GUIStyleUtility.cs | 17 +++ 9 files changed, 138 insertions(+), 6 deletions(-) create mode 100644 Plugins/Editor/Resources/GUI/WinBtnClose.png create mode 100644 Plugins/Editor/Resources/GUI/WinBtnClose.png.meta diff --git a/Plugins/Editor/Resources/GUI/WinBtnClose.png b/Plugins/Editor/Resources/GUI/WinBtnClose.png new file mode 100644 index 0000000000000000000000000000000000000000..10c0b33f680e44418805319d7fae6960a090c541 GIT binary patch literal 425 zcmV;a0apHrP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0X|7YK~z{r?Ug^P z!Y~xYTeo!gI|v1b;#Mg5MnABtAas*1BJ?x7x3}A?=aegmHvbpF{2(+Wx%ZqjH*J5`SSrX!Sj5u*NK%PyYz61Up$S~GGsG!OdWbh6;w0!pBRikL zn~+`@UIw0yfV=PI7&aW^+`PyWX9EjG*x;@=>~k#C#OGf_7l9ZPMgu;HLroZKfPXbS zoDy;lMfrp7ToV#&MQZ@ny+SLH^y0c3{C("GUI/WinBtnClose"); + winBtnClose.onActive.background = + winBtnClose.onFocused.background = + winBtnClose.onNormal.background = + winBtnClose.onHover.background = + winBtnClose.hover.background = + winBtnClose.focused.background = + winBtnClose.active.background = null; + winBtnClose.fixedHeight = 16f; + winBtnClose.fixedWidth = 16f; + winBtnClose.overflow.bottom = 0; + winBtnClose.overflow.top = 0; + winBtnClose.overflow.right = 0; + winBtnClose.overflow.left = 0; var redToolbarDropDown = GetStyle("toolbarDropDown"); From 8171fa06def42f44b036471dcf9e83ae884c3491 Mon Sep 17 00:00:00 2001 From: Eideren Date: Mon, 15 Jul 2024 05:52:44 +0200 Subject: [PATCH 2/2] Space -> tabs --- Plugins/Editor/Scripts/View/GUI/Utility/CSG_GUIStyleUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Editor/Scripts/View/GUI/Utility/CSG_GUIStyleUtility.cs b/Plugins/Editor/Scripts/View/GUI/Utility/CSG_GUIStyleUtility.cs index 63497da..5e1cc50 100644 --- a/Plugins/Editor/Scripts/View/GUI/Utility/CSG_GUIStyleUtility.cs +++ b/Plugins/Editor/Scripts/View/GUI/Utility/CSG_GUIStyleUtility.cs @@ -92,7 +92,7 @@ internal static class CSG_GUIStyleUtility public static GUIStyle unpaddedWindow; - public static GUIStyle winBtnClose; + public static GUIStyle winBtnClose; public static GUILayoutOption[] ContentEmpty = new GUILayoutOption[0];