feat: expand AppSettings with appearance and board default fields
This commit is contained in:
@@ -58,4 +58,8 @@ export const appSettingsSchema = z.object({
|
||||
theme: z.enum(["light", "dark", "system"]).default("system"),
|
||||
dataDirectory: z.string().nullable().default(null),
|
||||
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"),
|
||||
});
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
import type { ColumnWidth } from "./board";
|
||||
|
||||
export interface AppSettings {
|
||||
theme: "light" | "dark" | "system";
|
||||
dataDirectory: string | null;
|
||||
recentBoardIds: string[];
|
||||
accentColor: string;
|
||||
uiZoom: number;
|
||||
density: "compact" | "comfortable" | "spacious";
|
||||
defaultColumnWidth: ColumnWidth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user