Skip to content

Commit

Permalink
feat: Update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarianZ committed Jul 8, 2024
1 parent 976664d commit 64f2600
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions Editor/ProjectNotesWindow.GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@ private static void TryCreateToolbarEntry(bool forceRecreate = false)
EditorToolbarButton entryButton = new EditorToolbarButton(Open)
{
name = EntryButtonName,
icon = EditorGUIUtility.Load(EditorGUIUtility.isProSkin ? "d_console.infoicon.sml" : "console.infoicon.sml") as Texture2D,
icon = EditorGUIUtility.Load("Clipboard") as Texture2D,
style =
{
marginLeft = 8,
marginRight = 8,
}
{
marginLeft = 8,
marginRight = 8,
}
};
toolbarZonePlayMode.Insert(0, entryButton);

Image entryIconImage = entryButton.Q<Image>();
entryIconImage.style.alignItems = Align.FlexEnd;
entryIconImage.style.width = 14;
entryIconImage.style.height = 14;

_toolbarEntryRedDotIconVisible = false;
_toolbarEntryRedDotIcon = new Image
Expand Down
2 changes: 1 addition & 1 deletion Editor/ProjectNotesWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void OnEditorUpdate()

private void OnEnable()
{
titleContent = EditorGUIUtility.IconContent(EditorGUIUtility.isProSkin ? "d_console.infoicon.sml" : "console.infoicon.sml");
titleContent = EditorGUIUtility.IconContent("Clipboard");
titleContent.text = "Project Notes";
minSize = new Vector2(200, 200);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.greenbamboogames.projectnotes",
"version": "1.0.0",
"version": "1.0.1",
"displayName": "Project Notes!",
"description": "A small tool in Unity Editor to display notes, which can be used to share must-read information within a team.",
"unity": "2021.3",
Expand Down

0 comments on commit 64f2600

Please sign in to comment.