feat: add custom tag icons and colors

This commit is contained in:
Blake Boone
2026-09-21 09:08:33 +00:00
committed by Yuri Karamian
parent 2983e3db29
commit 245cdacb68
18 changed files with 1289 additions and 93 deletions
+9 -2
View File
@@ -10,9 +10,10 @@
activeNotePath,
editorDirty,
readOnly,
sourceMode
sourceMode,
tagStyles
} from '$lib/stores/app';
import { readNote } from '$lib/api';
import { getTagStyles, readNote } from '$lib/api';
import { keybindings, matchAction } from '$lib/keybindings';
import type { FileEvent } from '$lib/types';
@@ -85,6 +86,12 @@
});
await applyUiScale($appConfig?.ui_scale ?? 1);
try {
$tagStyles = await getTagStyles();
} catch (e) {
console.error('Failed to load tag styles:', e);
}
try {
const content = await readNote(notePath);
$activeNote = content;