diff --git a/Editor/Toolbar/Utilities/Styles.cs b/Editor/Toolbar/Utilities/Styles.cs index cbbb879..18c3f7c 100644 --- a/Editor/Toolbar/Utilities/Styles.cs +++ b/Editor/Toolbar/Utilities/Styles.cs @@ -19,21 +19,25 @@ namespace Module.NavigationTool.Editor.Toolbar return; this.skin = skin; - popup = skin.FindStyle("ToolbarPopup"); - button = skin.FindStyle("toolbarbutton"); - buttonNoPadding = skin.FindStyle("toolbarbutton"); - buttonNoPadding.padding = new RectOffset(); - slider = skin.FindStyle("ToolbarSlider"); - label = skin.FindStyle("ToolbarLabel"); - labelCenter = skin.FindStyle("ToolbarLabel"); - labelCenter.alignment = TextAnchor.MiddleCenter; + popup = new GUIStyle(skin.FindStyle("ToolbarPopup")); + button = new GUIStyle(skin.FindStyle("toolbarbutton")); + slider = new GUIStyle(skin.FindStyle("ToolbarSlider")); + label = new GUIStyle(skin.FindStyle("ToolbarLabel")); + + buttonNoPadding = new GUIStyle(skin.FindStyle("toolbarbutton")) + { + padding = new RectOffset() + }; + + labelCenter = new GUIStyle(skin.FindStyle("ToolbarLabel")) + { + alignment = TextAnchor.MiddleCenter + }; + settingsGroup = new GUIStyle { margin = new RectOffset(8, 0, 8, 0) }; - - // Available: ToolbarBoldLabel, ToolbarBottom, ToolbarButtonLeft, ToolbarButtonRight, ToolbarDropDown, - // ToolbarLabel, ToolbarTextField, ... } } } \ No newline at end of file diff --git a/package.json b/package.json index f249752..25054e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.module.navigationtool", - "version": "1.5.1", + "version": "1.5.2", "displayName": "Module.NavigationTool", "description": "Support for navigation tools, like favorites, history and toolbars", "unity": "2019.2",