This commit is contained in:
2025-10-15 16:52:39 +02:00
parent 1015e9e18f
commit 1b35c4ccc1
26 changed files with 1078 additions and 433 deletions

View File

@ -2,6 +2,8 @@ import { writable } from 'svelte/store';
const STORAGE_KEY = 'editorSettings';
export type Theme = 'dark' | 'light';
export interface EditorSettings {
fontSize: number;
fontFamily: string;
@ -9,6 +11,8 @@ export interface EditorSettings {
enableLineWrapping: boolean;
tabSize: number;
vimMode: boolean;
enableHoverTooltips: boolean;
theme: Theme;
}
const defaultSettings: EditorSettings = {
@ -17,7 +21,9 @@ const defaultSettings: EditorSettings = {
showLineNumbers: true,
enableLineWrapping: false,
tabSize: 2,
vimMode: false
vimMode: false,
enableHoverTooltips: true,
theme: 'dark'
};
export interface EditorSettingsStore {