Feature:新增多套应用配色主题 (#2559)

Co-authored-by: staff <staff@qimaos-MacBook-Pro.local>
This commit is contained in:
zipgandstaff authored and GitHub committed 2026-07-05 00:34:47 +08:00
1 parent 896580f1c5
commit 5c35755219
27 files changed
+1884 -99

No files matched your search

@@ -36,7 +36,7 @@ const emit = defineEmits<{
const { t } = useI18n();
const { toast } = useToast();
const { isDark } = useTheme();
const { isDark, themePalette } = useTheme();
const settingsStore = useSettingsStore();
const ddlContent = ref("");
@@ -84,7 +84,7 @@ async function initDdlEditor(content: string) {
const appAppearance = isDark.value ? "dark" : "light";
const fontSize = settingsStore.editorSettings.fontSize;
const fontFamily = settingsStore.editorSettings.fontFamily;
const themeExt = await loadEditorTheme(editorTheme, appAppearance);
const themeExt = await loadEditorTheme(editorTheme, appAppearance, undefined, themePalette.value);
const fontExt = editorFontTheme(EditorView, fontSize, fontFamily, { fixedHeight: true, scrollable: true });
const dialect = createDbxCodeMirrorSqlDialect(langSql, props.dialect);
const state = EditorState.create({