This commit is contained in:
LZX committed 2026-09-11 23:57:36 +08:00
1 parent b03ece33a2
commit 54c3083c24
29 files changed
+2150 -549

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ class EditorTheme {
/// 根据 ID 查找主题,若不存在则回退至默认主题
static EditorTheme fromId(String? id) {
if (id == null || id.isEmpty) return atomOneDark;
if(id == null || id.isEmpty) return atomOneDark;
return presets.firstWhere(
(theme) => theme.id == id,
orElse: () => atomOneDark,