From fee71af24553a6b0a731bfdca8976fbc58bf88c1 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sun, 19 Feb 2023 23:05:07 +0000 Subject: [PATCH] Change icon --- .../plugins/credentials/CredentialsDescriptor.java | 2 +- .../credentials/CredentialsParameterValue.java | 2 +- .../plugins/credentials/CredentialsProvider.java | 2 +- .../plugins/credentials/CredentialsStoreAction.java | 2 +- .../credentials/GlobalCredentialsConfiguration.java | 2 +- .../credentials/ManageCredentialsConfiguration.java | 2 +- .../plugins/credentials/ViewCredentialsAction.java | 4 ++-- .../images/symbols/credential-providers.svg | 12 ++++++++++++ src/main/resources/images/symbols/credentials.svg | 7 +++++++ 9 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 src/main/resources/images/symbols/credential-providers.svg create mode 100644 src/main/resources/images/symbols/credentials.svg diff --git a/src/main/java/com/cloudbees/plugins/credentials/CredentialsDescriptor.java b/src/main/java/com/cloudbees/plugins/credentials/CredentialsDescriptor.java index 0b721f63a..ce04bb420 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/CredentialsDescriptor.java +++ b/src/main/java/com/cloudbees/plugins/credentials/CredentialsDescriptor.java @@ -243,7 +243,7 @@ public String getCredentialsPage() { * @since 1.25 */ public String getIconClassName() { - return "symbol-key"; + return "symbol-credentials plugin-credentials"; } /** diff --git a/src/main/java/com/cloudbees/plugins/credentials/CredentialsParameterValue.java b/src/main/java/com/cloudbees/plugins/credentials/CredentialsParameterValue.java index ca5a2ab27..170e8760c 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/CredentialsParameterValue.java +++ b/src/main/java/com/cloudbees/plugins/credentials/CredentialsParameterValue.java @@ -156,7 +156,7 @@ public String iconClassName() { if (c != null) { return c.getDescriptor().getIconClassName(); } - return "symbol-key"; + return "symbol-credentials plugin-credentials"; } public String url() { diff --git a/src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java b/src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java index 8dab91aa9..743936be1 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java +++ b/src/main/java/com/cloudbees/plugins/credentials/CredentialsProvider.java @@ -1092,7 +1092,7 @@ public String getDisplayName() { */ @Override public String getIconClassName() { - return "symbol-key"; + return "symbol-credentials plugin-credentials"; } /** diff --git a/src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java b/src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java index 0f523bc64..f58366dda 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java +++ b/src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java @@ -398,7 +398,7 @@ public boolean isVisible() { @Override public String getIconClassName() { return isVisible() - ? "symbol-key" + ? "symbol-credentials plugin-credentials" : null; } diff --git a/src/main/java/com/cloudbees/plugins/credentials/GlobalCredentialsConfiguration.java b/src/main/java/com/cloudbees/plugins/credentials/GlobalCredentialsConfiguration.java index 88c50044e..564c0ac2e 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/GlobalCredentialsConfiguration.java +++ b/src/main/java/com/cloudbees/plugins/credentials/GlobalCredentialsConfiguration.java @@ -78,7 +78,7 @@ public class GlobalCredentialsConfiguration extends ManagementLink public String getIconFileName() { return ExtensionList.lookup(CredentialsDescriptor.class).isEmpty() ? null - : "symbol-key"; + : "symbol-credential-providers plugin-credentials"; } /** diff --git a/src/main/java/com/cloudbees/plugins/credentials/ManageCredentialsConfiguration.java b/src/main/java/com/cloudbees/plugins/credentials/ManageCredentialsConfiguration.java index e074a5cd8..1b59455de 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/ManageCredentialsConfiguration.java +++ b/src/main/java/com/cloudbees/plugins/credentials/ManageCredentialsConfiguration.java @@ -22,7 +22,7 @@ public String getCategoryName() { @Override public String getIconFileName() { - return "symbol-key"; + return "symbol-credentials plugin-credentials"; } @Override diff --git a/src/main/java/com/cloudbees/plugins/credentials/ViewCredentialsAction.java b/src/main/java/com/cloudbees/plugins/credentials/ViewCredentialsAction.java index 0b50ddef3..8126ce6bc 100644 --- a/src/main/java/com/cloudbees/plugins/credentials/ViewCredentialsAction.java +++ b/src/main/java/com/cloudbees/plugins/credentials/ViewCredentialsAction.java @@ -112,7 +112,7 @@ public ModelObject getContext() { @Override public String getIconFileName() { return isVisible() - ? "symbol-key" + ? "symbol-credentials plugin-credentials" : null; } @@ -295,7 +295,7 @@ public List getTableEntries() { @Override public String getIconClassName() { return isVisible() - ? "symbol-key" + ? "symbol-credentials plugin-credentials" : null; } diff --git a/src/main/resources/images/symbols/credential-providers.svg b/src/main/resources/images/symbols/credential-providers.svg new file mode 100644 index 000000000..37f62bea2 --- /dev/null +++ b/src/main/resources/images/symbols/credential-providers.svg @@ -0,0 +1,12 @@ + + + + + + + diff --git a/src/main/resources/images/symbols/credentials.svg b/src/main/resources/images/symbols/credentials.svg new file mode 100644 index 000000000..abe6e9fa3 --- /dev/null +++ b/src/main/resources/images/symbols/credentials.svg @@ -0,0 +1,7 @@ + + + + +