Skip to content

Commit 5f65d52

Browse files
committed
Add baidu icon of light mode
1 parent dc08a9a commit 5f65d52

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/main/java/icons/PluginIcons.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@
2424
* @author airsaid
2525
*/
2626
public interface PluginIcons {
27-
Icon TRANSLATE_ACTION_ICON = IconLoader.getIcon("/icons/icon_translate.svg");
28-
Icon GOOGLE_ICON = IconLoader.getIcon("/icons/icon_google.svg");
29-
Icon BAIDU_ICON = IconLoader.getIcon("/icons/icon_baidu.svg");
30-
Icon YOUDAO_ICON = IconLoader.getIcon("/icons/icon_youdao.svg");
31-
Icon MICROSOFT_ICON = IconLoader.getIcon("/icons/icon_microsoft.svg");
27+
Icon TRANSLATE_ACTION_ICON = load("/icons/icon_translate.svg");
28+
Icon GOOGLE_ICON = load("/icons/icon_google.svg");
29+
Icon BAIDU_ICON = load("/icons/icon_baidu.svg");
30+
Icon YOUDAO_ICON = load("/icons/icon_youdao.svg");
31+
Icon MICROSOFT_ICON = load("/icons/icon_microsoft.svg");
32+
33+
private static Icon load(String path) {
34+
return IconLoader.getIcon(path, PluginIcons.class);
35+
}
3236
}
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)