From 475fb58caaf1d52afe697fab6a1dd0a5a3f92798 Mon Sep 17 00:00:00 2001 From: Mykhailo Lytvyn Date: Mon, 5 Feb 2024 22:55:18 +0100 Subject: [PATCH] #1000 | Added custom icon for `hybrislicence.jar` --- CHANGELOG.md | 1 + resources/icons/hybrisLicenceIcon.svg | 19 +++++++++++++++++++ resources/icons/hybrisLicenceIcon_dark.svg | 19 +++++++++++++++++++ .../plugin/hybris/common/HybrisConstants.kt | 1 + .../plugin/hybris/common/utils/HybrisIcons.kt | 1 + .../project/HybrisProjectIconProvider.kt | 1 + 6 files changed, 42 insertions(+) create mode 100644 resources/icons/hybrisLicenceIcon.svg create mode 100644 resources/icons/hybrisLicenceIcon_dark.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d597ce00..a01a4767c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Group all non-hybris gradle, ant, eclipse and maven modules in project view panel [#967](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/967) | [#975](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/975) | [#980](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/980) - Use blue logo for custom module groups in the project view [#973](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/973) - Show globe icon for localized attributes in the code completion pane [#999](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/999) +- Added custom icon for `hybrislicence.jar` [#1000](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/1000) ### `Remote Connection` enhancements - Introduced `Project` and `Personal` scope for remote connections [#971](https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/971) diff --git a/resources/icons/hybrisLicenceIcon.svg b/resources/icons/hybrisLicenceIcon.svg new file mode 100644 index 000000000..602cc0d7f --- /dev/null +++ b/resources/icons/hybrisLicenceIcon.svg @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/resources/icons/hybrisLicenceIcon_dark.svg b/resources/icons/hybrisLicenceIcon_dark.svg new file mode 100644 index 000000000..b06b496f0 --- /dev/null +++ b/resources/icons/hybrisLicenceIcon_dark.svg @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/src/com/intellij/idea/plugin/hybris/common/HybrisConstants.kt b/src/com/intellij/idea/plugin/hybris/common/HybrisConstants.kt index 41c25282c..c3b9e9ba1 100644 --- a/src/com/intellij/idea/plugin/hybris/common/HybrisConstants.kt +++ b/src/com/intellij/idea/plugin/hybris/common/HybrisConstants.kt @@ -94,6 +94,7 @@ object HybrisConstants { const val EXTENSION_INFO_XML = "extensioninfo.xml" const val EXTENSIONS_XML = "extensions.xml" const val COCKPIT_NG_DEFINITION_XML = "definition.xml" + const val HYBRIS_LICENCE_JAR = "hybrislicence.jar" const val HYBRIS_DIRECTORY = "hybris" const val HYBRIS_DATA_DIRECTORY = "data" diff --git a/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt b/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt index 9e5bccf8c..fc115549e 100644 --- a/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt +++ b/src/com/intellij/idea/plugin/hybris/common/utils/HybrisIcons.kt @@ -44,6 +44,7 @@ object HybrisIcons { val DECLARATION = getIcon("/icons/declaration.svg") + val Y_LICENCE = getIcon("/icons/hybrisLicenceIcon.svg") val Y_LOGO_BLUE = getIcon("/icons/hybrisIcon.svg") val Y_LOGO_ORANGE = getIcon("/icons/hybrisIconOrange.svg") val Y_LOGO_GREEN = getIcon("/icons/hybrisIconGreen.svg") diff --git a/src/com/intellij/idea/plugin/hybris/project/HybrisProjectIconProvider.kt b/src/com/intellij/idea/plugin/hybris/project/HybrisProjectIconProvider.kt index 1f3832d7b..e21341019 100644 --- a/src/com/intellij/idea/plugin/hybris/project/HybrisProjectIconProvider.kt +++ b/src/com/intellij/idea/plugin/hybris/project/HybrisProjectIconProvider.kt @@ -32,6 +32,7 @@ class HybrisProjectIconProvider : IconProvider() { file.name == HybrisConstants.BUILD_CALLBACKS_XML -> HybrisIcons.BUILD_CALLBACKS file.name == HybrisConstants.UNMANAGED_DEPENDENCIES_TXT -> HybrisIcons.UNMANAGED_DEPENDENCIES file.name == HybrisConstants.EXTERNAL_DEPENDENCIES_XML -> HybrisIcons.EXTERNAL_DEPENDENCIES + file.name == HybrisConstants.HYBRIS_LICENCE_JAR -> HybrisIcons.Y_LICENCE file.name.endsWith(HybrisConstants.IMPORT_OVERRIDE_FILENAME) -> HybrisIcons.PLUGIN_SETTINGS else -> null }