Skip to content

Commit 41f13bd

Browse files
committed
replacing glyph-quote icon with custom svg hackernews icon.
1 parent 39a06f2 commit 41f13bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/_constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import t from 'src/l10n/helpers';
33

44
export const VIEW_TYPE = 'dictionary-view';
55
export const VIEW_DISPLAY_TEXT = t('HackerNews');
6-
export const VIEW_ICON = 'quote-glyph';
6+
export const VIEW_ICON = 'hackernews';
77

88
export const LANGUAGES = {
99
"en_US": "English (US)",

src/ui/icons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { addIcon } from 'obsidian';
33
export const icons: Record<string, string> = {
44
copy: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" fill-opacity="0.0" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>`,
55
synonyms: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" fill-opacity="0.0" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>`,
6+
hackernews: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 24" fill="none" fill-opacity="0.0" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-book-open"><path d="M21.27,0c-1.174,2.021-5.5,9.464-5.532,9.499h-0.11C15.595,9.464,11.424,2.073,10.253,0H3.148l9.253,15.034v15.927h6.157 V15.034L27.812,0H21.27z"/></svg>`,
67
};
78

89
export const addIcons = (): void => {

0 commit comments

Comments
 (0)