feat: 添加自定义终端html背景的功能

This commit is contained in:
Baobhan Sith
2025-05-27 15:32:37 +08:00
parent e11cc66114
commit 81b26cd696
14 changed files with 1503 additions and 67 deletions
+50 -1
View File
@@ -99,7 +99,55 @@
"terminalBgOverlayOpacityDesc": "Controls the opacity of the black overlay on top of the background image. 0 is fully transparent, 1 is fully opaque.",
"errorInvalidOpacityValue": "Invalid opacity value. Must be between 0 and 1.",
"terminalBgOverlayOpacitySaved": "Terminal background overlay opacity saved.",
"terminalBgOverlayOpacitySaveFailed": "Failed to save terminal background overlay opacity: {message}"
"terminalBgOverlayOpacitySaveFailed": "Failed to save terminal background overlay opacity: {message}",
"terminalBgDisabled": "Terminal background feature is disabled.",
"htmlBackgroundThemes": "HTML Background Themes",
"localThemes": "Local Themes",
"remoteThemes": "Remote Themes",
"newLocalPreset": "New Local Theme",
"noLocalPresetsFound": "No local HTML themes found.",
"errorFetchingPresetContentForEdit": "Failed to fetch theme content for editing: {message}",
"remoteHtmlPresetsRepositoryUrl": "Remote HTML Themes Repository URL",
"remoteRepoUrlPlaceholder": "e.g., https://github.com/user/repo/tree/main/themes",
"saveUrl": "Save URL",
"loadRemoteThemes": "refresh",
"pleaseSetRemoteUrl": "Please set the remote HTML themes repository URL first.",
"noRemotePresetsFound": "No HTML themes found in the remote repository, or the URL is invalid.",
"editLocalPreset": "Edit Local Theme",
"presetName": "Theme Name",
"presetNamePlaceholder": "e.g., my-theme.html",
"presetContent": "Theme Content",
"customTerminalHTMLPlaceholder": "e.g., <h1>Hello</h1>",
"errorToggleTerminalBg": "Failed to update terminal background enabled state: {message}",
"htmlPresetApplied": "HTML theme applied.",
"htmlPresetApplyFailed": "Failed to apply HTML theme: {message}",
"errorPresetContentRequired": "Theme content cannot be empty.",
"localPresetUpdated": "Local HTML theme updated.",
"localPresetUpdateFailed": "Failed to update local HTML theme: {message}",
"errorPresetNameAndContentRequired": "Theme name and content cannot be empty.",
"localPresetCreated": "Local HTML theme created.",
"localPresetCreateFailed": "Failed to create local HTML theme: {message}",
"confirmDeletePreset": "Are you sure you want to delete the HTML theme \"{name}\"?",
"localPresetDeleted": "Local HTML theme deleted.",
"localPresetDeleteFailed": "Failed to delete local HTML theme: {message}",
"errorRemoteUrlRequired": "Remote HTML themes repository URL cannot be empty.",
"remoteUrlSaved": "Remote HTML themes repository URL saved.",
"remoteUrlSaveFailed": "Failed to save remote HTML themes repository URL: {message}",
"errorSetRemoteUrlFirst": "Please set and save the remote HTML themes repository URL first.",
"remotePresetsLoaded": "Remote HTML themes list loaded.",
"remotePresetsLoadFailed": "Failed to load remote HTML themes list: {message}",
"localPresetApplyFailed": "Failed to apply local HTML theme: {message}",
"errorPresetNameRequired": "Preset name cannot be empty.",
"errorMissingDownloadUrl": "Remote theme download URL is missing.",
"remotePresetApplyFailed": "Failed to apply remote HTML theme: {message}",
"customHtmlResetSuccess":"Custom HTML has been reset.",
"searchLocalThemesPlaceholder": "Search local themes...",
"searchRemoteThemesPlaceholder": "Search remote themes...",
"noMatchingLocalPresetsFound": "No matching local themes found",
"noMatchingRemotePresetsFound": "No matching remote themes found",
"editAsNewTooltip": "Edit as new custom theme",
"presetTag": "Preset",
"customTag": "Custom"
},
"login": {
"title": "User Login",
@@ -977,6 +1025,7 @@
"testMessageUnsaved": "Test triggered for unsaved {channelType} configuration"
},
"common": {
"apply": "Apply",
"loading": "Loading...",
"cancel": "Cancel",
"save": "Save",