Temp: import themes from tuna
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
import { writable } from 'svelte/store';
|
||||
import type { ThemeName } from '$lib/themes';
|
||||
|
||||
const STORAGE_KEY = 'editorSettings';
|
||||
|
||||
export type Theme = 'dark' | 'light';
|
||||
|
||||
export interface EditorSettings {
|
||||
fontSize: number;
|
||||
fontFamily: string;
|
||||
@ -12,7 +11,7 @@ export interface EditorSettings {
|
||||
tabSize: number;
|
||||
vimMode: boolean;
|
||||
enableHoverTooltips: boolean;
|
||||
theme: Theme;
|
||||
theme: ThemeName;
|
||||
}
|
||||
|
||||
const defaultSettings: EditorSettings = {
|
||||
@ -23,7 +22,7 @@ const defaultSettings: EditorSettings = {
|
||||
tabSize: 2,
|
||||
vimMode: false,
|
||||
enableHoverTooltips: true,
|
||||
theme: 'dark'
|
||||
theme: 'monodark'
|
||||
};
|
||||
|
||||
export interface EditorSettingsStore {
|
||||
|
||||
Reference in New Issue
Block a user