aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/store.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-17 15:06:42 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-17 15:06:42 -0800
commit95ed6be5c6539d3b5c44fd8505f82cf0e45a7ebc (patch)
treef28828784e45dc4073b5176d6585c83bc1f8d27e /frontend-vanilla/src/store.ts
parent7ad8d0079a09e234cb1b01db47957b16e36c8c07 (diff)
downloadneko-95ed6be5c6539d3b5c44fd8505f82cf0e45a7ebc.tar.gz
neko-95ed6be5c6539d3b5c44fd8505f82cf0e45a7ebc.tar.bz2
neko-95ed6be5c6539d3b5c44fd8505f82cf0e45a7ebc.zip
Refine Settings UI: Fix dark mode text colors, split font controls for headers and body, update monospace stack, and soft-deprecate tags
Diffstat (limited to 'frontend-vanilla/src/store.ts')
-rw-r--r--frontend-vanilla/src/store.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend-vanilla/src/store.ts b/frontend-vanilla/src/store.ts
index c92059a..dc79339 100644
--- a/frontend-vanilla/src/store.ts
+++ b/frontend-vanilla/src/store.ts
@@ -33,6 +33,7 @@ export class Store extends EventTarget {
hasMore: boolean = true;
theme: string = localStorage.getItem('neko-theme') || 'light';
fontTheme: string = localStorage.getItem('neko-font-theme') || 'default';
+ headingFontTheme: string = localStorage.getItem('neko-heading-font-theme') || 'default';
sidebarVisible: boolean = getInitialSidebarVisible();
setFeeds(feeds: Feed[]) {
@@ -101,6 +102,12 @@ export class Store extends EventTarget {
this.emit('theme-updated');
}
+ setHeadingFontTheme(theme: string) {
+ this.headingFontTheme = theme;
+ localStorage.setItem('neko-heading-font-theme', theme);
+ this.emit('theme-updated');
+ }
+
setSidebarVisible(visible: boolean) {
this.sidebarVisible = visible;
setSidebarCookie(visible);