From 06420f1ad404ea844ae5d2f3a0a3f841703632f5 Mon Sep 17 00:00:00 2001 From: Anders Ejlersen Date: Mon, 18 Sep 2023 20:27:58 +0200 Subject: [PATCH] 1.9.2: Scene picker icons in light mode will now be drawn as dark icons, instead of light grey --- CHANGELOG.md | 7 +++++++ Editor/Toolbar/Utilities/Styles.cs | 16 +++++++++++++--- package.json | 2 +- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f11bed2..dbbea49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Change Log All notable changes to this project will be documented in this file. + +## [1.9.2] - 2023-09-18 + +### Changed +- Scene picker icons in light mode will now be drawn as dark icons, instead of light grey + + ## [1.9.1] - 2023-09-10 ### Fixed diff --git a/Editor/Toolbar/Utilities/Styles.cs b/Editor/Toolbar/Utilities/Styles.cs index 0ab72fc..d6a48d8 100644 --- a/Editor/Toolbar/Utilities/Styles.cs +++ b/Editor/Toolbar/Utilities/Styles.cs @@ -59,9 +59,19 @@ namespace Module.NavigationTool.Editor.Toolbar margin = new RectOffset(8, 0, 8, 0) }; - iconPlusSmall = EditorGUIUtility.IconContent("d_CreateAddNew"); - iconSceneAdditive = EditorGUIUtility.IconContent("d_winbtn_win_restore_h"); - iconSceneSingle = EditorGUIUtility.IconContent("d_winbtn_win_max_h"); + if (EditorGUIUtility.isProSkin) + { + iconPlusSmall = EditorGUIUtility.IconContent("d_CreateAddNew"); + iconSceneAdditive = EditorGUIUtility.IconContent("d_winbtn_win_restore_h"); + iconSceneSingle = EditorGUIUtility.IconContent("d_winbtn_win_max_h"); + } + else + { + iconPlusSmall = EditorGUIUtility.IconContent("CreateAddNew"); + iconSceneAdditive = EditorGUIUtility.IconContent("winbtn_win_restore_h"); + iconSceneSingle = EditorGUIUtility.IconContent("winbtn_win_max_h"); + } + iconDisconnect = EditorGUIUtility.IconContent("d_CacheServerDisconnected"); iconProject = EditorGUIUtility.IconContent("Project"); iconSettings = new GUIContent(EditorGUIUtility.IconContent("Settings")); diff --git a/package.json b/package.json index 0da2ccf..3de848f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.module.navigationtool", - "version": "1.9.1", + "version": "1.9.2", "displayName": "Module.NavigationTool", "description": "Support for navigation tools, like favorites, history and toolbars", "unity": "2019.2",