From 3b6e911754a6e9ca9a121ac3579ad530df6b9847 Mon Sep 17 00:00:00 2001 From: MUEDSA <7676275+muedsa@users.noreply.github.com> Date: Tue, 9 Apr 2024 19:13:05 +0800 Subject: [PATCH] update: icon for new ui --- settings.gradle | 12 -- .../icons/TextReaderSidebarToolIcons.java | 2 +- src/main/resources/META-INF/plugin.xml | 5 +- src/main/resources/META-INF/pluginIcon.svg | 125 +----------------- .../resources/META-INF/pluginIcon_dark.svg | 124 +---------------- .../TextReaderSidebarToolIconMappings.json | 7 + src/main/resources/icons/bookDead.svg | 1 - src/main/resources/icons/bookDead_dark.svg | 1 - src/main/resources/images/bookSkull.svg | 4 + src/main/resources/images/bookSkull_dark.svg | 4 + src/main/resources/images/expui/bookSkull.svg | 4 + .../resources/images/expui/bookSkull_dark.svg | 4 + 12 files changed, 35 insertions(+), 258 deletions(-) create mode 100644 src/main/resources/TextReaderSidebarToolIconMappings.json delete mode 100644 src/main/resources/icons/bookDead.svg delete mode 100644 src/main/resources/icons/bookDead_dark.svg create mode 100644 src/main/resources/images/bookSkull.svg create mode 100644 src/main/resources/images/bookSkull_dark.svg create mode 100644 src/main/resources/images/expui/bookSkull.svg create mode 100644 src/main/resources/images/expui/bookSkull_dark.svg diff --git a/settings.gradle b/settings.gradle index 2fe4221..8308b98 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,13 +1 @@ -plugins { - id 'com.gradle.enterprise' version '3.17' -} - -gradleEnterprise { - buildScan { - publishAlways() - termsOfServiceUrl = "https://gradle.com/terms-of-service" - termsOfServiceAgree = "yes" - } -} - rootProject.name = 'text-reader-sidebar-tool' diff --git a/src/main/java/icons/TextReaderSidebarToolIcons.java b/src/main/java/icons/TextReaderSidebarToolIcons.java index ce630ee..cb8290b 100644 --- a/src/main/java/icons/TextReaderSidebarToolIcons.java +++ b/src/main/java/icons/TextReaderSidebarToolIcons.java @@ -6,5 +6,5 @@ public interface TextReaderSidebarToolIcons { - Icon BOOK_DEAD = IconLoader.getIcon("/icons/bookDead.svg", TextReaderSidebarToolIcons.class); + Icon BOOK_SKULL = IconLoader.getIcon("/images/bookSkull.svg", TextReaderSidebarToolIcons.class); } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 6f42084..d19748b 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -167,17 +167,18 @@ anchor="bottom" secondary="true" factoryClass="com.muedsa.intellij.textReader.factory.ReaderWindowFactoryImpl" - icon="TextReaderSidebarToolIcons.BOOK_DEAD"/> + icon="TextReaderSidebarToolIcons.BOOK_SKULL"/> + - - - - - - - - - - - - - - - - - - - - - - - - + + + + \ No newline at end of file diff --git a/src/main/resources/META-INF/pluginIcon_dark.svg b/src/main/resources/META-INF/pluginIcon_dark.svg index d1271f3..ea8cf84 100644 --- a/src/main/resources/META-INF/pluginIcon_dark.svg +++ b/src/main/resources/META-INF/pluginIcon_dark.svg @@ -1,120 +1,4 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + \ No newline at end of file diff --git a/src/main/resources/TextReaderSidebarToolIconMappings.json b/src/main/resources/TextReaderSidebarToolIconMappings.json new file mode 100644 index 0000000..073d20f --- /dev/null +++ b/src/main/resources/TextReaderSidebarToolIconMappings.json @@ -0,0 +1,7 @@ +{ + "images": { + "expui": { + "bookSkull.svg": "images/bookSkull.svg" + } + } +} \ No newline at end of file diff --git a/src/main/resources/icons/bookDead.svg b/src/main/resources/icons/bookDead.svg deleted file mode 100644 index 23c0925..0000000 --- a/src/main/resources/icons/bookDead.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/main/resources/icons/bookDead_dark.svg b/src/main/resources/icons/bookDead_dark.svg deleted file mode 100644 index ef3aac8..0000000 --- a/src/main/resources/icons/bookDead_dark.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/main/resources/images/bookSkull.svg b/src/main/resources/images/bookSkull.svg new file mode 100644 index 0000000..31468ad --- /dev/null +++ b/src/main/resources/images/bookSkull.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/main/resources/images/bookSkull_dark.svg b/src/main/resources/images/bookSkull_dark.svg new file mode 100644 index 0000000..ea8cf84 --- /dev/null +++ b/src/main/resources/images/bookSkull_dark.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/main/resources/images/expui/bookSkull.svg b/src/main/resources/images/expui/bookSkull.svg new file mode 100644 index 0000000..d80844f --- /dev/null +++ b/src/main/resources/images/expui/bookSkull.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/main/resources/images/expui/bookSkull_dark.svg b/src/main/resources/images/expui/bookSkull_dark.svg new file mode 100644 index 0000000..a3fdaaa --- /dev/null +++ b/src/main/resources/images/expui/bookSkull_dark.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file