From 0741b4685e6b5959964daa86b55167a507521911 Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Mon, 23 Dec 2024 23:34:08 +0100 Subject: [PATCH] [icons] New UI icon for Spellchecker GitOrigin-RevId: 0b2cf33e2f336c8767d5712f30baf1393e4db271 --- spellchecker/gen/icons/SpellcheckerIcons.java | 5 +---- spellchecker/resources/SpellcheckerIconMappings.json | 1 + spellchecker/resources/icons/newui/addToDictionary.svg | 7 +++++++ .../resources/icons/newui/addToDictionary_dark.svg | 7 +++++++ 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 spellchecker/resources/icons/newui/addToDictionary.svg create mode 100644 spellchecker/resources/icons/newui/addToDictionary_dark.svg diff --git a/spellchecker/gen/icons/SpellcheckerIcons.java b/spellchecker/gen/icons/SpellcheckerIcons.java index 4499422f68c7..fb859c8508ac 100644 --- a/spellchecker/gen/icons/SpellcheckerIcons.java +++ b/spellchecker/gen/icons/SpellcheckerIcons.java @@ -11,12 +11,9 @@ import javax.swing.*; * DO NOT EDIT IT BY HAND, run "Generate icon classes" configuration instead */ public final class SpellcheckerIcons { - private static @NotNull Icon load(@NotNull String path, int cacheKey, int flags) { - return IconManager.getInstance().loadRasterizedIcon(path, SpellcheckerIcons.class.getClassLoader(), cacheKey, flags); - } private static @NotNull Icon load(@NotNull String expUIPath, @NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, expUIPath, SpellcheckerIcons.class.getClassLoader(), cacheKey, flags); } /** 16x16 */ public static final @NotNull Icon Dictionary = load("icons/newui/dictionary.svg", "icons/dictionary.svg", -2094657776, 2); - /** 16x16 */ public static final @NotNull Icon Spellcheck = load("icons/spellcheck.svg", 1919442669, 2); + /** 16x16 */ public static final @NotNull Icon Spellcheck = load("icons/newui/addToDictionary.svg", "icons/spellcheck.svg", 1919442669, 2); } diff --git a/spellchecker/resources/SpellcheckerIconMappings.json b/spellchecker/resources/SpellcheckerIconMappings.json index 3e70d64c955b..35f9db08b610 100644 --- a/spellchecker/resources/SpellcheckerIconMappings.json +++ b/spellchecker/resources/SpellcheckerIconMappings.json @@ -1,6 +1,7 @@ { "icons": { "newui": { + "addToDictionary.svg": "icons/spellcheck.svg", "dictionary.svg": "icons/dictionary.svg" } } diff --git a/spellchecker/resources/icons/newui/addToDictionary.svg b/spellchecker/resources/icons/newui/addToDictionary.svg new file mode 100644 index 000000000000..a9d1722be3ed --- /dev/null +++ b/spellchecker/resources/icons/newui/addToDictionary.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/spellchecker/resources/icons/newui/addToDictionary_dark.svg b/spellchecker/resources/icons/newui/addToDictionary_dark.svg new file mode 100644 index 000000000000..877909828917 --- /dev/null +++ b/spellchecker/resources/icons/newui/addToDictionary_dark.svg @@ -0,0 +1,7 @@ + + + + + + +