new: set light/dark editor theme

This commit is contained in:
lollipopkit
2023-06-27 12:52:11 +08:00
parent 9ffe5583fd
commit 76e8a1efca
6 changed files with 66 additions and 18 deletions

View File

@@ -45,4 +45,5 @@ const defaultLaunchPageIdx = 0;
const defaultUpdateInterval = 3;
const defaultEditorTheme = 'monokai';
const defaultEditorTheme = 'a11y-light';
const defaultEditorDarkTheme = 'monokai';

View File

@@ -10,7 +10,7 @@ const privateKeyMaxSize = 20 * 1024;
const editorMaxSize = 1024 * 1024;
/// Max debug log lines
const maxDebugLogLines = 377;
const maxDebugLogLines = 100;
/// Method Channels
const pkgName = 'tech.lolli.toolbox';

View File

@@ -68,6 +68,9 @@ class SettingStore extends PersistentStore {
// Editor theme
StoreProperty<String> get editorTheme =>
property('editorTheme', defaultValue: defaultEditorTheme);
StoreProperty<String> get editorDarkTheme =>
property('editorDarkTheme', defaultValue: defaultEditorDarkTheme);
StoreProperty<bool> get fullScreen =>
property('fullScreen', defaultValue: false);