feat: custom theme system with PostgreSQL PL/pgSQL highlighting fix
- Fix PostgreSQL function highlighting by disabling doubleDollarQuotedStrings in extended PostgreSQL dialect, enabling PL/pgSQL syntax highlighting inside $ blocks - Add complete custom editor theme system with multi-theme management (create, rename, duplicate, delete), visual color editor (12 colors), JSON import/export, real-time preview, and 12 preset color schemes - Add background/foreground color customization with system theme defaults - Optimize EditorSettingsDialog layout: 2-column grid with font selector taking available space and theme dropdown grouped with custom theme button - Add i18n support for custom theme UI (en, zh-CN, zh-TW, es) - Fix Tauri production build by adding custom-protocol feature - Update .gitignore for temporary build artifacts Closes t8y2#788 Co-authored-by: Sam <14344444@@qq.com>
This commit is contained in:
1 parent
0b07f05f72
commit
a067ee8d76
15 files changed
+1190
-43
No files matched your search
@@ -1756,6 +1756,38 @@ export default {
|
||||
shortcutPressShortcut: "Press shortcut",
|
||||
shortcutConflict: "This shortcut conflicts with another action in the same scope.",
|
||||
preview: "Live Preview",
|
||||
customTheme: "Custom Theme",
|
||||
customThemeConfigure: "Configure Custom Theme",
|
||||
customThemeTitle: "Custom Theme Configuration",
|
||||
customThemeMyThemes: "My Themes",
|
||||
customThemeNewTheme: "New Theme",
|
||||
customThemeVisualEdit: "Visual Editor",
|
||||
customThemeJsonConfig: "JSON Config",
|
||||
customThemeLivePreview: "Live Preview",
|
||||
customThemePreviewExample: "-- Query Example",
|
||||
customThemePreset: "Preset Theme",
|
||||
customThemeSelectPreset: "Select preset theme...",
|
||||
customThemeApply: "Apply",
|
||||
customThemePasteImport: "Paste Import",
|
||||
customThemeExportJson: "Export JSON",
|
||||
customThemeSaveAndApply: "Save & Apply",
|
||||
customThemeKeyword: "Keyword",
|
||||
customThemeField: "Field/Variable",
|
||||
customThemeFunction: "Function",
|
||||
customThemeString: "String",
|
||||
customThemeNumber: "Number",
|
||||
customThemeComment: "Comment",
|
||||
customThemeTable: "Table",
|
||||
customThemeOperator: "Operator",
|
||||
customThemeType: "Type",
|
||||
customThemeBuiltin: "Builtin",
|
||||
customThemeBackground: "Background",
|
||||
customThemeForeground: "Foreground",
|
||||
customThemeDefaultName: "Custom Theme",
|
||||
customThemeCopySuffix: " Copy",
|
||||
customThemeApplied: 'Applied "{name}" color scheme',
|
||||
customThemeKeepOne: "Keep at least one theme",
|
||||
customThemeJsonError: "Invalid JSON format, please check",
|
||||
jdbcPlugin: "DBX JDBC plugin",
|
||||
jdbcPluginInstall: "Install JDBC plugin",
|
||||
jdbcPluginInstallSuccess: "JDBC plugin installed",
|
||||
|
||||
@@ -1646,6 +1646,38 @@ export default {
|
||||
shortcutPressShortcut: "Presiona un atajo",
|
||||
shortcutConflict: "Este atajo entra en conflicto con otra acción del mismo ámbito.",
|
||||
preview: "Vista previa en tiempo real",
|
||||
customTheme: "Tema personalizado",
|
||||
customThemeConfigure: "Configurar tema personalizado",
|
||||
customThemeTitle: "Configuración de tema personalizado",
|
||||
customThemeMyThemes: "Mis temas",
|
||||
customThemeNewTheme: "Nuevo tema",
|
||||
customThemeVisualEdit: "Editor visual",
|
||||
customThemeJsonConfig: "Configuración JSON",
|
||||
customThemeLivePreview: "Vista previa en tiempo real",
|
||||
customThemePreviewExample: "Ejemplo de consulta",
|
||||
customThemePreset: "Tema predefinido",
|
||||
customThemeSelectPreset: "Seleccionar tema predefinido...",
|
||||
customThemeApply: "Aplicar",
|
||||
customThemePasteImport: "Importar desde portapapeles",
|
||||
customThemeExportJson: "Exportar JSON",
|
||||
customThemeSaveAndApply: "Guardar y aplicar",
|
||||
customThemeKeyword: "Palabra clave",
|
||||
customThemeField: "Campo/Variable",
|
||||
customThemeFunction: "Función",
|
||||
customThemeString: "Cadena",
|
||||
customThemeNumber: "Número",
|
||||
customThemeComment: "Comentario",
|
||||
customThemeTable: "Tabla",
|
||||
customThemeOperator: "Operador",
|
||||
customThemeType: "Tipo",
|
||||
customThemeBuiltin: "Variable integrada",
|
||||
customThemeBackground: "Color de fondo",
|
||||
customThemeForeground: "Color de primer plano",
|
||||
customThemeDefaultName: "Tema personalizado",
|
||||
customThemeCopySuffix: " Copia",
|
||||
customThemeApplied: 'Esquema de color "{name}" aplicado',
|
||||
customThemeKeepOne: "Mantener al menos un tema",
|
||||
customThemeJsonError: "Formato JSON inválido, por favor verifique",
|
||||
jdbcPlugin: "Plugin JDBC de DBX",
|
||||
jdbcPluginInstall: "Instalar plugin JDBC",
|
||||
jdbcPluginInstallSuccess: "Plugin JDBC instalado",
|
||||
|
||||
@@ -1712,6 +1712,38 @@ export default {
|
||||
shortcutPressShortcut: "按下快捷键",
|
||||
shortcutConflict: "这个快捷键与同一作用域内的其他操作冲突。",
|
||||
preview: "实时预览",
|
||||
customTheme: "自定义主题",
|
||||
customThemeConfigure: "自定义主题配置",
|
||||
customThemeTitle: "自定义主题配置",
|
||||
customThemeMyThemes: "我的主题",
|
||||
customThemeNewTheme: "新建主题",
|
||||
customThemeVisualEdit: "可视化编辑",
|
||||
customThemeJsonConfig: "JSON 配置",
|
||||
customThemeLivePreview: "实时预览",
|
||||
customThemePreviewExample: "查询示例",
|
||||
customThemePreset: "预设配色",
|
||||
customThemeSelectPreset: "选择预设配色方案",
|
||||
customThemeApply: "应用",
|
||||
customThemePasteImport: "粘贴导入",
|
||||
customThemeExportJson: "导出 JSON",
|
||||
customThemeSaveAndApply: "保存并应用",
|
||||
customThemeKeyword: "关键字",
|
||||
customThemeField: "字段/变量",
|
||||
customThemeFunction: "函数",
|
||||
customThemeString: "字符串",
|
||||
customThemeNumber: "数字",
|
||||
customThemeComment: "注释",
|
||||
customThemeTable: "表名",
|
||||
customThemeOperator: "运算符",
|
||||
customThemeType: "类型",
|
||||
customThemeBuiltin: "内置变量",
|
||||
customThemeBackground: "背景色",
|
||||
customThemeForeground: "前景色",
|
||||
customThemeDefaultName: "自定义主题",
|
||||
customThemeCopySuffix: " 副本",
|
||||
customThemeApplied: "已应用「{name}」配色方案",
|
||||
customThemeKeepOne: "至少保留一个主题",
|
||||
customThemeJsonError: "JSON 格式错误,请检查",
|
||||
jdbcPlugin: "DBX JDBC 插件",
|
||||
jdbcPluginInstall: "安装 JDBC 插件",
|
||||
jdbcPluginInstallSuccess: "JDBC 插件已安装",
|
||||
|
||||
@@ -1686,6 +1686,38 @@ export default {
|
||||
shortcutPressShortcut: "按下快速鍵",
|
||||
shortcutConflict: "這個快速鍵與同一作用域內的其他操作衝突。",
|
||||
preview: "即時預覽",
|
||||
customTheme: "自定義主題",
|
||||
customThemeConfigure: "自定義主題配置",
|
||||
customThemeTitle: "自定義主題配置",
|
||||
customThemeMyThemes: "我的主題",
|
||||
customThemeNewTheme: "新建主題",
|
||||
customThemeVisualEdit: "可視化編輯",
|
||||
customThemeJsonConfig: "JSON 配置",
|
||||
customThemeLivePreview: "即時預覽",
|
||||
customThemePreviewExample: "查詢示例",
|
||||
customThemePreset: "預設配色",
|
||||
customThemeSelectPreset: "選擇預設配色方案",
|
||||
customThemeApply: "應用",
|
||||
customThemePasteImport: "貼上導入",
|
||||
customThemeExportJson: "導出 JSON",
|
||||
customThemeSaveAndApply: "儲存並應用",
|
||||
customThemeKeyword: "關鍵字",
|
||||
customThemeField: "字段/變量",
|
||||
customThemeFunction: "函數",
|
||||
customThemeString: "字符串",
|
||||
customThemeNumber: "數字",
|
||||
customThemeComment: "註釋",
|
||||
customThemeTable: "表名",
|
||||
customThemeOperator: "運算符",
|
||||
customThemeType: "類型",
|
||||
customThemeBuiltin: "內置變量",
|
||||
customThemeBackground: "背景色",
|
||||
customThemeForeground: "前景色",
|
||||
customThemeDefaultName: "自定義主題",
|
||||
customThemeCopySuffix: " 副本",
|
||||
customThemeApplied: "已應用「{name}」配色方案",
|
||||
customThemeKeepOne: "至少保留一個主題",
|
||||
customThemeJsonError: "JSON 格式錯誤,請檢查",
|
||||
jdbcPlugin: "DBX JDBC 外掛程式",
|
||||
jdbcPluginInstall: "安裝 JDBC 外掛程式",
|
||||
jdbcPluginInstallSuccess: "JDBC 外掛程式已安裝",
|
||||
|
||||
Reference in new issue
Block a user