From 1868acbe9a798513e9f2e0eac52cd566d00e5792 Mon Sep 17 00:00:00 2001 From: Jak Boulton Date: Fri, 11 Aug 2023 13:40:47 +0100 Subject: [PATCH] Swapped AdvancedDropdownGUI.toolbarSearchField to use EditorStyles directly - rather than being initialised via string --- .../Editor/Internal/AdvancedDropdown/AdvancedDropdownGUI.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/AdvancedDropdown/AdvancedDropdownGUI.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/AdvancedDropdown/AdvancedDropdownGUI.cs index 46520144f9..0f2a0c0c90 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/AdvancedDropdown/AdvancedDropdownGUI.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/Internal/AdvancedDropdown/AdvancedDropdownGUI.cs @@ -10,11 +10,7 @@ internal class AdvancedDropdownGUI { private static class Styles { -#if UNITY_2023_2_OR_NEWER || UNITY_2021_3_28 || UNITY_2022_3_1 - public static readonly GUIStyle toolbarSearchField = "ToolbarSearchTextField"; -#else - public static readonly GUIStyle toolbarSearchField = "ToolbarSeachTextField"; -#endif + public static readonly GUIStyle toolbarSearchField = EditorStyles.toolbarSearchField; public static readonly GUIStyle itemStyle = new GUIStyle("PR Label") .WithAlignment(TextAnchor.MiddleLeft) .WithPadding(new RectOffset())