feat: add all Draw.io themes to settings panel (#499)

This commit is contained in:
Xinyang Gao-PC
2026-01-04 19:41:49 +08:00
parent 3ce047f794
commit 801974a18b
8 changed files with 97 additions and 40 deletions
+12
View File
@@ -0,0 +1,12 @@
// Draw.io UI themes configuration
export type DrawioTheme = "kennedy" | "simple" | "min" | "sketch" | "atlas"
export const DRAWIO_THEMES: DrawioTheme[] = [
"kennedy",
"simple",
"min",
"sketch",
"atlas",
]
export const DEFAULT_DRAWIO_THEME: DrawioTheme = "min"
+8 -4
View File
@@ -94,10 +94,14 @@
"theme": "Theme",
"themeDescription": "Dark/Light mode for interface and DrawIO canvas.",
"drawioStyle": "DrawIO Style",
"drawioStyleDescription": "Canvas style:",
"switchTo": "Switch to",
"minimal": "Minimal",
"sketch": "Sketch",
"drawioStyleDescription": "Choose canvas UI theme.",
"themes": {
"classic": "Classic",
"simple": "Simple",
"minimal": "Minimal",
"sketch": "Sketch",
"atlas": "Atlas"
},
"closeProtection": "Close Protection",
"closeProtectionDescription": "Show confirmation when leaving the page.",
"diagramStyle": "Diagram Style",
+8 -4
View File
@@ -94,10 +94,14 @@
"theme": "テーマ",
"themeDescription": "インターフェースと DrawIO キャンバスのダーク/ライトモード。",
"drawioStyle": "DrawIO スタイル",
"drawioStyleDescription": "キャンバススタイル:",
"switchTo": "切り替え",
"minimal": "ミニマル",
"sketch": "スケッチ",
"drawioStyleDescription": "キャンバスUIテーマを選択。",
"themes": {
"classic": "クラシック",
"simple": "シンプル",
"minimal": "ミニマル",
"sketch": "スケッチ",
"atlas": "アトラス"
},
"closeProtection": "ページ離脱確認",
"closeProtectionDescription": "ページを離れる際に確認を表示します。",
"diagramStyle": "ダイアグラムスタイル",
+8 -4
View File
@@ -94,10 +94,14 @@
"theme": "主题",
"themeDescription": "界面和 DrawIO 画布的深色/浅色模式。",
"drawioStyle": "DrawIO 样式",
"drawioStyleDescription": "画布样式:",
"switchTo": "切换到",
"minimal": "简约",
"sketch": "草图",
"drawioStyleDescription": "选择画布 UI 主题。",
"themes": {
"classic": "经典",
"simple": "简易",
"minimal": "极简",
"sketch": "草图",
"atlas": "现代"
},
"closeProtection": "关闭确认",
"closeProtectionDescription": "离开页面时显示确认。",
"diagramStyle": "图表样式",