change editor theme

This commit is contained in:
Jan Prochazka
2022-02-26 20:49:18 +01:00
parent 80a3282d41
commit 1050760c1d
4 changed files with 131 additions and 6 deletions

View File

@@ -56,6 +56,9 @@ export const commands = writable({});
export const currentTheme = getElectron()
? writableSettingsValue('theme-light', 'currentTheme')
: writableWithStorage('theme-light', 'currentTheme');
export const currentEditorTheme = getElectron()
? writableSettingsValue(null, 'currentEditorTheme')
: writableWithStorage(null, 'currentEditorTheme');
export const activeTabId = derived([openedTabs], ([$openedTabs]) => $openedTabs.find(x => x.selected)?.tabid);
export const activeTab = derived([openedTabs], ([$openedTabs]) => $openedTabs.find(x => x.selected));
export const recentDatabases = writableWithStorage([], 'recentDatabases');