mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-09-23 03:17:29 +02:00
feat: add custom tag icons and colors
This commit is contained in:
committed by
Yuri Karamian
parent
2983e3db29
commit
245cdacb68
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user