feat: expand AppSettings with appearance and board default fields

This commit is contained in:
Your Name
2026-02-15 20:23:47 +02:00
parent d6d0b8731b
commit afeebe2381
2 changed files with 10 additions and 0 deletions

View File

@@ -58,4 +58,8 @@ export const appSettingsSchema = z.object({
theme: z.enum(["light", "dark", "system"]).default("system"), theme: z.enum(["light", "dark", "system"]).default("system"),
dataDirectory: z.string().nullable().default(null), dataDirectory: z.string().nullable().default(null),
recentBoardIds: z.array(z.string()).default([]), recentBoardIds: z.array(z.string()).default([]),
accentColor: z.string().default("160"),
uiZoom: z.number().min(0.75).max(1.5).default(1),
density: z.enum(["compact", "comfortable", "spacious"]).default("comfortable"),
defaultColumnWidth: z.enum(["narrow", "standard", "wide"]).default("standard"),
}); });

View File

@@ -1,5 +1,11 @@
import type { ColumnWidth } from "./board";
export interface AppSettings { export interface AppSettings {
theme: "light" | "dark" | "system"; theme: "light" | "dark" | "system";
dataDirectory: string | null; dataDirectory: string | null;
recentBoardIds: string[]; recentBoardIds: string[];
accentColor: string;
uiZoom: number;
density: "compact" | "comfortable" | "spacious";
defaultColumnWidth: ColumnWidth;
} }