diff --git a/README.en.md b/README.en.md index d5c457fa..ace08b45 100644 --- a/README.en.md +++ b/README.en.md @@ -8,7 +8,7 @@ **Bring ok-script's language keys, OCR fixes, templates, skills and task data straight into your VS Code workflow.** -Language key completion · OCR fix hints · Template browsing · Task launching · Character skill management +Language key completion · OCR fix hints · Resource preview & annotation · Console · Character skill management [![VS Code Marketplace](https://img.shields.io/badge/VS%20Code%20Marketplace-ok--script%20Toolkit-007ACC?logo=visualstudiocode&logoColor=white)](https://marketplace.visualstudio.com/items?itemName=AliceJump.ok-script-toolkit) [![JetBrains Marketplace](https://img.shields.io/badge/JetBrains%20Marketplace-ok--script%20Toolkit-000000?logo=jetbrains&logoColor=white)](https://plugins.jetbrains.com/plugin/34091-ok-script-toolkit) @@ -23,7 +23,7 @@ Language key completion · OCR fix hints · Template browsing · Task launching --- -A VS Code extension that brings ok-script language keys, OCR fixes, templates, skill effects, and task data directly into your Python development workflow. It also includes built-in template browsing, task launching, and character skill management panels. +A VS Code extension that brings ok-script language keys, OCR fixes, templates, skill effects, and task data directly into your Python development workflow. It also includes built-in Resource Preview, Annotation Management, Console, and Character & Skill Manager panels. > [!TIP] > The demo images at the beginning of each feature section below are clickable — if the GIFs don't load, click the links to view them. @@ -53,7 +53,7 @@ See [feature and documentation parity](docs/feature-parity.en.md) for current ho | [Code development assistance](#code-development-assistance) | Complete and explain `self.lang`, OCR regex, and skill effect IDs in the editor | | [Template management](#template-management) | Browse templates in a grid, click to insert `fL.`, with thumbnail preview | | [Temp screenshots](#temp-screenshots) | 10-slot scratch area in the activity bar — box-select to copy normalized coordinates | -| [Task launcher](#task-launcher) | Auto-generate parameter forms from `config.py` and run tasks, without writing to the target project's config | +| [Console](#console-task-running) | Auto-generate parameter forms from `config.py` and run tasks, without writing to the target project's config | | [Character skill management](#character-skill-management) | Visual management and diagnostics for characters / skills / effects / enhancement groups | | [Multi-language support](#multi-language-support) | UI supports 6 languages; data hints follow the target project | @@ -77,16 +77,17 @@ When editing Python code, the extension automatically detects ok-script-specific ### Template Management

- Template panel: search, thumbnail preview, and quick insert + Resource Preview: search, thumbnail preview, and quick insert

-- **Template panel**: Open via the sidebar icon or `Ctrl+Alt+T` shortcut (requires focus on a Python editor). Displays all workspace templates in a thumbnail grid with real-time name search and filtering. -- **Quick insert**: Click a card to insert `fL.` at the editor cursor, double-click to copy to clipboard, or use **View Original** to open the source. VS Code template and box galleries use a shared 500 ms card double-click window; clicks beyond that window are independent single clicks. The insert, copy and source buttons act immediately. +- **Resource Preview**: Open via the sidebar icon or `Ctrl+Alt+T` shortcut (requires focus on a Python editor). Displays published template / box / point resources in a thumbnail grid with real-time name search and filtering. When there is nothing to show, it lists the COCO and split-template sources it actually checked and offers an **Open Annotation Management** button. +- **Quick insert**: Thumbnail cards behave the same in Resource Preview, Annotation Management and Temp Screenshots — **click = select**, **double-click / Enter = primary action** (in Resource Preview: insert `fL.` at the editor cursor), `Ctrl+C` copies the reference; the insert / copy / view-original buttons on the card act immediately. Cards are reachable with Tab and move with the arrow keys / Home / End. - **Template code hints**: Type `fL.` or `FeatureList.` to complete template names with size info. Hover shows thumbnail preview, dimensions, and source info. - You can also open a larger grid view in the editor area via the command **ok-script Toolkit: Open Resource Preview in Editor**. -- Supports both sidebar (resource preview and annotation management views) and large editor window browsing modes. +- Supports both sidebar (Resource Preview and Annotation Management views) and large editor window browsing modes. - **Split template export**: publishing Template resources offers **Split templates (recommended)** alongside the existing packed COCO format. Split writes one PNG per template into `assets/templates` or `ok_tasks/assets/templates`, with reference dimensions and coordinates encoded in the filename, matching ok-script's Split format. Original screenshots and authoring COCO remain available for editing and source navigation. See [Template export and original-image navigation](docs/template-export.en.md). -- **Swap annotations**: in the template assets panel (annotation manager), the **⇄** button at the bottom-right of a thumbnail card swaps that image's whole annotation set with another image in the same list — the fix for "annotated the wrong image / images are in the wrong order". The target is picked from thumbnails (template names are mostly numeric, so names alone are not enough). When the two images differ in size, box coordinates are **scaled proportionally** and the confirmation dialog spells out both sizes. The swap is written in one go and **cannot be undone**, so it always asks before saving. +- **Annotation Management**: double-click / Enter / `E` opens the annotation editor, `Delete` deletes (after a confirmation). The delete button sits alone in the card's top-right corner, apart from view / swap. The **Open Annotation Editor…** command lets you pick an image directly. +- **Swap annotations**: in Annotation Management, the **Swap annotations** button (codicon `arrow-swap`) at the bottom-right of a thumbnail card swaps that image's whole annotation set with another image in the same list — the fix for "annotated the wrong image / images are in the wrong order". The target is picked from thumbnails (template names are mostly numeric, so names alone are not enough). When the two images differ in size, box coordinates are **scaled proportionally** and the confirmation dialog spells out both sizes. The swap is written in one go and always asks before saving; the completion notification has an **Undo** button that restores both images' original annotations as long as neither image changed since. ```python self.wait_click_feature(feature=fL.give_gift, time_out=10) @@ -111,20 +112,20 @@ Box resource management reuses source annotation images and the COCO editor. Edi | Enqueue | `Ctrl+V` to paste a clipboard image, click "Screenshot" to capture the game window, or drag image files in directly | | 0.1s carousel | Cycles through all screenshots at 100ms intervals, useful for observing buttons with movement boundaries | | Box-select copy | In "Box Select Coords" mode, box-select to copy `x,y,tox,toy` normalized coordinates to the clipboard | -| Import to annotation | The **→** button on the top-right of a thumbnail card imports that shot into the annotation manager (copies into `ok_templates` and registers COCO) | +| Import to annotation | The **Add to Annotation Management** button (codicon `arrow-right`) at the bottom-right of a thumbnail card imports that shot into Annotation Management (copies into `ok_templates` and registers COCO); delete is in the top-right corner | Details: - The carousel and box-select are independent — the carousel keeps playing during box-select, and the selection box stays in place after release, making it easy to compare and fine-tune repeatedly. - Normalized coordinates are scaled to 0..1 based on image width/height, with 4 decimal places. Scroll zoom and middle-click/blank-area drag panning are also supported. - After box-select, the **box remains and can be adjusted** (with 8-directional handles and full drag support, same interaction as the template annotation box): **coordinates are re-copied on creation and after each adjustment**; the box itself is never written to annotation data or saved to disk. Click outside the box (beyond the frame and handles) to clear it. -- Note: Cross-Webview drag-and-drop is not available in VS Code (each webview is an iframe with a different origin, `dataTransfer` is blocked), so the **→** button is the reliable entry point for import. +- Note: Cross-Webview drag-and-drop is not available in VS Code (each webview is an iframe with a different origin, `dataTransfer` is blocked), so the **Add to Annotation Management** button is the reliable entry point for import. - The **annotation editor** also supports this mode: click "Coords (C)" in the toolbar or press `C` to enter box-select mode, copying the same `x,y,tox,toy` normalized coordinates without creating an annotation box or modifying COCO. The resulting box also has handles for fine-tuning, with coordinates re-copied after each adjustment; clicking outside the box in non-interactive areas clears it. Override with `copyCoords` in `okScriptToolkit.annotationKeybindings`. -### Task Launcher +### Console (Task Running)

- Task launcher: parameter form and run log + Console: parameter form and run log

- Automatically parses all one-time tasks and trigger tasks from the target project's `src/config.py` / `config.py`, generating complete parameter configuration forms. @@ -139,7 +140,10 @@ Details: - **No target-project config pollution**: While the executor runs, all ok-framework reads/writes to `configs/` and screenshots are redirected into the workspace sandbox `.vscode/ok-script-toolkit/`, so **the target project's config files and screenshots stay untouched** (`devices.json` is bridged by copy so the game connection is reused). Tweak parameters freely while debugging without dirtying the project. - The executor can be paused/resumed at any time (globally suspending polling and tasks), and you can "stop the current task" without closing the executor. Run logs are output to a dedicated output channel. - **Global config takeover**: the target project's global config groups (visible groups of the ok framework's GlobalConfig) are parsed by the probe as well and shown as parameter snapshots in the console's "Config" segment — edits save instantly and can be reset to defaults; changes are pushed live to the running executor via `gparams`, and the full snapshot is injected as `OK_TOOLKIT_GCONFIG` at executor launch. Still sandbox-only — the target project's config is never touched. -- **Console view**: the task launcher and toolbox live together in the "ok-script console" with four segments (Tasks / Game / Config / Accounts); a health bar in the header reflects executor state in real time, and when idle the detail panel shows the run center (current task / execution queue / trigger polling). Task rows reveal a read-only summary on hover. +- **Console view**: task running and the game connection live together in the **Console** with four segments (Tasks / Game / Config / Accounts); a health bar in the header reflects executor state in real time, and when idle the detail panel shows the run center (current task / execution queue / trigger polling). Task rows reveal a read-only summary on hover. In a narrow sidebar the segment navigation collapses to an icon rail (≤640px) or a top segmented bar (≤480px). +- **Status bar and commands**: the status bar shows the executor state (idle / starting / running task + queued count / paused) and opens the Console on click. The Console view title bar and the Command Palette offer Run Task… / Start / Pause / Resume / Stop Current Task / Stop Executor / Show Logs / Connect Game, shown or hidden by executor state. The number of running + queued tasks appears as the view badge. +- **Errors in place**: a missing project path, a missing Python interpreter or an executor crash is shown in the Console banner with next-step buttons (Set Project Path / Set Python Path / Show Logs / Retry). Only when the Console is hidden does it fall back to a notification (with the same buttons). +- The **Character & Skill Manager** entry lives in the Config segment. It is hidden, together with its Command Palette command, when no character data is detected (neither `characterMasterFile` nor `characterSkillsDirectory` exists). ### Character Skill Management @@ -158,8 +162,8 @@ Run the command **ok-script Toolkit: Open Character & Skill Manager** to open th ### Multi-language Support -- The extension UI (notifications, output channel, hover, template panel, task launcher, toolbox, and character skill management panel) supports Simplified Chinese, Traditional Chinese, English, Japanese, Korean, and Spanish, defaulting to the VS Code display language. -- The sidebar is split into three independent activity bar containers: **ok-script Tools** (Console), **ok-script Resources** (Resource Preview + Annotation Management), and **ok-script Temp Shots**. +- The extension UI (notifications, output channel, hover, Resource Preview, Annotation Management, Console, and the Character & Skill Manager) supports Simplified Chinese, Traditional Chinese, English, Japanese, Korean, and Spanish, defaulting to the VS Code display language. +- The sidebar is split into three independent activity bar containers: **ok-script Tools** (Console), **ok-script Resources** (Resource Preview + Annotation Management), and **ok-script Temp Shots**. UI icons use VS Code codicons throughout. - Language data in code hints always uses the target project's own locale and original protocol values, unaffected by the plugin UI language. > [!NOTE] @@ -192,6 +196,8 @@ See [DEVELOPMENT.en.md](DEVELOPMENT.en.md) for project structure, JetBrains vers ## Configuration +In the Settings UI the options are grouped into 5 categories: **ok-script: Code Hints**, **Resources & Annotation**, **Screenshots**, **Console & Tasks**, and **Character Data**. + | Setting | Default | Description | |---|---|---| | `okScriptToolkit.langDirectory` | `assets/lang` | lang JSON directory (relative to workspace root) | @@ -206,8 +212,8 @@ See [DEVELOPMENT.en.md](DEVELOPMENT.en.md) for project structure, JetBrains vers | `okScriptToolkit.positionJsonPath` | `src/scene/positions.json` | Project-relative output path for Position JSON publishing; maps to `position.jsonPath` | | `okScriptToolkit.positionPythonDirectory` | `src/scene` | Project-relative directory for generated `ScreenRatio.py` and `PositionMap.py`; maps to `position.pythonDirectory` | | `okScriptToolkit.effectsFile` | `src/data/effects.py` | Skill effect ID definition file (`EffectType` enum + `EFFECT_DESCRIPTIONS`), relative to workspace root | -| `okScriptToolkit.okScriptProjectPath` | empty | ok-script project root for the task launcher; tries the current workspace when empty | -| `okScriptToolkit.okScriptPython` | empty | Python for the task launcher; prefers `/.venv/Scripts/python.exe` when empty | +| `okScriptToolkit.okScriptProjectPath` | empty | ok-script project root used by the Console to run tasks; tries the current workspace when empty | +| `okScriptToolkit.okScriptPython` | empty | Python used by the Console; prefers `/.venv/Scripts/python.exe` when empty | | `okScriptToolkit.captureMethod` | `auto` | Game window capture method: `auto` / `wgc` / `bitblt` / `foreground` | | `okScriptToolkit.characterProjectPath` | empty | Data project for the character skill management panel; uses `okScriptProjectPath` or current workspace when empty | | `okScriptToolkit.characterMasterFile` | `assets/data/characters.json` | Character master table JSON | @@ -305,15 +311,18 @@ Command categories display as "ok-script 工具箱" / "ok-script Toolkit" depend | Command | Shortcut | Description | |---|---|---| | `ok-script Toolkit: Getting Started` | — | Open the interactive walkthrough (load project → create visual resources → publish resources → run and debug) | -| `ok-script Toolkit: Open Resource Preview` | `Ctrl+Alt+T` (macOS `Cmd+Alt+T`, requires Python editor focus) | Focus the resource preview sidebar view in the activity bar | +| `ok-script Toolkit: Open Resource Preview` | `Ctrl+Alt+T` (macOS `Cmd+Alt+T`, requires Python editor focus) | Focus the Resource Preview view in the activity bar | | `ok-script Toolkit: Open Resource Preview in Editor` | — | Open a large grid view in the editor area | -| `ok-script Toolkit: Open Console` | — | Focus the console view (Tasks / Game / Config / Accounts) in the activity bar | -| `ok-script Toolkit: Open Character & Skill Manager` | — | Open the character, skill, effect, enhancement group, and name localization management page | -| `ok-script Toolkit: Open Annotation Management` | — | Open the annotation management panel in the editor area | -| `ok-script Toolkit: Open Resource Publishing` | — | Open the unified resource publishing panel (publish Template / Rect / Point resources) | -| `ok-script Toolkit: Open Annotation Editor` | — | Prompts to click an image in the annotation management panel to enter the unified annotation editor | +| `ok-script Toolkit: Open Console` | — | Focus the Console view in the activity bar | +| `ok-script Toolkit: Console: Run Task…` | — | Pick a loaded one-time task and queue it (starts the executor first if needed) | +| `ok-script Toolkit: Console: Start / Pause / Resume Executor, Stop Current Task, Stop Executor` | — | Same logic as the Console buttons; shown in the Command Palette and view title bar according to executor state | +| `ok-script Toolkit: Console: Refresh Tasks / Show Logs / Connect Game / Disconnect Game` | — | Re-parse the task list, open the output channel, connect or disconnect the game window | +| `ok-script Toolkit: Open Character & Skill Manager` | — | Open the character, skill, effect, enhancement group, and name localization management page; hidden in the Command Palette when no character data is detected | +| `ok-script Toolkit: Open Annotation Management` | — | Open Annotation Management in the editor area | +| `ok-script Toolkit: Open Annotation Editor…` | — | Pick an image from Annotation Management (with annotation counts) and open the COCO annotation editor directly | +| `ok-script Toolkit: Publish Resources…` | — | Open Annotation Management and go straight into publishing: choose Template / Rect / Point, then publish | | `ok-script Toolkit: Open Temp Screenshots` | — | Focus the temp screenshots view in the activity bar | -| `ok-script Toolkit: Screenshot to Annotation Management` | `Ctrl+Alt+S` (macOS `Cmd+Alt+S`) | Open the annotation management panel and take a screenshot immediately. Reuses the panel's own screenshot action; the shot is registered into COCO. Rebindable in Keyboard Shortcuts | +| `ok-script Toolkit: Screenshot to Annotation Management` | `Ctrl+Alt+S` (macOS `Cmd+Alt+S`) | Open Annotation Management and take a screenshot immediately. Reuses the panel's own screenshot action; the shot is registered into COCO. Rebindable in Keyboard Shortcuts | | `ok-script Toolkit: Project Convention vs My Settings` | — | List all 16 settings that take part in the precedence chain and show **which layer each effective value comes from** (my settings / project convention / built-in default). Overridden rows carry a Revert button to drop your override and return to the project convention | ## Update Not Taking Effect diff --git a/README.md b/README.md index 6ec41e46..fac70087 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ **把 ok-script 的语言、OCR、模板、技能和任务数据,直接搬进 VS Code 的开发流程。** -语言键补全 · OCR 修正提示 · 模板浏览 · 任务启动 · 角色技能管理 +语言键补全 · OCR 修正提示 · 资源预览与标注 · 控制台 · 角色技能管理 [![VS Code Marketplace](https://img.shields.io/badge/VS%20Code%20Marketplace-ok--script%20Toolkit-007ACC?logo=visualstudiocode&logoColor=white)](https://marketplace.visualstudio.com/items?itemName=AliceJump.ok-script-toolkit) [![JetBrains Marketplace](https://img.shields.io/badge/JetBrains%20Marketplace-ok--script%20Toolkit-000000?logo=jetbrains&logoColor=white)](https://plugins.jetbrains.com/plugin/34091-ok-script-toolkit) @@ -23,7 +23,7 @@ --- -VS Code 扩展,为 ok-script 项目的 Python 开发提供语言键、OCR 修正、模板和技能效果的数据提示,同时内置模板浏览、任务启动和角色技能管理面板,让 ok-script 的语言、OCR、模板、技能和任务数据直接进入开发流程。 +VS Code 扩展,为 ok-script 项目的 Python 开发提供语言键、OCR 修正、模板和技能效果的数据提示,同时内置资源预览、标注管理、控制台和角色技能管理面板,让 ok-script 的语言、OCR、模板、技能和任务数据直接进入开发流程。 > [!TIP] > 下面每个功能章节开头的演示图都是可点的——如果动图没加载出来,直接点开链接看。 @@ -53,7 +53,7 @@ PyCharm / IntelliJ IDEA 用户请装 JetBrains 版:[ok-script Toolkit for JetB | [代码开发辅助](#代码开发辅助) | 在编辑器内补全和解释 `self.lang`、OCR 正则与技能效果 ID | | [模板管理](#模板管理) | 网格浏览模板,单击插入 `fL.<名称>`,支持缩略图预览 | | [临时截图](#临时截图) | 活动栏里的 10 张暂存区,框选即可复制归一化坐标 | -| [任务启动](#任务启动) | 从 `config.py` 自动生成参数表单并运行任务,全程不写目标项目配置 | +| [控制台](#控制台任务运行) | 从 `config.py` 自动生成参数表单并运行任务,全程不写目标项目配置 | | [角色技能管理](#角色技能管理) | 角色 / 技能 / 效果 / 强化组的可视化管理与诊断 | | [多语言支持](#多语言支持) | 界面支持 6 种语言,数据提示跟随目标项目 | @@ -77,16 +77,17 @@ PyCharm / IntelliJ IDEA 用户请装 JetBrains 版:[ok-script Toolkit for JetB ### 模板管理

- 模板面板:搜索、缩略图预览与快速插入 + 资源预览:搜索、缩略图预览与快速插入

-- **模板面板**:通过侧边栏图标或 `Ctrl+Alt+T` 快捷键(需聚焦 Python 编辑器时生效)打开,网格展示工作区全部模板的缩略图,支持按名称实时搜索和过滤。 -- **快速插入**:单击卡片将 `fL.<模板名>` 插入编辑器光标处,双击复制到剪贴板,使用「查看原图」按钮打开来源。VS Code 模板与框图库统一使用 500 ms 的卡片双击窗口;超过窗口的点击分别按单击处理。插入、复制和查看原图按钮立即执行。 +- **资源预览**:通过侧边栏图标或 `Ctrl+Alt+T` 快捷键(需聚焦 Python 编辑器时生效)打开,网格展示已发布的模板 / 框 / 点资源缩略图,支持按名称实时搜索和过滤。没有资源时会列出实际检查过的 COCO 与拆分模板来源,并提供「打开标注管理」按钮。 +- **快速插入**:缩略图卡片的手势在资源预览、标注管理、临时截图三处一致——**单击 = 选中**,**双击 / Enter = 主操作**(资源预览里是把 `fL.<模板名>` 插入编辑器光标处),`Ctrl+C` 复制引用;卡片右下角的「插入 / 复制 / 查看原图」按钮立即执行。卡片可用 Tab 进入、方向键 / Home / End 移动。 - **模板代码提示**:输入 `fL.` 或 `FeatureList.` 补全模板名称并显示尺寸,悬停显示缩略图预览、尺寸和来源信息。 - 也可通过命令 **ok-script 工具箱: 在编辑器中打开资源预览** 在编辑器区打开更大的网格视图。 -- 支持侧边栏(资源预览和标注管理两个视图)和编辑器大窗口两种浏览方式。 +- 支持侧边栏(「资源预览」和「标注管理」两个视图)和编辑器大窗口两种浏览方式。 - **拆分模板导出**:发布 Template 时可选「拆分模板(推荐)」或原有 COCO 合图。拆分输出到 `assets/templates` 或 `ok_tasks/assets/templates`,每个模板一张 PNG,文件名保存原图尺寸与坐标,与 ok-script 的 Split 格式一致。原图和源 COCO 保留供继续标注、反查及编辑。详见 [模板导出与原图定位](docs/template-export.md)。 -- **交换标注**:在模板素材面板(标注管理)里,缩略图卡片右下角的 **⇄** 按钮可以把这张图与同一列表内另一张图的标注**整套互换** —— 修"标错了图 / 图片顺序反了"用。选择目标时按缩略图挑(模板名多是数字序号,光看名字选不出来)。两张图尺寸不同时,框坐标会**按比例缩放**,并在确认框里写明缩放前后的尺寸;交换是整体写盘、**不可撤销**的,所以落盘前一定会先确认。 +- **标注管理**:双击 / Enter / `E` 打开标注编辑器,`Delete` 删除(会先确认);删除按钮单独放在卡片右上角,与查看 / 交换分开。也可以用命令 **打开标注编辑器…** 从图片列表里直接选图。 +- **交换标注**:在标注管理里,缩略图卡片右下角的「交换标注」按钮(codicon `arrow-swap`)可以把这张图与同一列表内另一张图的标注**整套互换** —— 修"标错了图 / 图片顺序反了"用。选择目标时按缩略图挑(模板名多是数字序号,光看名字选不出来)。两张图尺寸不同时,框坐标会**按比例缩放**,并在确认框里写明缩放前后的尺寸。交换是整体写盘,落盘前一定会先确认;完成后的通知里有「撤销」按钮,只要两张图在此之后没被改过,就能一键恢复原来的标注。 ```python self.wait_click_feature(feature=fL.give_gift, time_out=10) @@ -111,20 +112,20 @@ self.wait_click_feature(feature=fL.give_gift, time_out=10) | 入列 | `Ctrl+V` 粘贴剪贴板图片、点「截屏」截取游戏窗口,或直接把图片文件拖进来 | | 0.1s 轮播 | 按 100ms 间隔循环播放全部截图,方便观察有移动界限的按钮等目标 | | 框选复制 | 在「框选坐标」模式下框选,把 `x,y,tox,toy` 归一化坐标复制到剪贴板 | -| 导入标注 | 缩略图卡片右上角的 **→** 按钮把该张导入「标注管理」(即复制进 `ok_templates` 并登记 COCO) | +| 导入标注 | 缩略图卡片右下角的「添加到标注管理」按钮(codicon `arrow-right`)把该张导入「标注管理」(即复制进 `ok_templates` 并登记 COCO);删除按钮在右上角 | 细节说明: - 轮播与框选相互独立——框选期间轮播不停,选框松手后保留在原位,便于反复比对微调。 - 归一化坐标按图片宽高归一化到 0..1,保留 4 位小数,同样支持滚轮缩放、中键/空白拖拽平移。 - 框选完成后**框会保留并可继续调整**(带 8 向手柄、可整体拖动,交互与模板标注框一致):**创建时与每次调整结束都会重新复制一次当前框的坐标**;框本身不写入标注数据、不落盘。点击图片的非交互部分(框体与手柄之外)即清除。 -- 注:VS Code 的跨 Webview 拖拽不可用(各 webview 是不同 origin 的 iframe,`dataTransfer` 被屏蔽),所以 **→** 按钮是导入的可靠入口。 +- 注:VS Code 的跨 Webview 拖拽不可用(各 webview 是不同 origin 的 iframe,`dataTransfer` 被屏蔽),所以「添加到标注管理」按钮是导入的可靠入口。 - **标注编辑器**同样支持该模式:工具栏「坐标 (C)」或按 `C` 键后框选,直接复制同样的 `x,y,tox,toy` 归一化坐标,不会创建标注框、不改动 COCO。得到的框同样带手柄可继续微调,每次调整结束重新复制;点击图片非交互部分清除。快捷键可用 `okScriptToolkit.annotationKeybindings` 的 `copyCoords` 覆盖。 -### 任务启动 +### 控制台(任务运行)

- 任务启动:参数表单与运行日志 + 控制台:参数表单与运行日志

- 从目标项目的 `src/config.py` / `config.py` 自动解析所有一次性任务和触发任务,生成完整的参数配置表单。 @@ -139,7 +140,10 @@ self.wait_click_feature(feature=fL.give_gift, time_out=10) - **不污染目标项目配置**:执行器运行时,ok 框架对 `configs/` 与截图的读写全部改道到工作区的沙箱目录 `.vscode/ok-script-toolkit/`,**目标项目的配置文件与截图全程保持原样**(`devices.json` 做桥接拷贝以复用游戏连接)。调试时可以放心地改参数试跑,不会弄脏项目。 - 执行器可随时暂停/恢复(全局挂起轮询与任务),也可以「停止当前任务」而不关闭执行器;运行日志输出到专属输出频道。 - **全局配置接管**:目标项目的全局配置组(ok 框架 GlobalConfig 的可见分组)由探针一并解析,在控制台「配置」分段以参数快照呈现——修改即保存、可一键恢复默认;改动经 `gparams` 即时推送给运行中的执行器,执行器启动时以 `OK_TOOLKIT_GCONFIG` 注入全量快照。同样只写沙箱、不碰目标项目配置。 -- **控制台视图**:任务启动器与工具箱统一在「ok-script 控制台」的四个分段(任务 / 游戏 / 配置 / 账号)里管理;顶栏健康度条实时反映执行器状态,空闲时详情面板显示运行中心(当前任务 / 执行队列 / 触发轮询),任务卡悬停弹出只读摘要。 +- **控制台视图**:任务运行与游戏连接统一在「控制台」的四个分段(任务 / 游戏 / 配置 / 账号)里管理;顶栏健康度条实时反映执行器状态,空闲时详情面板显示运行中心(当前任务 / 执行队列 / 触发轮询),任务卡悬停弹出只读摘要。侧边栏较窄时,分段导航会收成图标条(≤640px)或顶部分段条(≤480px)。 +- **状态栏与命令**:状态栏左侧显示执行器状态(空闲 / 启动中 / 运行中的任务 + 排队数 / 已暂停),点击打开控制台;控制台视图标题栏和命令面板提供「运行任务… / 启动 / 暂停 / 继续 / 停止当前任务 / 关闭执行器 / 查看日志 / 连接游戏」等命令,按执行器状态显隐。运行中 + 排队的任务数显示在视图徽标上。 +- **错误就地显示**:项目路径缺失、Python 不存在、执行器异常退出等错误显示在控制台横幅里,并带「设置项目路径 / 设置 Python 路径 / 查看日志 / 重试」等下一步按钮;控制台不可见时才退回通知(同样带按钮)。 +- **角色技能管理入口**在「配置」分段;未检测到角色数据(`characterMasterFile` / `characterSkillsDirectory` 都不存在)时隐藏,命令面板里的同名命令也一并隐藏。 ### 角色技能管理 @@ -158,8 +162,8 @@ self.wait_click_feature(feature=fL.give_gift, time_out=10) ### 多语言支持 -- 扩展界面(通知、输出频道、hover、模板面板、任务启动器、工具箱和角色技能管理面板)支持简体中文、繁体中文、英文、日文、韩文和西班牙文,默认跟随 VS Code 显示语言。 -- 侧边栏分为 **ok-script 工具**(控制台)、**ok-script 资源**(资源预览 + 标注管理)和 **ok-script 临时截图** 三个独立活动栏容器。 +- 扩展界面(通知、输出频道、hover、资源预览、标注管理、控制台和角色技能管理面板)支持简体中文、繁体中文、英文、日文、韩文和西班牙文,默认跟随 VS Code 显示语言。 +- 侧边栏分为 **ok-script 工具**(控制台)、**ok-script 资源**(资源预览 + 标注管理)和 **ok-script 临时截图** 三个独立活动栏容器。界面图标统一使用 VS Code codicons。 - 代码提示中的语言数据始终使用目标项目自身的 locale 和原始协议值,不受插件界面语言影响。 > [!NOTE] @@ -192,6 +196,8 @@ self.wait_click_feature(feature=fL.give_gift, time_out=10) ## 配置 +设置界面按用途分为 5 个分类:**ok-script:代码提示**、**资源与标注**、**截图**、**控制台与任务**、**角色数据**。 + | 配置项 | 默认值 | 说明 | |---|---|---| | `okScriptToolkit.langDirectory` | `assets/lang` | lang JSON 目录(相对工作区根) | @@ -206,8 +212,8 @@ self.wait_click_feature(feature=fL.give_gift, time_out=10) | `okScriptToolkit.positionJsonPath` | `src/scene/positions.json` | Position JSON 发布的项目相对路径;对应项目文件的 `position.jsonPath` | | `okScriptToolkit.positionPythonDirectory` | `src/scene` | 生成 `ScreenRatio.py` 和 `PositionMap.py` 的项目相对目录;对应项目文件的 `position.pythonDirectory` | | `okScriptToolkit.effectsFile` | `src/data/effects.py` | 技能效果 ID 定义文件(`EffectType` 枚举与 `EFFECT_DESCRIPTIONS`),相对工作区根目录 | -| `okScriptToolkit.okScriptProjectPath` | 空 | 任务启动器使用的 ok-script 项目根目录;为空时尝试使用当前工作区 | -| `okScriptToolkit.okScriptPython` | 空 | 任务启动器使用的 Python;为空时优先使用目标项目 `.venv/Scripts/python.exe` | +| `okScriptToolkit.okScriptProjectPath` | 空 | 控制台运行任务使用的 ok-script 项目根目录;为空时尝试使用当前工作区 | +| `okScriptToolkit.okScriptPython` | 空 | 控制台运行任务使用的 Python;为空时优先使用目标项目 `.venv/Scripts/python.exe` | | `okScriptToolkit.captureMethod` | `auto` | 游戏窗口截图方式:`auto` / `wgc` / `bitblt` / `foreground` | | `okScriptToolkit.characterProjectPath` | 空 | 角色技能管理面板的数据项目;为空时使用 `okScriptProjectPath` 或当前工作区 | | `okScriptToolkit.characterMasterFile` | `assets/data/characters.json` | 角色主表 JSON | @@ -304,16 +310,19 @@ self.wait_click_ocr(match=self.lang.zip_line_mixin.k_2f4f4a2f, ...) | 命令 | 快捷键 | 说明 | |---|---|---| | `ok-script 工具箱: 入门指南` | — | 打开交互式入门引导(加载项目 → 制作视觉资源 → 发布资源 → 运行和调试) | -| `ok-script 工具箱: 打开资源预览` | `Ctrl+Alt+T`(macOS `Cmd+Alt+T`,需聚焦 Python 编辑器) | 聚焦活动栏中的资源预览侧边栏视图 | +| `ok-script 工具箱: 打开资源预览` | `Ctrl+Alt+T`(macOS `Cmd+Alt+T`,需聚焦 Python 编辑器) | 聚焦活动栏中的资源预览视图 | | `ok-script 工具箱: 在编辑器中打开资源预览` | — | 在编辑器区打开大窗口网格视图 | -| `ok-script 工具箱: 打开控制台` | — | 聚焦活动栏中的控制台(任务 / 游戏 / 配置 / 账号)视图 | -| `ok-script 工具箱: 打开角色技能管理面板` | — | 打开角色、技能、效果、强化组和名称本地化管理页 | +| `ok-script 工具箱: 打开控制台` | — | 聚焦活动栏中的控制台视图 | +| `ok-script 工具箱: 控制台:运行任务…` | — | 从已加载的一次性任务里选一个入队(执行器未启动时会先启动) | +| `ok-script 工具箱: 控制台:启动执行器 / 暂停执行器 / 继续执行器 / 停止当前任务 / 关闭执行器` | — | 与控制台按钮同一套逻辑;按执行器状态在命令面板和视图标题栏里显隐 | +| `ok-script 工具箱: 控制台:刷新任务 / 查看日志 / 连接游戏 / 断开游戏` | — | 重新解析任务列表、打开输出频道、连接或断开游戏窗口 | +| `ok-script 工具箱: 打开角色技能管理` | — | 打开角色、技能、效果、强化组和名称本地化管理页;未检测到角色数据时在命令面板中隐藏 | | `ok-script 工具箱: 打开标注管理` | — | 在编辑器区打开标注管理大窗口面板 | -| `ok-script 工具箱: 打开资源发布` | — | 打开统一资源发布面板(发布 Template / Rect / Point 资源) | -| `ok-script 工具箱: 打开标注编辑器` | — | 提示在标注管理面板中点击图片以进入统一标注编辑器 | +| `ok-script 工具箱: 打开标注编辑器…` | — | 从标注管理的图片列表中选一张(显示标注数),直接打开 COCO 标注编辑器 | +| `ok-script 工具箱: 发布资源…` | — | 打开标注管理并直接进入发布流程:选择 Template / Rect / Point 后发布 | | `ok-script 工具箱: 打开临时截图` | — | 聚焦活动栏中的临时截图视图 | | `ok-script 工具箱: 截图并打开标注管理` | `Ctrl+Alt+S`(macOS `Cmd+Alt+S`) | 打开标注管理面板并立即截图。复用面板自己的截图动作,截图会登记进 COCO。键位可在「键盘快捷方式」里改 | -| `ok-script 工具箱: 项目约定 vs 我的设置` | — | 列出参与取值链的 16 项设置,显示每一项的**生效值来自哪一层**(我的设置 / 项目约定 / 内置默认)。被个人设置覆盖过的项带一个「恢复」按钮,一键回到项目约定 | +| `ok-script 工具箱: 项目约定 vs 我的设置` | — | 列出参与取值链的设置项,显示每一项的**生效值来自哪一层**(我的设置 / 项目约定 / 内置默认)。被个人设置覆盖过的项带一个「恢复」按钮,一键回到项目约定。用于解决"我改过一次就再也看不到团队改了什么" | ## 更新后不生效 diff --git a/docs/design-system.en.md b/docs/design-system.en.md index 3daa363a..47f31f08 100644 --- a/docs/design-system.en.md +++ b/docs/design-system.en.md @@ -2,7 +2,7 @@ [简体中文](design-system.md) | [English](design-system.en.md) -> This is the authoritative UI specification for the entire project. All webview panels (console / templatePanel / templateAssetPanel / tempScreenshots / annotationPanel / characterManager / boxPanel) must follow it. +> This is the authoritative UI specification for the entire project. All webview panels (console / templatePanel / templateAssetPanel / tempScreenshots / annotationPanel / characterManager) must follow it. > Implementation sources: `media/shared/tokens.css` (design tokens) and `media/shared/controls.css` (shared controls). > **Pages compose these classes; they must not independently redefine visual rules.** @@ -55,7 +55,7 @@ Buttons of the same kind share height (`--control-h-sm/md/lg`), padding (`--spac ## 4. Shared Size Scale -- Spacing: `--space-xs(4) / sm(6) / md(10) / lg(14) / xl(20)`. +- Spacing: `--space-xs(4) / sm(8) / md(12) / lg(16) / xl(24)`. - Control height: `--control-h-sm(24) / md(30) / lg(34)`. - Radius: `--radius-sm(5) / md(8) / lg(11) / pill`. - Font size: `--font-xs(11) / sm(12) / md(13) / lg(15)`; weights only `--weight-regular(400)` / `--weight-medium(500)`. @@ -95,8 +95,13 @@ media/shared/tokens.css Colors · Typography · Spacing · Radius · Border media/shared/controls.css Button(primary/secondary/mini/ghost/icon) · Input · Select · Checkbox/Switch · Tag · Card · Toolbar · SectionTitle · Empty/Broken/Hint · Divider · Clickability rules ([role=button], actual-button/clickable-row categories) + · .has-codicon / .is-icon-only (icon button alignment and size) +media/shared/codicons/ @vscode/codicons 0.0.36 (codicon.css + codicon.ttf, vendored unchanged) +media/shared/icons.js OkIcons.icon / label / iconOnly — the single way panels create icons ``` +**Icon rule (2026-10-09):** UI icons always use codicons (the same set as native VS Code UI). Emoji and Unicode glyphs (`▶ ⚙ ⇄ ⟲ + 👁 × ↻` and similar) are no longer used: they drift with the font and screen readers read out the symbol names. Icon-only buttons must have both `title` and `aria-label` (`OkIcons.iconOnly` handles this). One meaning, one icon: sync defaults `sync`, restore factory defaults `discard`, swap annotations `arrow-swap`, delete `trash`, view original `go-to-file` / `eye`. Panel HTML must load `__SHARED_CODICONS_URI__` and `__SHARED_ICONS_URI__`, and the CSP must include `font-src __CSP_SOURCE__`. + Connect a new panel in **three steps; omitting any step silently breaks styling**: 1. In `index.html`, load `__SHARED_TOKENS_URI__` → `__SHARED_CONTROLS_URI__` → panel styles in that order. This is cascade precedence; panel styles may override the shared layer. @@ -122,7 +127,7 @@ Connect a new panel in **three steps; omitting any step silently breaks styling* ## Implementation Progress -2026-10-01 addendum: box panels/galleries share `media/boxPanel`, connected through `src/boxPanels.ts` and included in the static audit. The table and six-panel record below describe the 2026-09-23 migration baseline, not a reason to omit newer panels. +2026-10-09 addendum: the standalone box panel/gallery (`media/boxPanel`, `src/boxPanels.ts`) was folded into the unified annotation editor and resource preview and has been removed; the position-preview helpers used by hover and completion now live in `src/positionPreview.ts`. The table and six-panel record below describe the 2026-09-23 migration baseline; new panels must still be registered in the static audit. | Stage | Work | Status | |---|---|---| diff --git a/docs/design-system.md b/docs/design-system.md index 658228ba..97e4e36a 100644 --- a/docs/design-system.md +++ b/docs/design-system.md @@ -3,7 +3,7 @@ [简体中文](design-system.md) | [English](design-system.en.md) > 本文件是全项目 UI 的唯一权威规范。所有 webview 面板(console / templatePanel / -> templateAssetPanel / tempScreenshots / annotationPanel / characterManager / boxPanel)必须遵循。 +> templateAssetPanel / tempScreenshots / annotationPanel / characterManager)必须遵循。 > 实现真源:`media/shared/tokens.css`(Design Tokens)+ `media/shared/controls.css`(共享控件), > **页面只负责组合这些类,不得自行重定义视觉规则。** @@ -59,7 +59,7 @@ Dialog·Modal / 状态提示 / Loading / 空状态 / 错误状态。同类组件 ## 4. 统一尺寸体系 -- 间距:`--space-xs(4) / sm(6) / md(10) / lg(14) / xl(20)` +- 间距:`--space-xs(4) / sm(8) / md(12) / lg(16) / xl(24)` - 控件高度:`--control-h-sm(24) / md(30) / lg(34)` - 圆角:`--radius-sm(5) / md(8) / lg(11) / pill` - 字号:`--font-xs(11) / sm(12) / md(13) / lg(15)`;字重仅 `--weight-regular(400)` / `--weight-medium(500)` @@ -106,8 +106,18 @@ media/shared/tokens.css Colors · Typography · Spacing · Radius · Border media/shared/controls.css Button(主/次/迷你/幽灵/图标) · Input · Select · Checkbox/Switch · Tag · Card · Toolbar · SectionTitle · Empty/Broken/Hint · Divider · 可点击性硬规范([role=button]、真按钮/行级区分层清单) + · .has-codicon / .is-icon-only(图标按钮的对齐与尺寸) +media/shared/codicons/ @vscode/codicons 0.0.36(codicon.css + codicon.ttf,原样内置) +media/shared/icons.js OkIcons.icon / label / iconOnly —— 面板里生成图标的唯一入口 ``` +**图标规范(2026-10-09)**:界面图标一律用 codicon(与 VS Code 原生 UI 同源), +不再用 emoji 或 Unicode 符号(`▶ ⚙ ⇄ ⟲ + 👁 × ↻` 等字形随字体漂移、读屏会念出符号名)。 +仅图标的按钮必须同时有 `title` 与 `aria-label`(`OkIcons.iconOnly` 自动处理)。 +同一语义只用一个图标:同步默认值 `sync`、恢复出厂 `discard`、交换标注 `arrow-swap`、删除 `trash`、 +查看原图 `go-to-file` / `eye`。面板 HTML 需引入 `__SHARED_CODICONS_URI__` 与 `__SHARED_ICONS_URI__`, +CSP 需含 `font-src __CSP_SOURCE__`。 + 新增面板接入方式(**三步,缺一步样式就静默失效**): 1. `index.html` 按顺序引入 `__SHARED_TOKENS_URI__` → `__SHARED_CONTROLS_URI__` → 面板自身样式 @@ -138,7 +148,7 @@ media/shared/controls.css Button(主/次/迷你/幽灵/图标) · Input · Se ## 落地进度 -2026-10-01 补充:框面板与框画廊共用 `media/boxPanel`,由 `src/boxPanels.ts` 接入共享层,静态审计已包含此目录。下表与“六个面板”记录的是 2026-09-23 的迁移基线,不能据此漏掉新增面板。 +2026-10-09 补充:独立的框面板 / 框画廊(`media/boxPanel`、`src/boxPanels.ts`)已并入统一标注编辑器与资源预览并被移除;悬停与补全使用的位置预览逻辑移到 `src/positionPreview.ts`。下表与“六个面板”记录的是 2026-09-23 的迁移基线,新增面板仍须登记进静态审计。 | 阶段 | 内容 | 状态 | |---|---|---| diff --git a/docs/interaction-parity-audit.en.md b/docs/interaction-parity-audit.en.md index a2bb7cfc..1caa7c1f 100644 --- a/docs/interaction-parity-audit.en.md +++ b/docs/interaction-parity-audit.en.md @@ -27,7 +27,7 @@ Sources: [parent registration](../package.json), [VS Code task page](../media/co | 06 | Template / Rect / Point modes | Three adjacent buttons, with the active mode highlighted | Mode combo box | All modes are immediately visible on one side; the other requires opening a dropdown | | 07 | Insert, copy, source buttons | Three persistent buttons at the bottom right of every thumbnail, directly bound to that card | Insert/copy/open in the top toolbar operate through `selectedValue`; no buttons inside the card | Direct target-card actions versus selecting a target and then using the toolbar | | 08 | Selection and target feedback | No list selection state used by these buttons; each button captures its resource | Single-selection `JBList`; renderer changes background, text, and border for selection | Persistent selection and toolbar dependence differ | -| 09 | Single/double-click timing | Delayed single-click insertion, double-click copy, fixed 500 ms window; card buttons execute immediately | Same basic gestures, using system `awt.multiClickInterval` or a 500 ms fallback; insertion also checks that selection still matches the clicked item | Gesture results broadly match, but timing and selection dependencies differ | +| 09 | Single/double-click timing | (Since 2026-10-09) click = select, double-click / Enter = insert, Ctrl+C = copy, no delay window; card buttons execute immediately; all three thumbnail grids share these gestures and support arrow keys | Still click-to-insert and double-click copy, using system `awt.multiClickInterval` or a 500 ms fallback; insertion also checks that selection still matches the clicked item | **Needs sync**: VS Code moved to "click selects / double-click or Enter runs the primary action"; JetBrains `ThumbnailActions.kt` has not followed yet | | 10 | Grid and card geometry | Responsive CSS grid, 118 px minimum column width, 96 px thumbnail area, left-aligned names | `JList.HORIZONTAL_WRAP`, fixed cell width of 120 plus scaled margins, scaled 72 thumbnail height, centered 10 pt bold names truncated by character count | Density, space usage, alignment, and truncation differ; values are source constants rather than measured screen pixels | | 11 | Counts, empty/loading states | Filter/total counts, successful/failed thumbnail counts, explicit empty/no-match messages | Current preview component contains only toolbar, search, and list; failed loading results become an empty collection without equivalent count/empty/failure widgets | Empty data and loading failure are less distinguishable in this page; this does not assess every lower-level error path | diff --git a/docs/interaction-parity-audit.md b/docs/interaction-parity-audit.md index 59cf0359..2e5a240a 100644 --- a/docs/interaction-parity-audit.md +++ b/docs/interaction-parity-audit.md @@ -27,7 +27,7 @@ | 06 | Template / Rect / Point 切换 | 三个并排按钮,当前模式按钮突出显示 | 下拉框选择模式 | 一端直接可见三个模式,另一端需要打开下拉框 | | 07 | 插入、复制、原图按钮 | 每张缩略图右下角常驻三个按钮,直接操作该卡片 | 顶部工具栏的插入、复制、打开按钮,通过 `selectedValue` 操作选中项;卡片内无按钮 | 直接点目标卡片按钮,与先选目标再点顶部按钮,两条操作路径不同 | | 08 | 选中反馈与目标 | 卡片无用于这些按钮的列表选中态;每个按钮闭包绑定自身资源 | `JBList` 单选;渲染器按选中态改变背景、文字和边框 | 另一端有持续选中项,顶部按钮依赖它;操作目标的表达方式不同 | -| 09 | 单击/双击判定 | 卡片单击延迟插入,双击复制;统一使用 500 ms;卡片按钮立即执行 | 同样单击插入、双击复制,但等待系统 `awt.multiClickInterval`,不可用时才是 500 ms;插入还要求当前选中项与点击项相同 | 单击/双击结果大体相同,但时序与选中依赖不同 | +| 09 | 单击/双击判定 | (2026-10-09 起)单击 = 选中、双击 / Enter = 插入、Ctrl+C = 复制,无延迟窗口;卡片按钮立即执行;三处缩略图同一套手势并支持方向键 | 仍是单击插入、双击复制,等待系统 `awt.multiClickInterval`,不可用时才是 500 ms;插入还要求当前选中项与点击项相同 | **待同步**:VS Code 已改为「单击选中 / 双击或 Enter 主操作」,JetBrains 端 `ThumbnailActions.kt` 尚未跟进 | | 10 | 网格与卡片规格 | CSS 自适应网格,最小列宽 118 px;缩略图区域 96 px;名称靠左 | `JList.HORIZONTAL_WRAP`,固定格宽为 120 加缩放边距;缩略图 72 加宿主缩放;名称居中,10 pt 粗体,按字符截短 | 排列密度、空间利用、标题对齐和截断方式不同;数值来自源码,非实测像素 | | 11 | 计数、空态、缩略图状态 | 展示筛选数/总数、加载成功/失败数;无资源、无匹配有明确文字 | 当前预览组件只有工具栏、搜索和列表;加载结果异常回退为空集合,没有同等计数、空态和失败统计控件 | 空列表与加载失败更难从页面区分;这里未判断全部底层错误处理 | diff --git a/l10n/bundle.l10n.es.json b/l10n/bundle.l10n.es.json index 326f57f5..c8ef5425 100644 --- a/l10n/bundle.l10n.es.json +++ b/l10n/bundle.l10n.es.json @@ -71,7 +71,6 @@ "No Python editor is available; copied instead: {text}": "No hay un editor de Python disponible; se copió en su lugar: {text}", "ok-script-toolkit: Generating source image annotation…": "ok-script-toolkit: Generando anotación de la imagen original…", "Failed to generate annotated image: source image could not be decoded or was missing": "No se pudo generar la imagen anotada: no se pudo decodificar la imagen original o falta el archivo", - "Template Gallery": "Galería de plantillas", "Category": "Categoría", "Description": "Descripción", "Current": "Actual", @@ -140,14 +139,12 @@ "Connecting to game window…": "Conectando a la ventana del juego (inicia el juego automáticamente si no está en ejecución)…", "Failed to connect game window: {error}": "Error al conectar con la ventana del juego: {error}", "Failed to disconnect game window: {error}": "Error al desconectar la ventana del juego: {error}", - "Reusing game connection from toolbox: {title} (PID {pid})": "Reutilizando la conexión del juego del kit de herramientas: {title} (PID {pid})", "▶ Enabling debug overlay…": "▶ Activando la superposición de depuración…", "⏹ Disabling debug overlay…": "⏹ Desactivando la superposición de depuración…", "⏹ Debug overlay: disabled": "⏹ Superposición de depuración: desactivada", "ok-script Overlay Host": "Anfitrión de superposición de ok-script", "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.": "Superposición residente: pulse Alt+clic derecho en dos esquinas del juego para copiar las coordenadas.", "Overlay host stopped.": "Anfitrión de superposición detenido.", - "Added to template assets: {name}": "Añadido a recursos de plantillas: {name}", "Annotation Editor": "Editor de anotaciones", "Auto-detected window config: {config}": "Configuración de ventana detectada: {config}", "Built-in default": "Valor predeterminado", @@ -157,7 +154,6 @@ "Deleted: {name}": "Eliminado: {name}", "Effective value and where it comes from. Use the button to drop your override.": "Valor efectivo y su origen. Usa el botón para quitar tu anulación.", "Enter game window title pattern (regex), or leave empty for all windows": "Introduce el patrón de título de la ventana (regex), o déjalo vacío para todas las ventanas", - "Failed to add to template assets: {error}": "No se pudo añadir a recursos de plantillas: {error}", "Failed to delete: {name}": "No se pudo eliminar: {name}", "Deleted the record for {name}, but the temporary file is still at {path}.": "Se eliminó el registro de {name}, pero el archivo temporal sigue en {path}.", "Failed to save screenshot.": "No se pudo guardar la captura.", @@ -181,7 +177,6 @@ "Screenshot saved: {name}": "Captura guardada: {name}", "Screenshot script not found. capture_game_window.py is missing from the extension.": "No se encontró el script de captura. Falta capture_game_window.py en la extensión.", "Source: {layer}": "Origen: {layer}", - "Template Assets": "Recursos de plantillas", "The dragged screenshot is no longer available.": "La captura arrastrada ya no está disponible.", "enhancementFallbackName": "Mejora {index}", "importImagesFilter": "Imágenes", @@ -198,7 +193,6 @@ "Not set — follows the project convention": "Sin configurar — sigue la convención del proyecto", "LabelEnum class name (leave empty to follow the project convention)": "Nombre de la clase LabelEnum (vacío para seguir la convención del proyecto)", "e.g. assets/data/LabelEnum.py or src/label_enum.py": "p. ej. assets/data/LabelEnum.py o src/label_enum.py", - "Please click an image in the Template Assets panel to open the annotation editor.": "Haz clic en una imagen del panel «Recursos de plantilla» para abrir el editor de anotaciones.", "The target file currently defines class {old}.": "El archivo de destino define actualmente la clase {old}.", "The target file already exists but its class name could not be recognized.": "El archivo de destino ya existe, pero no se pudo reconocer su nombre de clase.", "This save will rename it to {new}.": "Este guardado la renombrará a {new}.", @@ -308,5 +302,41 @@ "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.": "La salida de posiciones entra en conflicto con una carpeta activa de plantillas Split: {path}. Elige otra ruta de salida para las posiciones.", "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.": "No se pudo leer la configuración de plantillas en tiempo de ejecución. Corrige el intérprete o la configuración antes de publicar plantillas y posiciones juntas.", "The position output {position} conflicts with the template output {template}. Choose different output paths.": "La salida de posiciones {position} entra en conflicto con la salida de plantillas {template}. Elige rutas de salida distintas.", - "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "No se pudo determinar estáticamente la carpeta de plantillas Split del proyecto principal a partir de config.py. Usa una ruta literal o una expresión de ruta estática compatible." + "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "No se pudo determinar estáticamente la carpeta de plantillas Split del proyecto principal a partir de config.py. Usa una ruta literal o una expresión de ruta estática compatible.", + "Executor is starting. Click to open the Console.": "El ejecutor se está iniciando. Haz clic para abrir la consola.", + "Stop Executor": "Detener ejecutor", + "No images to annotate yet. Capture or import one in Annotation Management first.": "Aún no hay imágenes para anotar. Captura o importa una en Gestión de anotaciones.", + "Executor is paused. Click to open the Console.": "El ejecutor está en pausa. Haz clic para abrir la consola.", + "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.": "Ejecutor listo · {count} tarea(s) de activación habilitada(s). Haz clic para abrir la consola.", + "Set Project Path": "Configurar ruta del proyecto", + "Running: {task} · queued: {count}. Click to open the Console.": "En ejecución: {task} · en cola: {count}. Haz clic para abrir la consola.", + "Set Python Path": "Configurar ruta de Python", + "{count} temporary screenshot(s) waiting to be sorted": "{count} captura(s) temporal(es) por ordenar", + "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.": "Aún no se han cargado tareas únicas. Abre la consola y espera a que se cargue la lista.", + "Select a task to queue": "Selecciona una tarea para poner en cola", + "Reload Tasks": "Recargar tareas", + "Swap undone: '{first}' and '{second}' have their original annotations again.": "Intercambio deshecho: '{first}' y '{second}' recuperan sus anotaciones originales.", + "Annotation Management": "Gestión de anotaciones", + "Executor is not running. Click to open the Console.": "El ejecutor no está en marcha. Haz clic para abrir la consola.", + "Added to Annotation Management: {name}": "Añadido a Gestión de anotaciones: {name}", + "Failed to undo the swap.": "No se pudo deshacer el intercambio.", + "{count} annotations": "{count} anotaciones", + "Select a task to run (the executor will start first)": "Selecciona una tarea para ejecutar (primero se iniciará el ejecutor)", + "Undo": "Deshacer", + "Executor closed": "Ejecutor cerrado", + "This image is not in Annotation Management yet. Add it there first.": "Esta imagen aún no está en Gestión de anotaciones. Añádela primero.", + "Show Logs": "Ver registros", + "{count} task(s) running or queued": "{count} tarea(s) en ejecución o en cola", + "ok-script: idle": "ok-script: inactivo", + "ok-script Executor": "Ejecutor de ok-script", + "Annotations changed after the swap, so it cannot be undone automatically.": "Las anotaciones cambiaron después del intercambio; no se puede deshacer automáticamente.", + "ok-script: starting…": "ok-script: iniciando…", + "Executor exited with code {code}": "El ejecutor terminó con el código {code}", + "Select an image to annotate": "Selecciona una imagen para anotar", + "Failed to add to Annotation Management: {error}": "No se pudo añadir a Gestión de anotaciones: {error}", + "Open Annotation Management": "Abrir gestión de anotaciones", + "Reusing the Console game connection: {title} (PID {pid})": "Reutilizando la conexión del juego de la consola: {title} (PID {pid})", + "ok-script: paused": "ok-script: en pausa", + "Retry": "Reintentar", + "ok-script: ready": "ok-script: listo" } diff --git a/l10n/bundle.l10n.ja.json b/l10n/bundle.l10n.ja.json index c6780063..8cf4b542 100644 --- a/l10n/bundle.l10n.ja.json +++ b/l10n/bundle.l10n.ja.json @@ -71,7 +71,6 @@ "No Python editor is available; copied instead: {text}": "利用可能な Python エディターがないためコピーしました: {text}", "ok-script-toolkit: Generating source image annotation…": "ok-script-toolkit: 元画像の注釈を生成しています…", "Failed to generate annotated image: source image could not be decoded or was missing": "注釈画像を生成できませんでした。元画像をデコードできないか、ファイルがありません。", - "Template Gallery": "テンプレートギャラリー", "Category": "カテゴリ", "Description": "説明", "Current": "現在", @@ -140,14 +139,12 @@ "Connecting to game window…": "ゲームウィンドウに接続中(未起動なら自動で起動します)…", "Failed to connect game window: {error}": "ゲームウィンドウへの接続に失敗しました: {error}", "Failed to disconnect game window: {error}": "ゲームウィンドウの接続解除に失敗しました: {error}", - "Reusing game connection from toolbox: {title} (PID {pid})": "ツールボックスのゲーム接続を再利用: {title}(PID {pid})", "▶ Enabling debug overlay…": "▶ デバッグ オーバーレイを有効化中…", "⏹ Disabling debug overlay…": "⏹ デバッグ オーバーレイを無効化中…", "⏹ Debug overlay: disabled": "⏹ デバッグ オーバーレイ: 無効", "ok-script Overlay Host": "ok-script オーバーレイホスト", "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.": "オーバーレイ常駐中:ゲーム画面の2点を Alt+右クリックすると枠座標がクリップボードにコピーされます。", "Overlay host stopped.": "オーバーレイホストを停止しました。", - "Added to template assets: {name}": "テンプレートアセットに追加しました: {name}", "Annotation Editor": "アノテーションエディター", "Auto-detected window config: {config}": "ウィンドウ設定を自動検出: {config}", "Built-in default": "組み込みの既定値", @@ -157,7 +154,6 @@ "Deleted: {name}": "削除しました: {name}", "Effective value and where it comes from. Use the button to drop your override.": "有効値とその由来。ボタンで自分の上書きを解除できます。", "Enter game window title pattern (regex), or leave empty for all windows": "ゲームウィンドウのタイトル正規表現を入力(空欄ですべてのウィンドウ)", - "Failed to add to template assets: {error}": "テンプレートアセットへの追加に失敗: {error}", "Failed to delete: {name}": "削除に失敗: {name}", "Deleted the record for {name}, but the temporary file is still at {path}.": "{name} の記録は削除しましたが、一時ファイルが {path} に残っています。", "Failed to save screenshot.": "スクリーンショットの保存に失敗しました。", @@ -181,7 +177,6 @@ "Screenshot saved: {name}": "スクリーンショットを保存しました: {name}", "Screenshot script not found. capture_game_window.py is missing from the extension.": "スクリーンショットスクリプトが見つかりません。拡張機能に capture_game_window.py がありません。", "Source: {layer}": "由来: {layer}", - "Template Assets": "テンプレートアセット", "The dragged screenshot is no longer available.": "ドラッグされたスクリーンショットは存在しません。", "enhancementFallbackName": "強化 {index}", "importImagesFilter": "画像", @@ -198,7 +193,6 @@ "Not set — follows the project convention": "未設定 — プロジェクト規約に従います", "LabelEnum class name (leave empty to follow the project convention)": "LabelEnum クラス名(空欄ならプロジェクト規約に従います)", "e.g. assets/data/LabelEnum.py or src/label_enum.py": "例: assets/data/LabelEnum.py または src/label_enum.py", - "Please click an image in the Template Assets panel to open the annotation editor.": "アノテーションエディターを開くには、「テンプレートアセット」パネルで画像をクリックしてください。", "The target file currently defines class {old}.": "対象ファイルの現在のクラス名は {old} です。", "The target file already exists but its class name could not be recognized.": "対象ファイルは既に存在しますが、クラス名を判別できませんでした。", "This save will rename it to {new}.": "この保存で {new} に改名されます。", @@ -308,5 +302,41 @@ "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.": "位置データの出力先が有効な Split テンプレートフォルダーと競合しています:{path}。別の位置データ出力先を選択してください。", "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.": "実行時のテンプレート設定を読み取れませんでした。テンプレートと位置データをまとめて公開する前に、インタープリターまたは設定を修正してください。", "The position output {position} conflicts with the template output {template}. Choose different output paths.": "位置データの出力先 {position} がテンプレートの出力先 {template} と競合しています。別の出力先を選択してください。", - "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "config.py からメインプロジェクトの Split テンプレートフォルダーを静的に特定できません。パスのリテラルまたは対応する静的パス式を使用してください。" + "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "config.py からメインプロジェクトの Split テンプレートフォルダーを静的に特定できません。パスのリテラルまたは対応する静的パス式を使用してください。", + "Executor is starting. Click to open the Console.": "エグゼキューターを起動しています。クリックしてコンソールを開きます。", + "Stop Executor": "エグゼキューターを停止", + "No images to annotate yet. Capture or import one in Annotation Management first.": "アノテーションできる画像がまだありません。先にアノテーション管理でキャプチャまたはインポートしてください。", + "Executor is paused. Click to open the Console.": "エグゼキューターは一時停止中です。クリックしてコンソールを開きます。", + "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.": "エグゼキューター準備完了 · トリガータスク {count} 件有効。クリックしてコンソールを開きます。", + "Set Project Path": "プロジェクトパスを設定", + "Running: {task} · queued: {count}. Click to open the Console.": "実行中: {task} · 待機: {count}。クリックしてコンソールを開きます。", + "Set Python Path": "Python パスを設定", + "{count} temporary screenshot(s) waiting to be sorted": "未整理の一時スクリーンショット {count} 枚", + "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.": "一回限りのタスクがまだ読み込まれていません。コンソールを開いてタスク一覧の読み込みを待ってください。", + "Select a task to queue": "キューに追加するタスクを選択", + "Reload Tasks": "タスクを再読み込み", + "Swap undone: '{first}' and '{second}' have their original annotations again.": "交換を元に戻しました: '{first}' と '{second}' は元のアノテーションに戻りました。", + "Annotation Management": "アノテーション管理", + "Executor is not running. Click to open the Console.": "エグゼキューターは起動していません。クリックしてコンソールを開きます。", + "Added to Annotation Management: {name}": "アノテーション管理に追加しました: {name}", + "Failed to undo the swap.": "交換を元に戻せませんでした。", + "{count} annotations": "{count} 件のアノテーション", + "Select a task to run (the executor will start first)": "実行するタスクを選択(先にエグゼキューターを起動します)", + "Undo": "元に戻す", + "Executor closed": "エグゼキューターを終了しました", + "This image is not in Annotation Management yet. Add it there first.": "この画像はまだアノテーション管理にありません。先に追加してください。", + "Show Logs": "ログを表示", + "{count} task(s) running or queued": "{count} 件のタスクが実行中または待機中", + "ok-script: idle": "ok-script: 待機中", + "ok-script Executor": "ok-script エグゼキューター", + "Annotations changed after the swap, so it cannot be undone automatically.": "交換後にアノテーションが変更されたため、自動で元に戻せません。", + "ok-script: starting…": "ok-script: 起動中…", + "Executor exited with code {code}": "エグゼキューターが終了しました(終了コード {code})", + "Select an image to annotate": "アノテーションする画像を選択", + "Failed to add to Annotation Management: {error}": "アノテーション管理への追加に失敗: {error}", + "Open Annotation Management": "アノテーション管理を開く", + "Reusing the Console game connection: {title} (PID {pid})": "コンソールのゲーム接続を再利用: {title}(PID {pid})", + "ok-script: paused": "ok-script: 一時停止中", + "Retry": "再試行", + "ok-script: ready": "ok-script: 準備完了" } diff --git a/l10n/bundle.l10n.json b/l10n/bundle.l10n.json index 2bfa75c9..1b160199 100644 --- a/l10n/bundle.l10n.json +++ b/l10n/bundle.l10n.json @@ -120,7 +120,6 @@ "No Python editor is available; copied instead: {text}": "No Python editor is available; copied instead: {text}", "ok-script-toolkit: Generating source image annotation…": "ok-script-toolkit: Generating source image annotation…", "Failed to generate annotated image: source image could not be decoded or was missing": "Failed to generate annotated image: source image could not be decoded or was missing", - "Template Gallery": "Template Gallery", "Category": "Category", "Description": "Description", "Current": "Current", @@ -134,7 +133,6 @@ "Source": "Source", "At runtime, fix_match_regex translates this pattern using ocr.po before calling re.compile.": "At runtime, fix_match_regex translates this pattern using ocr.po before calling re.compile.", "{count} keys": "{count} keys", - "Please click an image in the Template Assets panel to open the annotation editor.": "Please click an image in the Template Assets panel to open the annotation editor.", "LabelEnum.py file path (relative to workspace root, leave empty to skip)": "LabelEnum.py file path (relative to workspace root, leave empty to skip)", "Enum file path must be relative and stay within the workspace root.": "Enum file path must be relative and stay within the workspace root.", "Enum file path": "Enum file path", @@ -149,14 +147,12 @@ "Connecting to game window…": "Connecting to game window (auto-starts the game if not running)…", "Failed to connect game window: {error}": "Failed to connect game window: {error}", "Failed to disconnect game window: {error}": "Failed to disconnect game window: {error}", - "Reusing game connection from toolbox: {title} (PID {pid})": "Reusing game connection from toolbox: {title} (PID {pid})", "▶ Enabling debug overlay…": "▶ Enabling debug overlay…", "⏹ Disabling debug overlay…": "⏹ Disabling debug overlay…", "⏹ Debug overlay: disabled": "⏹ Debug overlay: disabled", "ok-script Overlay Host": "ok-script Overlay Host", "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.": "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.", "Overlay host stopped.": "Overlay host stopped.", - "Added to template assets: {name}": "Added to template assets: {name}", "Annotation Editor": "Annotation Editor", "Auto-detected window config: {config}": "Auto-detected window config: {config}", "Built-in default": "Built-in default", @@ -166,7 +162,6 @@ "Deleted: {name}": "Deleted: {name}", "Effective value and where it comes from. Use the button to drop your override.": "Effective value and where it comes from. Use the button to drop your override.", "Enter game window title pattern (regex), or leave empty for all windows": "Enter game window title pattern (regex), or leave empty for all windows", - "Failed to add to template assets: {error}": "Failed to add to template assets: {error}", "Failed to delete: {name}": "Failed to delete: {name}", "Deleted the record for {name}, but the temporary file is still at {path}.": "Deleted the record for {name}, but the temporary file is still at {path}.", "Failed to save screenshot.": "Failed to save screenshot.", @@ -190,7 +185,6 @@ "Screenshot saved: {name}": "Screenshot saved: {name}", "Source: {layer}": "Source: {layer}", "Screenshot script not found. capture_game_window.py is missing from the extension.": "Screenshot script not found. capture_game_window.py is missing from the extension.", - "Template Assets": "Template Assets", "The dragged screenshot is no longer available.": "The dragged screenshot is no longer available.", "enhancementFallbackName": "Enhancement {index}", "importImagesFilter": "Images", @@ -308,5 +302,41 @@ "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.": "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.", "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.": "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.", "The position output {position} conflicts with the template output {template}. Choose different output paths.": "The position output {position} conflicts with the template output {template}. Choose different output paths.", - "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression." + "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.", + "Executor is starting. Click to open the Console.": "Executor is starting. Click to open the Console.", + "Stop Executor": "Stop Executor", + "No images to annotate yet. Capture or import one in Annotation Management first.": "No images to annotate yet. Capture or import one in Annotation Management first.", + "Executor is paused. Click to open the Console.": "Executor is paused. Click to open the Console.", + "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.": "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.", + "Set Project Path": "Set Project Path", + "Running: {task} · queued: {count}. Click to open the Console.": "Running: {task} · queued: {count}. Click to open the Console.", + "Set Python Path": "Set Python Path", + "{count} temporary screenshot(s) waiting to be sorted": "{count} temporary screenshot(s) waiting to be sorted", + "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.": "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.", + "Select a task to queue": "Select a task to queue", + "Reload Tasks": "Reload Tasks", + "Swap undone: '{first}' and '{second}' have their original annotations again.": "Swap undone: '{first}' and '{second}' have their original annotations again.", + "Annotation Management": "Annotation Management", + "Executor is not running. Click to open the Console.": "Executor is not running. Click to open the Console.", + "Added to Annotation Management: {name}": "Added to Annotation Management: {name}", + "Failed to undo the swap.": "Failed to undo the swap.", + "{count} annotations": "{count} annotations", + "Select a task to run (the executor will start first)": "Select a task to run (the executor will start first)", + "Undo": "Undo", + "Executor closed": "Executor closed", + "This image is not in Annotation Management yet. Add it there first.": "This image is not in Annotation Management yet. Add it there first.", + "Show Logs": "Show Logs", + "{count} task(s) running or queued": "{count} task(s) running or queued", + "ok-script: idle": "ok-script: idle", + "ok-script Executor": "ok-script Executor", + "Annotations changed after the swap, so it cannot be undone automatically.": "Annotations changed after the swap, so it cannot be undone automatically.", + "ok-script: starting…": "ok-script: starting…", + "Executor exited with code {code}": "Executor exited with code {code}", + "Select an image to annotate": "Select an image to annotate", + "Failed to add to Annotation Management: {error}": "Failed to add to Annotation Management: {error}", + "Open Annotation Management": "Open Annotation Management", + "Reusing the Console game connection: {title} (PID {pid})": "Reusing the Console game connection: {title} (PID {pid})", + "ok-script: paused": "ok-script: paused", + "Retry": "Retry", + "ok-script: ready": "ok-script: ready" } diff --git a/l10n/bundle.l10n.ko.json b/l10n/bundle.l10n.ko.json index c4b6b71d..627dadf5 100644 --- a/l10n/bundle.l10n.ko.json +++ b/l10n/bundle.l10n.ko.json @@ -71,7 +71,6 @@ "No Python editor is available; copied instead: {text}": "사용 가능한 Python 편집기가 없어 대신 복사했습니다: {text}", "ok-script-toolkit: Generating source image annotation…": "ok-script-toolkit: 원본 이미지 주석 생성 중…", "Failed to generate annotated image: source image could not be decoded or was missing": "주석 이미지를 생성하지 못했습니다. 원본 이미지를 디코딩할 수 없거나 파일이 없습니다.", - "Template Gallery": "템플릿 갤러리", "Category": "분류", "Description": "설명", "Current": "현재", @@ -140,14 +139,12 @@ "Connecting to game window…": "게임 창에 연결하는 중(실행 중이 아니면 자동으로 시작)…", "Failed to connect game window: {error}": "게임 창 연결 실패: {error}", "Failed to disconnect game window: {error}": "게임 창 연결 해제 실패: {error}", - "Reusing game connection from toolbox: {title} (PID {pid})": "도구 상자의 게임 연결 재사용: {title}(PID {pid})", "▶ Enabling debug overlay…": "▶ 디버그 오버레이 활성화 중…", "⏹ Disabling debug overlay…": "⏹ 디버그 오버레이 비활성화 중…", "⏹ Debug overlay: disabled": "⏹ 디버그 오버레이: 꺼짐", "ok-script Overlay Host": "ok-script 오버레이 호스트", "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.": "오버레이 상주 중: 게임 화면의 두 모서리를 Alt+오른쪽 클릭하면 좌표가 클립보드에 복사됩니다.", "Overlay host stopped.": "오버레이 호스트가 중지되었습니다.", - "Added to template assets: {name}": "템플릿 에셋에 추가됨: {name}", "Annotation Editor": "어노테이션 편집기", "Auto-detected window config: {config}": "창 설정 자동 감지: {config}", "Built-in default": "내장 기본값", @@ -157,7 +154,6 @@ "Deleted: {name}": "삭제됨: {name}", "Effective value and where it comes from. Use the button to drop your override.": "적용 값과 그 출처입니다. 버튼으로 내 재정의를 해제할 수 있습니다.", "Enter game window title pattern (regex), or leave empty for all windows": "게임 창 제목 정규식을 입력하세요(비우면 모든 창)", - "Failed to add to template assets: {error}": "템플릿 에셋 추가 실패: {error}", "Failed to delete: {name}": "삭제 실패: {name}", "Deleted the record for {name}, but the temporary file is still at {path}.": "{name} 기록은 삭제했지만 임시 파일이 {path}에 남아 있습니다.", "Failed to save screenshot.": "스크린샷 저장에 실패했습니다.", @@ -181,7 +177,6 @@ "Screenshot saved: {name}": "스크린샷 저장됨: {name}", "Screenshot script not found. capture_game_window.py is missing from the extension.": "스크린샷 스크립트를 찾을 수 없습니다. 확장에 capture_game_window.py 가 없습니다.", "Source: {layer}": "출처: {layer}", - "Template Assets": "템플릿 에셋", "The dragged screenshot is no longer available.": "드래그한 스크린샷이 더 이상 존재하지 않습니다.", "enhancementFallbackName": "강화 {index}", "importImagesFilter": "이미지", @@ -198,7 +193,6 @@ "Not set — follows the project convention": "설정 안 됨 — 프로젝트 규약을 따름", "LabelEnum class name (leave empty to follow the project convention)": "LabelEnum 클래스 이름(비워 두면 프로젝트 규약을 따름)", "e.g. assets/data/LabelEnum.py or src/label_enum.py": "예: assets/data/LabelEnum.py 또는 src/label_enum.py", - "Please click an image in the Template Assets panel to open the annotation editor.": "주석 편집기를 열려면 \"템플릿 에셋\" 패널에서 이미지를 클릭하세요.", "The target file currently defines class {old}.": "대상 파일의 현재 클래스 이름은 {old} 입니다.", "The target file already exists but its class name could not be recognized.": "대상 파일이 이미 있지만 클래스 이름을 인식하지 못했습니다.", "This save will rename it to {new}.": "이번 저장으로 {new} 로 이름이 바뀝니다.", @@ -308,5 +302,41 @@ "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.": "위치 리소스 출력이 활성 Split 템플릿 폴더와 충돌합니다: {path}. 다른 위치 리소스 출력 경로를 선택하세요.", "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.": "런타임 템플릿 설정을 읽을 수 없습니다. 템플릿과 위치 리소스를 함께 게시하기 전에 인터프리터 또는 설정을 수정하세요.", "The position output {position} conflicts with the template output {template}. Choose different output paths.": "위치 리소스 출력 {position}이(가) 템플릿 출력 {template}과(와) 충돌합니다. 서로 다른 출력 경로를 선택하세요.", - "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "config.py에서 기본 프로젝트의 Split 템플릿 폴더를 정적으로 확인할 수 없습니다. 경로 리터럴이나 지원되는 정적 경로 식을 사용하세요." + "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "config.py에서 기본 프로젝트의 Split 템플릿 폴더를 정적으로 확인할 수 없습니다. 경로 리터럴이나 지원되는 정적 경로 식을 사용하세요.", + "Executor is starting. Click to open the Console.": "실행기를 시작하는 중입니다. 클릭하면 콘솔이 열립니다.", + "Stop Executor": "실행기 종료", + "No images to annotate yet. Capture or import one in Annotation Management first.": "어노테이션할 이미지가 아직 없습니다. 먼저 어노테이션 관리에서 캡처하거나 가져오세요.", + "Executor is paused. Click to open the Console.": "실행기가 일시 중지되었습니다. 클릭하면 콘솔이 열립니다.", + "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.": "실행기 준비됨 · 트리거 작업 {count}개 활성화. 클릭하면 콘솔이 열립니다.", + "Set Project Path": "프로젝트 경로 설정", + "Running: {task} · queued: {count}. Click to open the Console.": "실행 중: {task} · 대기: {count}. 클릭하면 콘솔이 열립니다.", + "Set Python Path": "Python 경로 설정", + "{count} temporary screenshot(s) waiting to be sorted": "정리 대기 중인 임시 스크린샷 {count}개", + "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.": "일회성 작업이 아직 로드되지 않았습니다. 콘솔을 열고 작업 목록이 로드될 때까지 기다리세요.", + "Select a task to queue": "대기열에 추가할 작업 선택", + "Reload Tasks": "작업 다시 로드", + "Swap undone: '{first}' and '{second}' have their original annotations again.": "교환 취소됨: '{first}'와 '{second}'가 원래 어노테이션으로 돌아갔습니다.", + "Annotation Management": "어노테이션 관리", + "Executor is not running. Click to open the Console.": "실행기가 실행 중이 아닙니다. 클릭하면 콘솔이 열립니다.", + "Added to Annotation Management: {name}": "어노테이션 관리에 추가됨: {name}", + "Failed to undo the swap.": "교환을 되돌리지 못했습니다.", + "{count} annotations": "어노테이션 {count}개", + "Select a task to run (the executor will start first)": "실행할 작업 선택(먼저 실행기를 시작합니다)", + "Undo": "실행 취소", + "Executor closed": "실행기가 종료되었습니다", + "This image is not in Annotation Management yet. Add it there first.": "이 이미지는 아직 어노테이션 관리에 없습니다. 먼저 추가하세요.", + "Show Logs": "로그 보기", + "{count} task(s) running or queued": "작업 {count}개 실행 또는 대기 중", + "ok-script: idle": "ok-script: 유휴", + "ok-script Executor": "ok-script 실행기", + "Annotations changed after the swap, so it cannot be undone automatically.": "교환 후 어노테이션이 변경되어 자동으로 되돌릴 수 없습니다.", + "ok-script: starting…": "ok-script: 시작 중…", + "Executor exited with code {code}": "실행기가 종료되었습니다(종료 코드 {code})", + "Select an image to annotate": "어노테이션할 이미지 선택", + "Failed to add to Annotation Management: {error}": "어노테이션 관리 추가 실패: {error}", + "Open Annotation Management": "어노테이션 관리 열기", + "Reusing the Console game connection: {title} (PID {pid})": "콘솔의 게임 연결 재사용: {title}(PID {pid})", + "ok-script: paused": "ok-script: 일시 중지됨", + "Retry": "다시 시도", + "ok-script: ready": "ok-script: 준비됨" } diff --git a/l10n/bundle.l10n.zh-cn.json b/l10n/bundle.l10n.zh-cn.json index d6f61573..4f29ff5c 100644 --- a/l10n/bundle.l10n.zh-cn.json +++ b/l10n/bundle.l10n.zh-cn.json @@ -120,7 +120,6 @@ "No Python editor is available; copied instead: {text}": "没有可用的 Python 编辑器,已改为复制:{text}", "ok-script-toolkit: Generating source image annotation…": "ok-script-toolkit:正在生成原图标注…", "Failed to generate annotated image: source image could not be decoded or was missing": "生成标注图失败:原图解码失败或文件缺失", - "Template Gallery": "模板面板", "Category": "分类", "Description": "描述", "Current": "当前", @@ -140,14 +139,12 @@ "Connecting to game window…": "正在连接游戏窗口(游戏未运行时会自动启动)…", "Failed to connect game window: {error}": "连接游戏窗口失败:{error}", "Failed to disconnect game window: {error}": "断开游戏窗口失败:{error}", - "Reusing game connection from toolbox: {title} (PID {pid})": "复用工具箱游戏连接:{title}(PID {pid})", "▶ Enabling debug overlay…": "▶ 正在开启调试浮层…", "⏹ Disabling debug overlay…": "⏹ 正在关闭调试浮层…", "⏹ Debug overlay: disabled": "⏹ 调试浮层:已关闭", "ok-script Overlay Host": "ok-script 浮层宿主", "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.": "浮层已常驻:Alt+右键点游戏画面两个角,框选坐标自动复制到剪贴板。", "Overlay host stopped.": "浮层宿主已停止。", - "Added to template assets: {name}": "已添加到模板素材: {name}", "Annotation Editor": "标注编辑器", "Auto-detected window config: {config}": "自动识别窗口配置: {config}", "Built-in default": "内置默认", @@ -157,7 +154,6 @@ "Deleted: {name}": "已删除: {name}", "Effective value and where it comes from. Use the button to drop your override.": "生效值及其来源。点按钮可清除你的覆盖。", "Enter game window title pattern (regex), or leave empty for all windows": "输入游戏窗口标题正则,留空表示匹配所有窗口", - "Failed to add to template assets: {error}": "添加到模板素材失败: {error}", "Failed to delete: {name}": "删除失败: {name}", "Deleted the record for {name}, but the temporary file is still at {path}.": "已删除 {name} 的记录,但临时文件还在 {path}。", "Failed to save screenshot.": "截图保存失败。", @@ -181,7 +177,6 @@ "Screenshot saved: {name}": "截图已保存: {name}", "Screenshot script not found. capture_game_window.py is missing from the extension.": "未找到截图脚本,扩展缺少 capture_game_window.py。", "Source: {layer}": "来源:{layer}", - "Template Assets": "模板素材", "The dragged screenshot is no longer available.": "被拖拽的截图已不存在。", "enhancementFallbackName": "强化 {index}", "importImagesFilter": "图片", @@ -198,7 +193,6 @@ "Not set — follows the project convention": "未设置 —— 跟随项目约定", "LabelEnum class name (leave empty to follow the project convention)": "LabelEnum 类名(留空则跟随项目约定)", "e.g. assets/data/LabelEnum.py or src/label_enum.py": "例如 assets/data/LabelEnum.py 或 src/label_enum.py", - "Please click an image in the Template Assets panel to open the annotation editor.": "请先在「模板资源」面板中单击一张图片,以打开标注编辑器。", "The target file currently defines class {old}.": "目标文件当前的类名是 {old}。", "The target file already exists but its class name could not be recognized.": "目标文件已存在,但没能识别出它的类名。", "This save will rename it to {new}.": "这次保存会把它改名为 {new}。", @@ -308,5 +302,41 @@ "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.": "位置资源的输出与当前启用的 Split 模板目录冲突:{path}。请选择其他位置资源输出路径。", "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.": "无法读取运行时模板配置。请先修复解释器或配置,再联合发布模板和位置资源。", "The position output {position} conflicts with the template output {template}. Choose different output paths.": "位置资源输出 {position} 与模板输出 {template} 冲突。请选择不同的输出路径。", - "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "无法从 config.py 静态确定主项目 Split 模板目录。请使用路径字面量或支持的静态路径表达式。" + "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "无法从 config.py 静态确定主项目 Split 模板目录。请使用路径字面量或支持的静态路径表达式。", + "Executor is starting. Click to open the Console.": "执行器启动中。点击打开控制台。", + "Stop Executor": "关闭执行器", + "No images to annotate yet. Capture or import one in Annotation Management first.": "还没有可标注的图片。请先在标注管理中截图或导入。", + "Executor is paused. Click to open the Console.": "执行器已暂停。点击打开控制台。", + "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.": "执行器就绪 · 已启用 {count} 个触发任务。点击打开控制台。", + "Set Project Path": "设置项目路径", + "Running: {task} · queued: {count}. Click to open the Console.": "运行中:{task} · 排队:{count}。点击打开控制台。", + "Set Python Path": "设置 Python 路径", + "{count} temporary screenshot(s) waiting to be sorted": "{count} 张临时截图待整理", + "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.": "尚未加载一次性任务。请打开控制台,等任务列表加载完成。", + "Select a task to queue": "选择要加入队列的任务", + "Reload Tasks": "重新加载任务", + "Swap undone: '{first}' and '{second}' have their original annotations again.": "已撤销交换:「{first}」和「{second}」恢复了原来的标注。", + "Annotation Management": "标注管理", + "Executor is not running. Click to open the Console.": "执行器未启动。点击打开控制台。", + "Added to Annotation Management: {name}": "已添加到标注管理:{name}", + "Failed to undo the swap.": "撤销交换失败。", + "{count} annotations": "{count} 个标注", + "Select a task to run (the executor will start first)": "选择要运行的任务(将先启动执行器)", + "Undo": "撤销", + "Executor closed": "执行器已关闭", + "This image is not in Annotation Management yet. Add it there first.": "这张图片还不在标注管理中,请先添加。", + "Show Logs": "查看日志", + "{count} task(s) running or queued": "{count} 个任务运行或排队中", + "ok-script: idle": "ok-script:空闲", + "ok-script Executor": "ok-script 执行器", + "Annotations changed after the swap, so it cannot be undone automatically.": "交换之后标注又有改动,无法自动撤销。", + "ok-script: starting…": "ok-script:启动中…", + "Executor exited with code {code}": "执行器异常退出(退出码 {code})", + "Select an image to annotate": "选择要标注的图片", + "Failed to add to Annotation Management: {error}": "添加到标注管理失败:{error}", + "Open Annotation Management": "打开标注管理", + "Reusing the Console game connection: {title} (PID {pid})": "复用控制台的游戏连接:{title}(PID {pid})", + "ok-script: paused": "ok-script:已暂停", + "Retry": "重试", + "ok-script: ready": "ok-script:就绪" } diff --git a/l10n/bundle.l10n.zh-tw.json b/l10n/bundle.l10n.zh-tw.json index 1325c5bb..ca8a76dc 100644 --- a/l10n/bundle.l10n.zh-tw.json +++ b/l10n/bundle.l10n.zh-tw.json @@ -71,7 +71,6 @@ "No Python editor is available; copied instead: {text}": "沒有可用的 Python 編輯器,已改為複製:{text}", "ok-script-toolkit: Generating source image annotation…": "ok-script-toolkit:正在產生原圖標註…", "Failed to generate annotated image: source image could not be decoded or was missing": "產生標註圖失敗:原圖無法解碼或檔案遺失", - "Template Gallery": "模板面板", "Category": "分類", "Description": "描述", "Current": "目前", @@ -140,14 +139,12 @@ "Connecting to game window…": "正在連線遊戲視窗(遊戲未執行時會自動啟動)…", "Failed to connect game window: {error}": "連線遊戲視窗失敗:{error}", "Failed to disconnect game window: {error}": "中斷遊戲視窗連線失敗:{error}", - "Reusing game connection from toolbox: {title} (PID {pid})": "複用工具箱遊戲連線:{title}(PID {pid})", "▶ Enabling debug overlay…": "▶ 正在開啟除錯浮層…", "⏹ Disabling debug overlay…": "⏹ 正在關閉除錯浮層…", "⏹ Debug overlay: disabled": "⏹ 除錯浮層:已關閉", "ok-script Overlay Host": "ok-script 浮層宿主", "Overlay host ready: Alt+Right-click two corners in the game to copy box coordinates.": "浮層已常駐:Alt+右鍵點遊戲畫面兩個角,框選座標自動複製到剪貼簿。", "Overlay host stopped.": "浮層宿主已停止。", - "Added to template assets: {name}": "已加入模板素材: {name}", "Annotation Editor": "標註編輯器", "Auto-detected window config: {config}": "自動辨識視窗設定: {config}", "Built-in default": "內建預設", @@ -157,7 +154,6 @@ "Deleted: {name}": "已刪除: {name}", "Effective value and where it comes from. Use the button to drop your override.": "生效值及其來源。點按鈕可清除你的覆寫。", "Enter game window title pattern (regex), or leave empty for all windows": "輸入遊戲視窗標題正則,留空表示符合所有視窗", - "Failed to add to template assets: {error}": "加入模板素材失敗: {error}", "Failed to delete: {name}": "刪除失敗: {name}", "Deleted the record for {name}, but the temporary file is still at {path}.": "已刪除 {name} 的記錄,但暫存檔還在 {path}。", "Failed to save screenshot.": "截圖儲存失敗。", @@ -181,7 +177,6 @@ "Screenshot saved: {name}": "截圖已儲存: {name}", "Screenshot script not found. capture_game_window.py is missing from the extension.": "找不到截圖腳本,擴充功能缺少 capture_game_window.py。", "Source: {layer}": "來源:{layer}", - "Template Assets": "模板素材", "The dragged screenshot is no longer available.": "被拖曳的截圖已不存在。", "enhancementFallbackName": "強化 {index}", "importImagesFilter": "圖片", @@ -198,7 +193,6 @@ "Not set — follows the project convention": "未設定 —— 跟隨專案約定", "LabelEnum class name (leave empty to follow the project convention)": "LabelEnum 類別名稱(留空則跟隨專案約定)", "e.g. assets/data/LabelEnum.py or src/label_enum.py": "例如 assets/data/LabelEnum.py 或 src/label_enum.py", - "Please click an image in the Template Assets panel to open the annotation editor.": "請先在「範本資源」面板中點選一張圖片,以開啟標註編輯器。", "The target file currently defines class {old}.": "目標檔案目前的類名是 {old}。", "The target file already exists but its class name could not be recognized.": "目標檔案已存在,但無法辨識它的類名。", "This save will rename it to {new}.": "這次儲存會將它改名為 {new}。", @@ -308,5 +302,41 @@ "The position output conflicts with an active Split template folder: {path}. Choose a different position output path.": "位置資源的輸出與目前啟用的 Split 範本目錄衝突:{path}。請選擇其他位置資源輸出路徑。", "The runtime template configuration could not be read. Fix the interpreter or configuration before publishing templates and positions together.": "無法讀取執行時範本設定。請先修正解譯器或設定,再同時發布範本和位置資源。", "The position output {position} conflicts with the template output {template}. Choose different output paths.": "位置資源輸出 {position} 與範本輸出 {template} 衝突。請選擇不同的輸出路徑。", - "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "無法從 config.py 靜態確定主專案 Split 模板目錄。請使用路徑常值或支援的靜態路徑運算式。" + "Main Split template folder could not be determined statically from config.py. Use a literal path or a supported static path expression.": "無法從 config.py 靜態確定主專案 Split 模板目錄。請使用路徑常值或支援的靜態路徑運算式。", + "Executor is starting. Click to open the Console.": "執行器啟動中。點擊開啟控制台。", + "Stop Executor": "關閉執行器", + "No images to annotate yet. Capture or import one in Annotation Management first.": "還沒有可標註的圖片。請先在標註管理中截圖或匯入。", + "Executor is paused. Click to open the Console.": "執行器已暫停。點擊開啟控制台。", + "Executor is ready · {count} trigger task(s) enabled. Click to open the Console.": "執行器就緒 · 已啟用 {count} 個觸發任務。點擊開啟控制台。", + "Set Project Path": "設定專案路徑", + "Running: {task} · queued: {count}. Click to open the Console.": "執行中:{task} · 排隊:{count}。點擊開啟控制台。", + "Set Python Path": "設定 Python 路徑", + "{count} temporary screenshot(s) waiting to be sorted": "{count} 張臨時截圖待整理", + "No one-time tasks are loaded yet. Open the Console and wait for the task list to load.": "尚未載入一次性任務。請開啟控制台,等任務列表載入完成。", + "Select a task to queue": "選擇要加入佇列的任務", + "Reload Tasks": "重新載入任務", + "Swap undone: '{first}' and '{second}' have their original annotations again.": "已復原交換:「{first}」和「{second}」恢復了原本的標註。", + "Annotation Management": "標註管理", + "Executor is not running. Click to open the Console.": "執行器未啟動。點擊開啟控制台。", + "Added to Annotation Management: {name}": "已加入標註管理:{name}", + "Failed to undo the swap.": "復原交換失敗。", + "{count} annotations": "{count} 個標註", + "Select a task to run (the executor will start first)": "選擇要執行的任務(將先啟動執行器)", + "Undo": "復原", + "Executor closed": "執行器已關閉", + "This image is not in Annotation Management yet. Add it there first.": "這張圖片還不在標註管理中,請先加入。", + "Show Logs": "查看日誌", + "{count} task(s) running or queued": "{count} 個任務執行或排隊中", + "ok-script: idle": "ok-script:閒置", + "ok-script Executor": "ok-script 執行器", + "Annotations changed after the swap, so it cannot be undone automatically.": "交換之後標註又有變動,無法自動復原。", + "ok-script: starting…": "ok-script:啟動中…", + "Executor exited with code {code}": "執行器異常結束(結束碼 {code})", + "Select an image to annotate": "選擇要標註的圖片", + "Failed to add to Annotation Management: {error}": "加入標註管理失敗:{error}", + "Open Annotation Management": "開啟標註管理", + "Reusing the Console game connection: {title} (PID {pid})": "複用控制台的遊戲連線:{title}(PID {pid})", + "ok-script: paused": "ok-script:已暫停", + "Retry": "重試", + "ok-script: ready": "ok-script:就緒" } diff --git a/l10n/webview.en.json b/l10n/webview.en.json index eecd5b67..bdcfaf7c 100644 --- a/l10n/webview.en.json +++ b/l10n/webview.en.json @@ -123,7 +123,7 @@ "valueLabel": "Value", "confirmDelete": "Delete “{name}”?\nA .bak backup is created before saving.", "copied": "Copied: {text}", - "taskTitle": "ok-script Task Launcher", + "taskTitle": "ok-script Console", "noTasks": "No tasks found.\nConfigure the project path first.", "parameters": "Parameters", "collapseParameters": "Collapse Parameters", @@ -244,11 +244,10 @@ "accountReadFailed": "Store file could not be parsed (see executor output).", "overriddenTasksLabel": "Overridden tasks", "templatesSearch": "Search image / Template / Box / Point names…", - "templatesTitle": "Template Gallery", - "templatesHint": "Click=insert · Double-click=copy · Use the bottom-right buttons for direct actions", + "templatesTitle": "Resource Preview", + "templatesHint": "Double-click / Enter = insert · Ctrl+C = copy · Buttons on each card for direct actions", "templatesCount": "{shown}/{total} templates", "noTemplates": "No templates found.", - "noTemplatesWithHint": "No templates found.\nMake sure the workspace contains assets/coco_annotations.json\n(or ok_tasks/assets/coco_annotations.json).", "noTemplateMatch": "No templates match “{query}”.", "viewOriginal": "View source image with highlighted bounds", "thumbnailStats": "{loaded} thumbnails loaded", @@ -256,11 +255,8 @@ "thumbnailLoadFailed": "Thumbnail failed to load", "templateSize": "Size: {width}×{height}", "templateSource": "Source: {path}", - "templateAssetsTitle": "Template Assets", - "boxAssetsTitle": "Box Assets", + "templateAssetsTitle": "Annotation Management", "templateAssetsHint": "Click an image or its edit button to open annotations", - "noTemplateAssets": "No template assets yet.\nClick Import to add images.", - "noTemplateAssetsHint": "No template assets.", "screenshotSaved": "Screenshot saved: {name}", "screenshotFailed": "Screenshot failed: {error}", "noClipboardImage": "No image in clipboard.", @@ -326,8 +322,8 @@ "tempEmpty": "No temp screenshots yet.\nPress Ctrl+V to paste, or click Capture.", "tempCount": "{shown}/{total}", "tempDelete": "Delete", - "tempSendToAssets": "Add to annotation manager", - "tempDragHint": "Drag onto the annotation manager to import", + "tempSendToAssets": "Add to Annotation Management", + "tempDragHint": "Drag onto Annotation Management to import", "tempCoordCopied": "Copied coordinates: {text}", "assetDropHint": "Release to import into ok_templates", "uncategorized": "Uncategorized", @@ -359,7 +355,7 @@ "publish": "Publish", "assetsHint": "Click an image or its edit button to edit boxes. Publish writes the runtime file.", "galleryHint": "Click inserts to_box(). Double-click copies the attribute path.", - "assetsEmpty": "No template images yet. Add them in Template Assets.", + "assetsEmpty": "No template images yet. Add them in Annotation Management.", "galleryEmpty": "No runtime boxes yet. Publish them from Box Assets.", "insertExpression": "Insert expression", "copyExpression": "Copy expression", @@ -386,5 +382,15 @@ "conflictFields": "Fields", "resourcesTitle": "Resource Preview", "resourcesSearch": "Search resource names or expressions…", - "resourcesEmpty": "No resources in this mode." + "resourcesEmpty": "No resources in this mode.", + "previewCheckedPaths": "Checked:\n{paths}", + "tempGridLabel": "Temporary screenshots", + "assetsEmptyTitle": "No images to annotate yet", + "previewEmptyTemplateTitle": "No published templates yet", + "previewEmptyTemplateBody": "Resource Preview shows published resources. Annotate images in Annotation Management, then publish them.", + "previewEmptyPositionBody": "Draw boxes or points in Annotation Management (Box / Point mode).", + "openAnnotationSource": "Open source file", + "assetsEmptyBody": "Capture or import an image, or drag one in from Temp Shots.", + "assetCardHint": "Double-click / Enter / E: open annotation editor · Delete: delete", + "openAnnotationManagement": "Open Annotation Management" } diff --git a/l10n/webview.es.json b/l10n/webview.es.json index b088e1d2..8cb1c7ba 100644 --- a/l10n/webview.es.json +++ b/l10n/webview.es.json @@ -123,7 +123,7 @@ "valueLabel": "Valor", "confirmDelete": "¿Eliminar «{name}»?\nSe creará automáticamente una copia .bak antes de guardar.", "copied": "Copiado: {text}", - "taskTitle": "Lanzador de tareas de ok-script", + "taskTitle": "Consola ok-script", "noTasks": "No se encontraron tareas.\nConfigure primero la ruta del proyecto.", "parameters": "Parámetros", "collapseParameters": "Contraer parámetros", @@ -244,11 +244,10 @@ "accountReadFailed": "No se pudo analizar el archivo del almacén (ver la salida del ejecutor).", "overriddenTasksLabel": "Tareas con anulaciones", "templatesSearch": "Buscar nombres de imagen / Template / Box / Point…", - "templatesTitle": "Galería de plantillas", - "templatesHint": "Clic=insertar · Doble clic=copiar · Use los botones inferiores derechos para acciones directas", + "templatesTitle": "Vista previa de recursos", + "templatesHint": "Doble clic / Enter = insertar · Ctrl+C = copiar · Usa los botones de cada tarjeta para acciones directas", "templatesCount": "{shown}/{total} plantillas", "noTemplates": "No se encontraron plantillas.", - "noTemplatesWithHint": "No se encontraron plantillas.\nCompruebe que el espacio de trabajo contiene assets/coco_annotations.json\n(o ok_tasks/assets/coco_annotations.json).", "noTemplateMatch": "No hay plantillas que coincidan con «{query}».", "viewOriginal": "Ver la imagen original con la posición resaltada", "thumbnailStats": "{loaded} miniaturas cargadas", @@ -256,11 +255,8 @@ "thumbnailLoadFailed": "Error al cargar la miniatura", "templateSize": "Tamaño: {width}×{height}", "templateSource": "Origen: {path}", - "templateAssetsTitle": "Template Assets", - "boxAssetsTitle": "Box Assets", + "templateAssetsTitle": "Gestión de anotaciones", "templateAssetsHint": "Pulse la imagen o el botón de editar para abrir anotaciones", - "noTemplateAssets": "No template assets yet.\nClick Import to add images.", - "noTemplateAssetsHint": "No template assets.", "screenshotSaved": "Screenshot saved: {name}", "screenshotFailed": "Screenshot failed: {error}", "noClipboardImage": "No image in clipboard.", @@ -326,8 +322,8 @@ "tempEmpty": "Aún no hay capturas temporales.\nPulsa Ctrl+V para pegar o haz clic en Capturar.", "tempCount": "{shown}/{total}", "tempDelete": "Eliminar", - "tempSendToAssets": "Añadir al gestor de anotaciones", - "tempDragHint": "Arrastra al gestor de anotaciones para importar", + "tempSendToAssets": "Añadir a Gestión de anotaciones", + "tempDragHint": "Arrastra a Gestión de anotaciones para importar", "tempCoordCopied": "Coordenadas copiadas: {text}", "assetDropHint": "Suelta para importar en ok_templates", "uncategorized": "Uncategorized", @@ -359,7 +355,7 @@ "publish": "Publish", "assetsHint": "Pulse la imagen o el botón de editar para editar cuadros. Publicar escribe el archivo de ejecución.", "galleryHint": "Click inserts to_box(). Double-click copies the attribute path.", - "assetsEmpty": "No template images yet. Add them in Template Assets.", + "assetsEmpty": "Aún no hay imágenes de plantilla. Añádelas en Gestión de anotaciones.", "galleryEmpty": "No runtime boxes yet. Publish them from Box Assets.", "insertExpression": "Insertar expresión", "copyExpression": "Copiar expresión", @@ -386,5 +382,15 @@ "conflictFields": "Campos", "resourcesTitle": "Vista previa de recursos", "resourcesSearch": "Buscar nombres o expresiones de recursos…", - "resourcesEmpty": "No hay recursos en este modo." + "resourcesEmpty": "No hay recursos en este modo.", + "previewCheckedPaths": "Rutas comprobadas:\n{paths}", + "tempGridLabel": "Capturas temporales", + "assetsEmptyTitle": "Aún no hay imágenes para anotar", + "previewEmptyTemplateTitle": "Aún no hay plantillas publicadas", + "previewEmptyTemplateBody": "La vista previa muestra recursos publicados. Anota imágenes en Gestión de anotaciones y luego publícalas.", + "previewEmptyPositionBody": "Dibuja cajas o puntos en Gestión de anotaciones (modo Box / Point).", + "openAnnotationSource": "Abrir archivo de origen", + "assetsEmptyBody": "Captura o importa una imagen, o arrástrala desde Capturas temporales.", + "assetCardHint": "Doble clic / Enter / E: abrir editor de anotaciones · Supr: eliminar", + "openAnnotationManagement": "Abrir gestión de anotaciones" } diff --git a/l10n/webview.ja.json b/l10n/webview.ja.json index 787fc4e2..42ed1593 100644 --- a/l10n/webview.ja.json +++ b/l10n/webview.ja.json @@ -123,7 +123,7 @@ "valueLabel": "値", "confirmDelete": "「{name}」を削除しますか?\n保存前に .bak バックアップを自動作成します。", "copied": "コピーしました: {text}", - "taskTitle": "ok-script タスク起動", + "taskTitle": "ok-script コンソール", "noTasks": "タスクが見つかりません。\n先にプロジェクトパスを設定してください。", "parameters": "パラメータ", "collapseParameters": "パラメーターを折りたたむ", @@ -244,11 +244,10 @@ "accountReadFailed": "ストアファイルを解析できません(実行器の出力を参照)。", "overriddenTasksLabel": "上書きありのタスク", "templatesSearch": "画像 / Template / Box / Point 名を検索…", - "templatesTitle": "テンプレートギャラリー", - "templatesHint": "クリック=挿入 · ダブルクリック=コピー · 右下のボタンで直接操作", + "templatesTitle": "リソースプレビュー", + "templatesHint": "ダブルクリック / Enter = 挿入 · Ctrl+C = コピー · カード右下のボタンで直接操作", "templatesCount": "{shown}/{total} テンプレート", "noTemplates": "テンプレートが見つかりません。", - "noTemplatesWithHint": "テンプレートが見つかりません。\nワークスペースに assets/coco_annotations.json\n(または ok_tasks/assets/coco_annotations.json)があることを確認してください。", "noTemplateMatch": "「{query}」に一致するテンプレートがありません。", "viewOriginal": "位置を強調表示した元画像を表示", "thumbnailStats": "サムネイル {loaded} 件を読み込み", @@ -256,11 +255,8 @@ "thumbnailLoadFailed": "サムネイルの読み込みに失敗", "templateSize": "サイズ: {width}×{height}", "templateSource": "ソース: {path}", - "templateAssetsTitle": "Template Assets", - "boxAssetsTitle": "Box Assets", + "templateAssetsTitle": "アノテーション管理", "templateAssetsHint": "画像または編集ボタンをクリックしてアノテーションを開く", - "noTemplateAssets": "No template assets yet.\nClick Import to add images.", - "noTemplateAssetsHint": "No template assets.", "screenshotSaved": "Screenshot saved: {name}", "screenshotFailed": "Screenshot failed: {error}", "noClipboardImage": "No image in clipboard.", @@ -327,7 +323,7 @@ "tempCount": "{shown}/{total}", "tempDelete": "削除", "tempSendToAssets": "アノテーション管理に追加", - "tempDragHint": "アノテーション管理へドラッグして取り込みます", + "tempDragHint": "アノテーション管理へドラッグしてインポート", "tempCoordCopied": "座標をコピーしました: {text}", "assetDropHint": "ドロップして ok_templates に取り込みます", "uncategorized": "Uncategorized", @@ -359,7 +355,7 @@ "publish": "Publish", "assetsHint": "画像または編集ボタンをクリックして枠を編集。公開後に実行時ファイルへ反映されます。", "galleryHint": "Click inserts to_box(). Double-click copies the attribute path.", - "assetsEmpty": "No template images yet. Add them in Template Assets.", + "assetsEmpty": "テンプレート元画像がありません。アノテーション管理で追加してください。", "galleryEmpty": "No runtime boxes yet. Publish them from Box Assets.", "insertExpression": "式を挿入", "copyExpression": "式をコピー", @@ -386,5 +382,15 @@ "conflictFields": "フィールド", "resourcesTitle": "リソースプレビュー", "resourcesSearch": "リソース名や式を検索…", - "resourcesEmpty": "このモードにはリソースがありません。" + "resourcesEmpty": "このモードにはリソースがありません。", + "previewCheckedPaths": "確認したパス:\n{paths}", + "tempGridLabel": "一時スクリーンショット", + "assetsEmptyTitle": "アノテーションする画像がまだありません", + "previewEmptyTemplateTitle": "公開済みのテンプレートがまだありません", + "previewEmptyTemplateBody": "リソースプレビューには公開済みのリソースだけが表示されます。アノテーション管理で注釈を付けてから公開してください。", + "previewEmptyPositionBody": "アノテーション管理の Box / Point モードで注釈を付けてください。", + "openAnnotationSource": "ソースファイルを開く", + "assetsEmptyBody": "スクリーンショットを撮るか画像をインポートしてください。一時スクリーンショットからドラッグすることもできます。", + "assetCardHint": "ダブルクリック / Enter / E: アノテーションエディターを開く · Delete: 削除", + "openAnnotationManagement": "アノテーション管理を開く" } diff --git a/l10n/webview.ko.json b/l10n/webview.ko.json index 346ab5b1..5e9b6ece 100644 --- a/l10n/webview.ko.json +++ b/l10n/webview.ko.json @@ -123,7 +123,7 @@ "valueLabel": "값", "confirmDelete": "“{name}”을(를) 삭제하시겠습니까?\n저장 전에 .bak 백업을 자동 생성합니다.", "copied": "복사됨: {text}", - "taskTitle": "ok-script 작업 실행", + "taskTitle": "ok-script 콘솔", "noTasks": "작업을 찾을 수 없습니다.\n먼저 프로젝트 경로를 설정하세요.", "parameters": "매개변수", "collapseParameters": "매개변수 접기", @@ -244,11 +244,10 @@ "accountReadFailed": "스토어 파일을 해석할 수 없습니다(실행기 출력 참조).", "overriddenTasksLabel": "재정의가 있는 작업", "templatesSearch": "이미지 / Template / Box / Point 이름 검색…", - "templatesTitle": "템플릿 갤러리", - "templatesHint": "클릭=삽입 · 더블클릭=복사 · 오른쪽 아래 버튼으로 바로 실행", + "templatesTitle": "리소스 미리보기", + "templatesHint": "더블클릭 / Enter = 삽입 · Ctrl+C = 복사 · 카드 오른쪽 아래 버튼으로 바로 실행", "templatesCount": "{shown}/{total} 템플릿", "noTemplates": "템플릿을 찾을 수 없습니다.", - "noTemplatesWithHint": "템플릿을 찾을 수 없습니다.\n작업 영역에 assets/coco_annotations.json\n(또는 ok_tasks/assets/coco_annotations.json)이 있는지 확인하세요.", "noTemplateMatch": "“{query}”와 일치하는 템플릿이 없습니다.", "viewOriginal": "위치를 강조 표시한 원본 이미지 보기", "thumbnailStats": "미리 보기 {loaded}개 불러옴", @@ -256,11 +255,8 @@ "thumbnailLoadFailed": "미리 보기 불러오기 실패", "templateSize": "크기: {width}×{height}", "templateSource": "소스: {path}", - "templateAssetsTitle": "Template Assets", - "boxAssetsTitle": "Box Assets", + "templateAssetsTitle": "어노테이션 관리", "templateAssetsHint": "이미지 또는 편집 버튼을 클릭하여 주석 편집기 열기", - "noTemplateAssets": "No template assets yet.\nClick Import to add images.", - "noTemplateAssetsHint": "No template assets.", "screenshotSaved": "Screenshot saved: {name}", "screenshotFailed": "Screenshot failed: {error}", "noClipboardImage": "No image in clipboard.", @@ -327,7 +323,7 @@ "tempCount": "{shown}/{total}", "tempDelete": "삭제", "tempSendToAssets": "어노테이션 관리에 추가", - "tempDragHint": "어노테이션 관리로 드래그해 가져오기", + "tempDragHint": "어노테이션 관리로 끌어다 놓아 가져오기", "tempCoordCopied": "좌표 복사됨: {text}", "assetDropHint": "놓으면 ok_templates 로 가져옵니다", "uncategorized": "Uncategorized", @@ -359,7 +355,7 @@ "publish": "Publish", "assetsHint": "이미지 또는 편집 버튼을 클릭하여 박스를 편집하세요. 게시하면 런타임 파일에 반영됩니다.", "galleryHint": "Click inserts to_box(). Double-click copies the attribute path.", - "assetsEmpty": "No template images yet. Add them in Template Assets.", + "assetsEmpty": "템플릿 원본 이미지가 없습니다. 어노테이션 관리에서 추가하세요.", "galleryEmpty": "No runtime boxes yet. Publish them from Box Assets.", "insertExpression": "표현식 삽입", "copyExpression": "표현식 복사", @@ -386,5 +382,15 @@ "conflictFields": "필드", "resourcesTitle": "리소스 미리보기", "resourcesSearch": "리소스 이름 또는 표현식 검색…", - "resourcesEmpty": "이 모드에 리소스가 없습니다." + "resourcesEmpty": "이 모드에 리소스가 없습니다.", + "previewCheckedPaths": "확인한 경로:\n{paths}", + "tempGridLabel": "임시 스크린샷", + "assetsEmptyTitle": "어노테이션할 이미지가 아직 없습니다", + "previewEmptyTemplateTitle": "게시된 템플릿이 아직 없습니다", + "previewEmptyTemplateBody": "리소스 미리보기에는 게시된 리소스만 표시됩니다. 어노테이션 관리에서 주석을 단 뒤 게시하세요.", + "previewEmptyPositionBody": "어노테이션 관리의 Box / Point 모드로 주석을 다세요.", + "openAnnotationSource": "소스 파일 열기", + "assetsEmptyBody": "스크린샷을 찍거나 이미지를 가져오세요. 임시 스크린샷에서 끌어다 놓을 수도 있습니다.", + "assetCardHint": "더블클릭 / Enter / E: 어노테이션 편집기 열기 · Delete: 삭제", + "openAnnotationManagement": "어노테이션 관리 열기" } diff --git a/l10n/webview.zh-cn.json b/l10n/webview.zh-cn.json index 619d0e61..41062a0b 100644 --- a/l10n/webview.zh-cn.json +++ b/l10n/webview.zh-cn.json @@ -123,7 +123,7 @@ "valueLabel": "值", "confirmDelete": "确定删除“{name}”吗?\n保存前会自动创建 .bak 备份。", "copied": "已复制:{text}", - "taskTitle": "ok-script 任务启动", + "taskTitle": "ok-script 控制台", "noTasks": "未找到任务。\n请先在设置中配置项目路径。", "parameters": "参数", "collapseParameters": "收起参数", @@ -244,11 +244,10 @@ "accountReadFailed": "存储文件无法解析(详情见执行器输出)。", "overriddenTasksLabel": "有覆盖的任务", "templatesSearch": "搜索图片 / Template / Box / Point 名称…", - "templatesTitle": "模板面板", - "templatesHint": "单击=插入 · 双击=复制 · 右下角按钮可直接操作", + "templatesTitle": "资源预览", + "templatesHint": "双击 / Enter = 插入 · Ctrl+C = 复制 · 卡片右下角按钮可直接操作", "templatesCount": "{shown}/{total} 个模板", "noTemplates": "未找到任何模板。", - "noTemplatesWithHint": "未找到任何模板。\n请确认工作区存在 assets/coco_annotations.json\n(或 ok_tasks/assets/coco_annotations.json)。", "noTemplateMatch": "没有匹配“{query}”的模板。", "viewOriginal": "查看原图(红框标注位置)", "thumbnailStats": "缩略图 {loaded} 成功", @@ -256,11 +255,8 @@ "thumbnailLoadFailed": "缩略图加载失败", "templateSize": "尺寸: {width}×{height}", "templateSource": "来源: {path}", - "templateAssetsTitle": "模板素材管理", - "boxAssetsTitle": "框资源管理", + "templateAssetsTitle": "标注管理", "templateAssetsHint": "单击或点击编辑按钮打开标注编辑器", - "noTemplateAssets": "暂无模板素材。\n点击 Import 导入图片。", - "noTemplateAssetsHint": "暂无模板素材。", "screenshotSaved": "截图已保存: {name}", "screenshotFailed": "截图保存失败: {error}", "noClipboardImage": "剪贴板中没有图片。", @@ -386,5 +382,15 @@ "conflictFields": "字段", "resourcesTitle": "资源预览", "resourcesSearch": "搜索资源名或表达式…", - "resourcesEmpty": "当前模式没有资源。" + "resourcesEmpty": "当前模式没有资源。", + "previewCheckedPaths": "已检查:\n{paths}", + "tempGridLabel": "临时截图", + "assetsEmptyTitle": "还没有可标注的图片", + "previewEmptyTemplateTitle": "还没有已发布的模板", + "previewEmptyTemplateBody": "资源预览只显示已发布的资源。请先在标注管理中标注,再点「发布」。", + "previewEmptyPositionBody": "请在标注管理中用 Box / Point 模式标注。", + "openAnnotationSource": "打开源文件", + "assetsEmptyBody": "截图或导入图片,也可以把「临时截图」里的图拖到这里。", + "assetCardHint": "双击 / Enter / E:打开标注编辑器 · Delete:删除", + "openAnnotationManagement": "打开标注管理" } diff --git a/l10n/webview.zh-tw.json b/l10n/webview.zh-tw.json index df64749e..9ef27c76 100644 --- a/l10n/webview.zh-tw.json +++ b/l10n/webview.zh-tw.json @@ -123,7 +123,7 @@ "valueLabel": "值", "confirmDelete": "確定要刪除「{name}」嗎?\n儲存前會自動建立 .bak 備份。", "copied": "已複製:{text}", - "taskTitle": "ok-script 任務啟動", + "taskTitle": "ok-script 控制台", "noTasks": "找不到任務。\n請先在設定中配置專案路徑。", "parameters": "參數", "collapseParameters": "收合參數", @@ -244,11 +244,10 @@ "accountReadFailed": "儲存檔案無法解析(詳見執行器輸出)。", "overriddenTasksLabel": "有覆寫的任務", "templatesSearch": "搜尋圖片 / Template / Box / Point 名稱…", - "templatesTitle": "模板面板", - "templatesHint": "單擊=插入 · 雙擊=複製 · 右下角按鈕可直接操作", + "templatesTitle": "資源預覽", + "templatesHint": "雙擊 / Enter = 插入 · Ctrl+C = 複製 · 卡片右下角按鈕可直接操作", "templatesCount": "{shown}/{total} 個模板", "noTemplates": "找不到任何模板。", - "noTemplatesWithHint": "找不到任何模板。\n請確認工作區存在 assets/coco_annotations.json\n(或 ok_tasks/assets/coco_annotations.json)。", "noTemplateMatch": "沒有符合「{query}」的模板。", "viewOriginal": "檢視原圖(標示位置)", "thumbnailStats": "已載入 {loaded} 個縮圖", @@ -256,11 +255,8 @@ "thumbnailLoadFailed": "縮圖載入失敗", "templateSize": "尺寸:{width}×{height}", "templateSource": "來源:{path}", - "templateAssetsTitle": "模板素材管理", - "boxAssetsTitle": "框資源管理", + "templateAssetsTitle": "標註管理", "templateAssetsHint": "單擊或點擊編輯按鈕開啟標註編輯器", - "noTemplateAssets": "暂无模板素材。\n点击 Import 导入图片。", - "noTemplateAssetsHint": "暂无模板素材。", "screenshotSaved": "截图已保存: {name}", "screenshotFailed": "截图保存失败: {error}", "noClipboardImage": "剪贴板中没有图片。", @@ -386,5 +382,15 @@ "conflictFields": "欄位", "resourcesTitle": "資源預覽", "resourcesSearch": "搜尋資源名稱或運算式…", - "resourcesEmpty": "目前模式沒有資源。" + "resourcesEmpty": "目前模式沒有資源。", + "previewCheckedPaths": "已檢查:\n{paths}", + "tempGridLabel": "臨時截圖", + "assetsEmptyTitle": "還沒有可標註的圖片", + "previewEmptyTemplateTitle": "還沒有已發布的模板", + "previewEmptyTemplateBody": "資源預覽只顯示已發布的資源。請先在標註管理中標註,再點「發布」。", + "previewEmptyPositionBody": "請在標註管理中用 Box / Point 模式標註。", + "openAnnotationSource": "開啟原始檔", + "assetsEmptyBody": "截圖或匯入圖片,也可以把「臨時截圖」裡的圖拖到這裡。", + "assetCardHint": "雙擊 / Enter / E:開啟標註編輯器 · Delete:刪除", + "openAnnotationManagement": "開啟標註管理" } diff --git a/media/annotationPanel/app.js b/media/annotationPanel/app.js index c1efa5af..1a612785 100644 --- a/media/annotationPanel/app.js +++ b/media/annotationPanel/app.js @@ -214,7 +214,9 @@ document.getElementById('undoBtn').disabled = !canUndo(); document.getElementById('redoBtn').disabled = !canRedo(); document.getElementById('undoBtn').title = t('undo') + ' (' + keybindings.undo + ')'; + document.getElementById('undoBtn').setAttribute('aria-label', t('undo')); document.getElementById('redoBtn').title = t('redo') + ' (' + keybindings.redo + ')'; + document.getElementById('redoBtn').setAttribute('aria-label', t('redo')); } function parseKeybinding(kb) { @@ -1104,7 +1106,9 @@ document.getElementById('hideAllBtn').textContent = t('hideAllAnnotations'); document.getElementById('onlyCurrentBtn').textContent = t('showOnlyCurrent'); document.getElementById('prevBtn').title = t('prevImage'); + document.getElementById('prevBtn').setAttribute('aria-label', t('prevImage')); document.getElementById('nextBtn').title = t('nextImage'); + document.getElementById('nextBtn').setAttribute('aria-label', t('nextImage')); document.getElementById('emptyMsg').textContent = t('noImageLoaded'); updateModeUi(); } diff --git a/media/annotationPanel/conflict.css b/media/annotationPanel/conflict.css index 490be09c..8f160448 100644 --- a/media/annotationPanel/conflict.css +++ b/media/annotationPanel/conflict.css @@ -10,9 +10,9 @@ flex-direction: column; gap: var(--space-sm); max-height: 52%; - padding: var(--space-sm); - border: var(--border-width) solid var(--border); - border-radius: var(--radius-sm); + padding: var(--space-md); + border: var(--border-width) solid color-mix(in srgb, var(--border) 50%, transparent); + border-radius: var(--radius-md); background: var(--bg-container-raised); overflow: hidden; } @@ -39,8 +39,8 @@ display: flex; flex-direction: column; gap: var(--space-xs); - padding: var(--space-xs); - border: var(--border-width) solid var(--border); + padding: var(--space-sm); + border: var(--border-width) solid transparent; border-radius: var(--radius-sm); background: var(--bg-row); } diff --git a/media/annotationPanel/index.html b/media/annotationPanel/index.html index 6a04c72a..8588f0b2 100644 --- a/media/annotationPanel/index.html +++ b/media/annotationPanel/index.html @@ -2,7 +2,8 @@ - + + @@ -27,12 +28,12 @@ - - + +
- - + +
@@ -151,6 +152,7 @@

Bounding Box

}, true); })(); + diff --git a/media/annotationPanel/style.css b/media/annotationPanel/style.css index b9f6db6e..452b0fcc 100644 --- a/media/annotationPanel/style.css +++ b/media/annotationPanel/style.css @@ -26,7 +26,7 @@ body { display: inline-flex; gap: 2px; padding: 2px; - border: var(--border-width) solid var(--border); + border: var(--border-width) solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius-sm); background: var(--bg-container); } @@ -77,8 +77,8 @@ body { display: flex; flex-direction: column; gap: var(--space-sm); - padding: var(--space-sm); - border-left: var(--border-width) solid var(--border); + padding: var(--space-md); + border-left: var(--border-width) solid color-mix(in srgb, var(--border) 55%, transparent); background: var(--bg-container); min-height: 0; } @@ -107,7 +107,7 @@ body { align-items: center; gap: var(--space-sm); min-height: var(--control-h-sm); - padding: 0 var(--space-xs); + padding: var(--space-xs) var(--space-sm); background: var(--bg-row); border-radius: var(--radius-sm); font-size: var(--font-sm); @@ -188,9 +188,9 @@ canvas { .modal { background: var(--bg-container-raised); - border: var(--border-width) solid var(--border); + border: var(--border-width) solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius-lg); - padding: var(--space-lg) 22px; + padding: var(--space-lg) var(--space-xl); min-width: 340px; box-shadow: var(--shadow-lg); } diff --git a/media/characterManager/app.js b/media/characterManager/app.js index b97eaa0f..a4d15c0b 100644 --- a/media/characterManager/app.js +++ b/media/characterManager/app.js @@ -20,6 +20,7 @@ function localizeStaticUi() { document.querySelector('.title').textContent = t('charactersTitle'); $('globalSearch').placeholder = t('searchCharacters'); $('refresh').title = t('refresh'); + $('refresh').setAttribute('aria-label', t('refresh')); const tabs = { characters: 'charactersTab', effects: 'effectsTab', locales: 'localesTab', issues: 'issuesTab' }; for (const node of document.querySelectorAll('.tab')) { const badge = node.querySelector('.badge'); @@ -38,8 +39,8 @@ function localizeStaticUi() { $('effectUsage').options[1].textContent = t('usedOnly'); $('effectUsage').options[2].textContent = t('unusedOnly'); $('effectUsage').options[3].textContent = t('unknownOnly'); - $('addEffectCategory').textContent = `+ ${t('addEffectCategory')}`; - $('addEffect').textContent = `+ ${t('addEffect')}`; + OkIcons.label($('addEffectCategory'), 'add', t('addEffectCategory')); + OkIcons.label($('addEffect'), 'add', t('addEffect')); document.querySelector('.locale-toolbar > span:first-child').textContent = t('localizationMatrix'); document.querySelector('.locale-toolbar > span:last-child').textContent = t('localizationHint'); $('issueSearch').placeholder = t('searchIssues'); @@ -49,8 +50,9 @@ function localizeStaticUi() { $('issueSeverity').options[3].textContent = t('info'); $('loading').firstElementChild.textContent = t('readingCharacterData'); $('modalClose').title = t('close'); - $('modalCancel').textContent = `× ${t('cancel')}`; - $('modalSave').textContent = `✓ ${t('save')}`; + $('modalClose').setAttribute('aria-label', t('close')); + OkIcons.label($('modalCancel'), 'close', t('cancel')); + OkIcons.label($('modalSave'), 'check', t('save')); } function clear(node) { node.replaceChildren(); } @@ -60,8 +62,10 @@ function element(tag, className, content) { if (content !== undefined) node.textContent = text(content); return node; } -function button(label, className, handler, title) { +/** icon 为 codicon 名(可选) */ +function button(label, className, handler, title, icon) { const node = element('button', className, label); + if (icon) OkIcons.label(node, icon, label); if (title) node.title = title; node.addEventListener('click', handler); return node; @@ -222,9 +226,9 @@ function showModal(title, build, onSubmit, saveText) { $('modalBody').appendChild(form); const actionLabel = saveText || t('save'); const actionKind = actionLabel === t('add') ? 'action-add' : actionLabel === t('modify') ? 'action-edit' : 'action-save'; - const actionIcon = actionLabel === t('add') ? '+ ' : actionLabel === t('modify') ? '✎ ' : '✓ '; + const actionIcon = actionLabel === t('add') ? 'add' : actionLabel === t('modify') ? 'edit' : 'check'; $('modalSave').className = `action-button ${actionKind}`; - $('modalSave').textContent = actionIcon + actionLabel; + OkIcons.label($('modalSave'), actionIcon, actionLabel); modalSubmit = () => onSubmit(controls); $('modalBackdrop').classList.add('show'); form.querySelector('input,select,textarea')?.focus(); @@ -434,7 +438,7 @@ function renderCharacterDetail(character) { $('characterDetail').appendChild(header); if (!character.skills.length) { $('characterDetail').appendChild(element('div', 'empty', t('noSkills'))); return; } const sectionTitle = element('div', 'section-title'); - sectionTitle.append(element('span', '', t('skillsAndEnhancements')), button(`+ ${t('addSkill')}`, 'action-button action-add compact', () => showSkillEditor(character, null))); + sectionTitle.append(element('span', '', t('skillsAndEnhancements')), button(t('addSkill'), 'action-button action-add compact', () => showSkillEditor(character, null), undefined, 'add')); $('characterDetail').appendChild(sectionTitle); for (const skill of character.skills) { const card = element('article', 'skill-card'); @@ -447,8 +451,8 @@ function renderCharacterDetail(character) { skillMeta.appendChild(makeChip(skillTypeLabel(skill.skillType))); if (skill.element) skillMeta.appendChild(makeChip(skill.element)); if (skill.hasEnhancement) skillMeta.appendChild(makeChip(t('enhancedState'))); - skillMeta.appendChild(button(`✎ ${t('modify')}`, 'action-button action-edit compact', () => showSkillEditor(character, skill), t('modifySkill'))); - if (skill.source === 'custom') skillMeta.appendChild(button(`× ${t('delete')}`, 'action-button action-delete compact', () => confirmDelete(skill.name, () => mutate({ action: 'deleteSkill', characterId: character.characterId, skillId: skill.skillId })))); + skillMeta.appendChild(button(t('modify'), 'action-button action-edit compact', () => showSkillEditor(character, skill), t('modifySkill'), 'edit')); + if (skill.source === 'custom') skillMeta.appendChild(button(t('delete'), 'action-button action-delete compact', () => confirmDelete(skill.name, () => mutate({ action: 'deleteSkill', characterId: character.characterId, skillId: skill.skillId })), undefined, 'trash')); else skillMeta.appendChild(makeChip(t('syncedSkillLocked'))); skillMeta.appendChild(button(`↗ ${t('open')}`, 'action-button action-open compact', () => postOpen('character', { characterId: character.characterId, skillId: skill.skillId }), t('openSource'))); head.appendChild(skillMeta); card.appendChild(head); @@ -464,7 +468,7 @@ function renderCharacterDetail(character) { const block = element('section', 'enhancement'); const enhancementHead = element('div', 'enhancement-head'); const name = element('div', 'enhancement-name', enhancement.name); if (enhancement.visiblePulse) name.appendChild(element('span', 'pulse', t('visiblePulse'))); const enhancementActions = element('div', 'enhancement-actions'); - enhancementActions.append(button(`✎ ${t('modify')}`, 'action-button action-edit compact', () => showEnhancementEditor(character, skill, enhancement, index), t('modifyEnhancement')), button(`× ${t('delete')}`, 'action-button action-delete compact', () => confirmDelete(enhancement.name, () => mutate({ action: 'deleteEnhancement', characterId: character.characterId, skillId: skill.skillId, enhancementIndex: index })))); + enhancementActions.append(button(t('modify'), 'action-button action-edit compact', () => showEnhancementEditor(character, skill, enhancement, index), t('modifyEnhancement'), 'edit'), button(t('delete'), 'action-button action-delete compact', () => confirmDelete(enhancement.name, () => mutate({ action: 'deleteEnhancement', characterId: character.characterId, skillId: skill.skillId, enhancementIndex: index })), undefined, 'trash')); enhancementHead.append(name, enhancementActions); block.appendChild(enhancementHead); if (enhancement.triggerText) block.appendChild(element('div', 'enhancement-trigger', enhancement.triggerText)); if (enhancement.enhancementEffect) block.appendChild(element('div', 'item-sub', enhancement.enhancementEffect)); @@ -508,7 +512,7 @@ function renderCharacterDetail(character) { } body.appendChild(block); } - body.appendChild(button(`+ ${t('addEnhancement')}`, 'action-button action-add compact add-enhancement-action', () => showEnhancementEditor(character, skill, null, -1))); + body.appendChild(button(t('addEnhancement'), 'action-button action-add compact add-enhancement-action', () => showEnhancementEditor(character, skill, null, -1), undefined, 'add')); card.appendChild(body); $('characterDetail').appendChild(card); } } diff --git a/media/characterManager/characterManager.css b/media/characterManager/characterManager.css index 5323e71c..4ab3b7c8 100644 --- a/media/characterManager/characterManager.css +++ b/media/characterManager/characterManager.css @@ -27,31 +27,29 @@ button.icon { padding: 4px 7px; min-width: 28px; } button.utility-button { width: 30px; height: 30px; - border-color: var(--border); + border-color: color-mix(in srgb, var(--border) 55%, transparent); background: var(--bg-control); color: var(--text-primary); padding: 0; font-size: var(--font-lg); - box-shadow: var(--shadow-sm); } button.utility-button:hover { - border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); + border-color: var(--border); background: var(--bg-control-hover); } button.action-button { display: inline-flex; align-items: center; justify-content: center; - gap: 5px; + gap: var(--space-xs); min-height: 30px; - border-color: var(--border); + border-color: color-mix(in srgb, var(--border) 55%, transparent); padding: 4px 10px; font-weight: var(--weight-medium); line-height: 1.2; white-space: nowrap; - box-shadow: var(--shadow-sm); } -button.action-button:hover { box-shadow: var(--shadow); } +button.action-button:hover { border-color: var(--border); } button.action-button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; } button.action-button.compact { min-height: 26px; padding: 3px 8px; font-size: var(--font-xs); } button.action-add, button.action-save { @@ -61,14 +59,14 @@ button.action-add, button.action-save { } button.action-add:hover, button.action-save:hover { background: var(--btn-bg-hover); } button.action-edit { - border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); + border-color: color-mix(in srgb, var(--border) 60%, transparent); background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); } button.action-edit:hover { background: var(--btn-secondary-bg-hover); } button.action-open { - border-color: color-mix(in srgb, var(--info) 60%, var(--border)); - background: color-mix(in srgb, var(--info) 9%, var(--surface)); + border-color: color-mix(in srgb, var(--border) 55%, transparent); + background: color-mix(in srgb, var(--info) 8%, var(--surface)); color: var(--text-primary); } button.action-open:hover { background: color-mix(in srgb, var(--info) 18%, var(--hover)); } @@ -94,7 +92,7 @@ input::placeholder, textarea::placeholder { color: var(--input-placeholder); } border-bottom: 1px solid var(--border); background: var(--bg-container-raised); } -.title-row { min-height: 42px; display: flex; gap: 10px; align-items: center; padding: 7px 12px; } +.title-row { min-height: 42px; display: flex; gap: var(--space-md); align-items: center; padding: var(--space-sm) var(--space-md); } .title { font-size: var(--font-lg); font-weight: var(--weight-bold); white-space: nowrap; } #project { color: var(--muted); font-size: var(--font-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .spacer { flex: 1; } @@ -126,12 +124,12 @@ input::placeholder, textarea::placeholder { color: var(--input-placeholder); } flex: 0 0 auto; display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); - gap: 6px; - padding: 8px 10px; - border-bottom: 1px solid var(--border); + gap: var(--space-sm); + padding: var(--space-sm) var(--space-md); + border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); background: var(--surface2); } -.metric { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 6px 8px; } +.metric { border: 1px solid color-mix(in srgb, var(--border) 40%, transparent); border-radius: var(--radius-sm); background: var(--bg-row); padding: var(--space-sm) var(--space-sm); } .metric-value { font-size: var(--font-xl); font-weight: var(--weight-bold); } .metric-label { color: var(--muted); font-size: var(--font-2xs); margin-top: 1px; } .metric.error .metric-value { color: var(--danger); } @@ -225,10 +223,10 @@ input::placeholder, textarea::placeholder { color: var(--input-placeholder); } .chip { display: inline-flex; align-items: center; - gap: 4px; - border: 1px solid var(--border); + gap: var(--space-xs); + border: 1px solid color-mix(in srgb, var(--border) 50%, transparent); border-radius: var(--radius-pill); - background: var(--surface); + background: var(--bg-row); padding: 2px 7px; font-size: var(--font-xs); } @@ -262,7 +260,7 @@ input::placeholder, textarea::placeholder { color: var(--input-placeholder); } .locale-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .section-title { display: flex; align-items: center; gap: 6px; font-size: var(--font-md); font-weight: var(--weight-bold); margin: 13px 0 7px; } .section-title > .action-button { margin-left: 3px; } -.skill-card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 8px; overflow: hidden; } +.skill-card { border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); border-radius: var(--radius-md); background: var(--surface); margin-bottom: var(--space-sm); overflow: hidden; } .skill-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); } .skill-name { font-size: var(--font-lg); font-weight: var(--weight-bold); } .skill-id { color: var(--muted); font-family: var(--font-mono); font-size: var(--font-2xs); } @@ -335,10 +333,10 @@ input::placeholder, textarea::placeholder { color: var(--input-placeholder); } } .enhancement { border-left: 3px solid var(--accent); - padding: 7px 9px; - margin-top: 8px; - background: color-mix(in srgb, var(--accent) 7%, transparent); - border-radius: 0 4px 4px 0; + padding: var(--space-sm) var(--space-md); + margin-top: var(--space-sm); + background: color-mix(in srgb, var(--accent) 6%, transparent); + border-radius: 0 var(--radius-sm) var(--radius-sm) 0; } .enhancement-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 30px; } .enhancement-name { flex: 1 1 auto; min-width: 0; font-weight: var(--weight-bold); } @@ -415,7 +413,7 @@ th.sticky { z-index: 4; background: var(--bg-container); } max-height: 90vh; display: flex; flex-direction: column; - border: 1px solid var(--border); + border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius-lg); background: var(--bg-container); box-shadow: var(--shadow-lg); @@ -457,7 +455,7 @@ th.sticky { z-index: 4; background: var(--bg-container); } .effect-select { min-height: 210px; font-family: var(--font-mono); font-size: var(--font-xs); } .effect-editor-hint { color: var(--muted); font-size: var(--font-2xs); margin-top: 4px; } .effect-params { display: flex; flex-direction: column; gap: 6px; max-height: 310px; overflow: auto; } -.effect-param-row { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 7px; background: var(--surface); } +.effect-param-row { border: 1px solid color-mix(in srgb, var(--border) 45%, transparent); border-radius: var(--radius-sm); padding: var(--space-sm); background: var(--bg-row); } .effect-param-title { font-family: var(--font-mono); font-size: var(--font-xs); font-weight: var(--weight-bold); margin-bottom: 5px; } .effect-param-desc { color: var(--muted); font-size: var(--font-2xs); margin-bottom: 5px; } .effect-param-grid { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: 5px; } diff --git a/media/characterManager/index.html b/media/characterManager/index.html index c4eb05f4..f26f364a 100644 --- a/media/characterManager/index.html +++ b/media/characterManager/index.html @@ -3,8 +3,9 @@ - + + @@ -17,7 +18,7 @@
- +
- @@ -154,6 +156,7 @@ + diff --git a/media/console/taskCard.js b/media/console/taskCard.js index 0cfed1fb..492fff18 100644 --- a/media/console/taskCard.js +++ b/media/console/taskCard.js @@ -21,10 +21,12 @@ const isGroupCollapsed = key => uiState.get(groupCollapseKey(key), false) === true; const setGroupCollapsed = (key, collapsed) => uiState.set(groupCollapseKey(key), collapsed); - function createButton(className, text, handler) { + /** text 为字符串;icon(codicon 名)可选,图标与文字同行 */ + function createButton(className, text, handler, icon) { const button = document.createElement('button'); button.className = className; - button.textContent = text; + if (icon) OkIcons.label(button, icon, text); + else button.textContent = text; button.addEventListener('click', handler); return button; } @@ -48,9 +50,9 @@ /** 一次性任务:入队到常驻执行器,执行一次后自动出队 */ function buildLaunchButton(task) { - const launch = createButton('task-card__launch', `▶ ${t('launch')}`, () => { + const launch = createButton('task-card__launch', t('launch'), () => { post({ type: 'enqueue', task: { ...task } }); - }); + }, 'play'); launch.dataset.role = 'launch'; return launch; } @@ -66,9 +68,9 @@ /** 参数入口:badge 样式按钮,点击把该任务的参数表单搬进抽屉 */ function buildConfigButton(task) { const key = taskKey(task); - const button = createButton('task-card__config', `⚙ ${t('parameters')}`, () => { + const button = createButton('task-card__config', t('parameters'), () => { globalThis.TaskLauncherConsole.openDrawer(task); - }); + }, 'settings-gear'); button.dataset.role = 'config-toggle'; button.dataset.taskKey = key; button.classList.toggle('has-overrides', snapshotDiffersFromFactory(key)); @@ -115,14 +117,14 @@ function buildSnapshotButtons(key) { const schema = state.schemas[key]; if (!schema || schema.broken || !schema.fields?.length) return []; - const sync = createButton('task-card__snap', '⇄', () => { + const sync = createButton('task-card__snap', '', () => { post({ type: 'syncDefault', target: 'task', name: key }); }); - sync.title = t('syncDefaultBtn'); - const reset = createButton('task-card__snap', '⟲', () => { + OkIcons.iconOnly(sync, 'sync', t('syncDefaultBtn')); + const reset = createButton('task-card__snap', '', () => { post({ type: 'resetDefault', target: 'task', name: key }); }); - reset.title = t('resetDefaultBtn'); + OkIcons.iconOnly(reset, 'discard', t('resetDefaultBtn')); return [sync, reset]; } @@ -672,13 +674,14 @@ // 显式启动:执行器起来之前才显示,起来后让位给暂停/停止 elements.startExecutor.hidden = active; elements.startExecutor.disabled = active; - elements.startExecutor.textContent = `▶ ${t('startExecutor')}`; + OkIcons.label(elements.startExecutor, 'debug-start', t('startExecutor')); elements.pauseToggle.hidden = !active || executor.projectMismatch; elements.pauseToggle.disabled = executor.status !== 'running' || executor.projectMismatch; - elements.pauseToggle.textContent = executor.paused ? `▶ ${t('resume')}` : `⏸ ${t('pause')}`; + if (executor.paused) OkIcons.label(elements.pauseToggle, 'debug-continue', t('resume')); + else OkIcons.label(elements.pauseToggle, 'debug-pause', t('pause')); elements.stopCurrent.hidden = !active || executor.projectMismatch; elements.stopCurrent.disabled = !executor.current; - elements.stopCurrent.textContent = `⏹ ${t('stopCurrent')}`; + OkIcons.label(elements.stopCurrent, 'stop-circle', t('stopCurrent')); elements.stopExecutor.hidden = !active; } @@ -743,7 +746,7 @@ head.tabIndex = 0; const chev = document.createElement('span'); chev.className = 'subgroup-head__chev'; - chev.textContent = collapsed ? '▸' : '▾'; + chev.replaceChildren(OkIcons.icon(collapsed ? 'chevron-right' : 'chevron-down')); const title = document.createElement('span'); title.textContent = label; const count = document.createElement('span'); diff --git a/media/shared/codicons/LICENSE b/media/shared/codicons/LICENSE new file mode 100644 index 00000000..8af3f65d --- /dev/null +++ b/media/shared/codicons/LICENSE @@ -0,0 +1,395 @@ +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More_considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/media/shared/codicons/LICENSE-CODE b/media/shared/codicons/LICENSE-CODE new file mode 100644 index 00000000..9e841e7a --- /dev/null +++ b/media/shared/codicons/LICENSE-CODE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/media/shared/codicons/README.txt b/media/shared/codicons/README.txt new file mode 100644 index 00000000..f5d41903 --- /dev/null +++ b/media/shared/codicons/README.txt @@ -0,0 +1,3 @@ +@vscode/codicons 0.0.36 (dist/codicon.css + dist/codicon.ttf), vendored unchanged. +Icons: CC BY 4.0 (LICENSE). Code: MIT (LICENSE-CODE). +Source: https://github.com/microsoft/vscode-codicons diff --git a/media/shared/codicons/codicon.css b/media/shared/codicons/codicon.css new file mode 100644 index 00000000..e5f07c52 --- /dev/null +++ b/media/shared/codicons/codicon.css @@ -0,0 +1,629 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +@font-face { + font-family: "codicon"; + font-display: block; + src: url("./codicon.ttf?38dcd33a732ebca5a557e04831e9e235") format("truetype"); +} + +.codicon[class*='codicon-'] { + font: normal normal normal 16px/1 codicon; + display: inline-block; + text-decoration: none; + text-rendering: auto; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} + +/*--------------------- + * Modifiers + *-------------------*/ + +@keyframes codicon-spin { + 100% { + transform:rotate(360deg); + } +} + +.codicon-sync.codicon-modifier-spin, +.codicon-loading.codicon-modifier-spin, +.codicon-gear.codicon-modifier-spin { + /* Use steps to throttle FPS to reduce CPU usage */ + animation: codicon-spin 1.5s steps(30) infinite; +} + +.codicon-modifier-disabled { + opacity: 0.5; +} + +.codicon-modifier-hidden { + opacity: 0; +} + +/* custom speed & easing for loading icon */ +.codicon-loading { + animation-duration: 1s !important; + animation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important; +} + +/*--------------------- + * Icons + *-------------------*/ + +.codicon-add:before { content: "\ea60" } +.codicon-plus:before { content: "\ea60" } +.codicon-gist-new:before { content: "\ea60" } +.codicon-repo-create:before { content: "\ea60" } +.codicon-lightbulb:before { content: "\ea61" } +.codicon-light-bulb:before { content: "\ea61" } +.codicon-repo:before { content: "\ea62" } +.codicon-repo-delete:before { content: "\ea62" } +.codicon-gist-fork:before { content: "\ea63" } +.codicon-repo-forked:before { content: "\ea63" } +.codicon-git-pull-request:before { content: "\ea64" } +.codicon-git-pull-request-abandoned:before { content: "\ea64" } +.codicon-record-keys:before { content: "\ea65" } +.codicon-keyboard:before { content: "\ea65" } +.codicon-tag:before { content: "\ea66" } +.codicon-git-pull-request-label:before { content: "\ea66" } +.codicon-tag-add:before { content: "\ea66" } +.codicon-tag-remove:before { content: "\ea66" } +.codicon-person:before { content: "\ea67" } +.codicon-person-follow:before { content: "\ea67" } +.codicon-person-outline:before { content: "\ea67" } +.codicon-person-filled:before { content: "\ea67" } +.codicon-git-branch:before { content: "\ea68" } +.codicon-git-branch-create:before { content: "\ea68" } +.codicon-git-branch-delete:before { content: "\ea68" } +.codicon-source-control:before { content: "\ea68" } +.codicon-mirror:before { content: "\ea69" } +.codicon-mirror-public:before { content: "\ea69" } +.codicon-star:before { content: "\ea6a" } +.codicon-star-add:before { content: "\ea6a" } +.codicon-star-delete:before { content: "\ea6a" } +.codicon-star-empty:before { content: "\ea6a" } +.codicon-comment:before { content: "\ea6b" } +.codicon-comment-add:before { content: "\ea6b" } +.codicon-alert:before { content: "\ea6c" } +.codicon-warning:before { content: "\ea6c" } +.codicon-search:before { content: "\ea6d" } +.codicon-search-save:before { content: "\ea6d" } +.codicon-log-out:before { content: "\ea6e" } +.codicon-sign-out:before { content: "\ea6e" } +.codicon-log-in:before { content: "\ea6f" } +.codicon-sign-in:before { content: "\ea6f" } +.codicon-eye:before { content: "\ea70" } +.codicon-eye-unwatch:before { content: "\ea70" } +.codicon-eye-watch:before { content: "\ea70" } +.codicon-circle-filled:before { content: "\ea71" } +.codicon-primitive-dot:before { content: "\ea71" } +.codicon-close-dirty:before { content: "\ea71" } +.codicon-debug-breakpoint:before { content: "\ea71" } +.codicon-debug-breakpoint-disabled:before { content: "\ea71" } +.codicon-debug-hint:before { content: "\ea71" } +.codicon-terminal-decoration-success:before { content: "\ea71" } +.codicon-primitive-square:before { content: "\ea72" } +.codicon-edit:before { content: "\ea73" } +.codicon-pencil:before { content: "\ea73" } +.codicon-info:before { content: "\ea74" } +.codicon-issue-opened:before { content: "\ea74" } +.codicon-gist-private:before { content: "\ea75" } +.codicon-git-fork-private:before { content: "\ea75" } +.codicon-lock:before { content: "\ea75" } +.codicon-mirror-private:before { content: "\ea75" } +.codicon-close:before { content: "\ea76" } +.codicon-remove-close:before { content: "\ea76" } +.codicon-x:before { content: "\ea76" } +.codicon-repo-sync:before { content: "\ea77" } +.codicon-sync:before { content: "\ea77" } +.codicon-clone:before { content: "\ea78" } +.codicon-desktop-download:before { content: "\ea78" } +.codicon-beaker:before { content: "\ea79" } +.codicon-microscope:before { content: "\ea79" } +.codicon-vm:before { content: "\ea7a" } +.codicon-device-desktop:before { content: "\ea7a" } +.codicon-file:before { content: "\ea7b" } +.codicon-file-text:before { content: "\ea7b" } +.codicon-more:before { content: "\ea7c" } +.codicon-ellipsis:before { content: "\ea7c" } +.codicon-kebab-horizontal:before { content: "\ea7c" } +.codicon-mail-reply:before { content: "\ea7d" } +.codicon-reply:before { content: "\ea7d" } +.codicon-organization:before { content: "\ea7e" } +.codicon-organization-filled:before { content: "\ea7e" } +.codicon-organization-outline:before { content: "\ea7e" } +.codicon-new-file:before { content: "\ea7f" } +.codicon-file-add:before { content: "\ea7f" } +.codicon-new-folder:before { content: "\ea80" } +.codicon-file-directory-create:before { content: "\ea80" } +.codicon-trash:before { content: "\ea81" } +.codicon-trashcan:before { content: "\ea81" } +.codicon-history:before { content: "\ea82" } +.codicon-clock:before { content: "\ea82" } +.codicon-folder:before { content: "\ea83" } +.codicon-file-directory:before { content: "\ea83" } +.codicon-symbol-folder:before { content: "\ea83" } +.codicon-logo-github:before { content: "\ea84" } +.codicon-mark-github:before { content: "\ea84" } +.codicon-github:before { content: "\ea84" } +.codicon-terminal:before { content: "\ea85" } +.codicon-console:before { content: "\ea85" } +.codicon-repl:before { content: "\ea85" } +.codicon-zap:before { content: "\ea86" } +.codicon-symbol-event:before { content: "\ea86" } +.codicon-error:before { content: "\ea87" } +.codicon-stop:before { content: "\ea87" } +.codicon-variable:before { content: "\ea88" } +.codicon-symbol-variable:before { content: "\ea88" } +.codicon-array:before { content: "\ea8a" } +.codicon-symbol-array:before { content: "\ea8a" } +.codicon-symbol-module:before { content: "\ea8b" } +.codicon-symbol-package:before { content: "\ea8b" } +.codicon-symbol-namespace:before { content: "\ea8b" } +.codicon-symbol-object:before { content: "\ea8b" } +.codicon-symbol-method:before { content: "\ea8c" } +.codicon-symbol-function:before { content: "\ea8c" } +.codicon-symbol-constructor:before { content: "\ea8c" } +.codicon-symbol-boolean:before { content: "\ea8f" } +.codicon-symbol-null:before { content: "\ea8f" } +.codicon-symbol-numeric:before { content: "\ea90" } +.codicon-symbol-number:before { content: "\ea90" } +.codicon-symbol-structure:before { content: "\ea91" } +.codicon-symbol-struct:before { content: "\ea91" } +.codicon-symbol-parameter:before { content: "\ea92" } +.codicon-symbol-type-parameter:before { content: "\ea92" } +.codicon-symbol-key:before { content: "\ea93" } +.codicon-symbol-text:before { content: "\ea93" } +.codicon-symbol-reference:before { content: "\ea94" } +.codicon-go-to-file:before { content: "\ea94" } +.codicon-symbol-enum:before { content: "\ea95" } +.codicon-symbol-value:before { content: "\ea95" } +.codicon-symbol-ruler:before { content: "\ea96" } +.codicon-symbol-unit:before { content: "\ea96" } +.codicon-activate-breakpoints:before { content: "\ea97" } +.codicon-archive:before { content: "\ea98" } +.codicon-arrow-both:before { content: "\ea99" } +.codicon-arrow-down:before { content: "\ea9a" } +.codicon-arrow-left:before { content: "\ea9b" } +.codicon-arrow-right:before { content: "\ea9c" } +.codicon-arrow-small-down:before { content: "\ea9d" } +.codicon-arrow-small-left:before { content: "\ea9e" } +.codicon-arrow-small-right:before { content: "\ea9f" } +.codicon-arrow-small-up:before { content: "\eaa0" } +.codicon-arrow-up:before { content: "\eaa1" } +.codicon-bell:before { content: "\eaa2" } +.codicon-bold:before { content: "\eaa3" } +.codicon-book:before { content: "\eaa4" } +.codicon-bookmark:before { content: "\eaa5" } +.codicon-debug-breakpoint-conditional-unverified:before { content: "\eaa6" } +.codicon-debug-breakpoint-conditional:before { content: "\eaa7" } +.codicon-debug-breakpoint-conditional-disabled:before { content: "\eaa7" } +.codicon-debug-breakpoint-data-unverified:before { content: "\eaa8" } +.codicon-debug-breakpoint-data:before { content: "\eaa9" } +.codicon-debug-breakpoint-data-disabled:before { content: "\eaa9" } +.codicon-debug-breakpoint-log-unverified:before { content: "\eaaa" } +.codicon-debug-breakpoint-log:before { content: "\eaab" } +.codicon-debug-breakpoint-log-disabled:before { content: "\eaab" } +.codicon-briefcase:before { content: "\eaac" } +.codicon-broadcast:before { content: "\eaad" } +.codicon-browser:before { content: "\eaae" } +.codicon-bug:before { content: "\eaaf" } +.codicon-calendar:before { content: "\eab0" } +.codicon-case-sensitive:before { content: "\eab1" } +.codicon-check:before { content: "\eab2" } +.codicon-checklist:before { content: "\eab3" } +.codicon-chevron-down:before { content: "\eab4" } +.codicon-chevron-left:before { content: "\eab5" } +.codicon-chevron-right:before { content: "\eab6" } +.codicon-chevron-up:before { content: "\eab7" } +.codicon-chrome-close:before { content: "\eab8" } +.codicon-chrome-maximize:before { content: "\eab9" } +.codicon-chrome-minimize:before { content: "\eaba" } +.codicon-chrome-restore:before { content: "\eabb" } +.codicon-circle-outline:before { content: "\eabc" } +.codicon-circle:before { content: "\eabc" } +.codicon-debug-breakpoint-unverified:before { content: "\eabc" } +.codicon-terminal-decoration-incomplete:before { content: "\eabc" } +.codicon-circle-slash:before { content: "\eabd" } +.codicon-circuit-board:before { content: "\eabe" } +.codicon-clear-all:before { content: "\eabf" } +.codicon-clippy:before { content: "\eac0" } +.codicon-close-all:before { content: "\eac1" } +.codicon-cloud-download:before { content: "\eac2" } +.codicon-cloud-upload:before { content: "\eac3" } +.codicon-code:before { content: "\eac4" } +.codicon-collapse-all:before { content: "\eac5" } +.codicon-color-mode:before { content: "\eac6" } +.codicon-comment-discussion:before { content: "\eac7" } +.codicon-credit-card:before { content: "\eac9" } +.codicon-dash:before { content: "\eacc" } +.codicon-dashboard:before { content: "\eacd" } +.codicon-database:before { content: "\eace" } +.codicon-debug-continue:before { content: "\eacf" } +.codicon-debug-disconnect:before { content: "\ead0" } +.codicon-debug-pause:before { content: "\ead1" } +.codicon-debug-restart:before { content: "\ead2" } +.codicon-debug-start:before { content: "\ead3" } +.codicon-debug-step-into:before { content: "\ead4" } +.codicon-debug-step-out:before { content: "\ead5" } +.codicon-debug-step-over:before { content: "\ead6" } +.codicon-debug-stop:before { content: "\ead7" } +.codicon-debug:before { content: "\ead8" } +.codicon-device-camera-video:before { content: "\ead9" } +.codicon-device-camera:before { content: "\eada" } +.codicon-device-mobile:before { content: "\eadb" } +.codicon-diff-added:before { content: "\eadc" } +.codicon-diff-ignored:before { content: "\eadd" } +.codicon-diff-modified:before { content: "\eade" } +.codicon-diff-removed:before { content: "\eadf" } +.codicon-diff-renamed:before { content: "\eae0" } +.codicon-diff:before { content: "\eae1" } +.codicon-diff-sidebyside:before { content: "\eae1" } +.codicon-discard:before { content: "\eae2" } +.codicon-editor-layout:before { content: "\eae3" } +.codicon-empty-window:before { content: "\eae4" } +.codicon-exclude:before { content: "\eae5" } +.codicon-extensions:before { content: "\eae6" } +.codicon-eye-closed:before { content: "\eae7" } +.codicon-file-binary:before { content: "\eae8" } +.codicon-file-code:before { content: "\eae9" } +.codicon-file-media:before { content: "\eaea" } +.codicon-file-pdf:before { content: "\eaeb" } +.codicon-file-submodule:before { content: "\eaec" } +.codicon-file-symlink-directory:before { content: "\eaed" } +.codicon-file-symlink-file:before { content: "\eaee" } +.codicon-file-zip:before { content: "\eaef" } +.codicon-files:before { content: "\eaf0" } +.codicon-filter:before { content: "\eaf1" } +.codicon-flame:before { content: "\eaf2" } +.codicon-fold-down:before { content: "\eaf3" } +.codicon-fold-up:before { content: "\eaf4" } +.codicon-fold:before { content: "\eaf5" } +.codicon-folder-active:before { content: "\eaf6" } +.codicon-folder-opened:before { content: "\eaf7" } +.codicon-gear:before { content: "\eaf8" } +.codicon-gift:before { content: "\eaf9" } +.codicon-gist-secret:before { content: "\eafa" } +.codicon-gist:before { content: "\eafb" } +.codicon-git-commit:before { content: "\eafc" } +.codicon-git-compare:before { content: "\eafd" } +.codicon-compare-changes:before { content: "\eafd" } +.codicon-git-merge:before { content: "\eafe" } +.codicon-github-action:before { content: "\eaff" } +.codicon-github-alt:before { content: "\eb00" } +.codicon-globe:before { content: "\eb01" } +.codicon-grabber:before { content: "\eb02" } +.codicon-graph:before { content: "\eb03" } +.codicon-gripper:before { content: "\eb04" } +.codicon-heart:before { content: "\eb05" } +.codicon-home:before { content: "\eb06" } +.codicon-horizontal-rule:before { content: "\eb07" } +.codicon-hubot:before { content: "\eb08" } +.codicon-inbox:before { content: "\eb09" } +.codicon-issue-reopened:before { content: "\eb0b" } +.codicon-issues:before { content: "\eb0c" } +.codicon-italic:before { content: "\eb0d" } +.codicon-jersey:before { content: "\eb0e" } +.codicon-json:before { content: "\eb0f" } +.codicon-kebab-vertical:before { content: "\eb10" } +.codicon-key:before { content: "\eb11" } +.codicon-law:before { content: "\eb12" } +.codicon-lightbulb-autofix:before { content: "\eb13" } +.codicon-link-external:before { content: "\eb14" } +.codicon-link:before { content: "\eb15" } +.codicon-list-ordered:before { content: "\eb16" } +.codicon-list-unordered:before { content: "\eb17" } +.codicon-live-share:before { content: "\eb18" } +.codicon-loading:before { content: "\eb19" } +.codicon-location:before { content: "\eb1a" } +.codicon-mail-read:before { content: "\eb1b" } +.codicon-mail:before { content: "\eb1c" } +.codicon-markdown:before { content: "\eb1d" } +.codicon-megaphone:before { content: "\eb1e" } +.codicon-mention:before { content: "\eb1f" } +.codicon-milestone:before { content: "\eb20" } +.codicon-git-pull-request-milestone:before { content: "\eb20" } +.codicon-mortar-board:before { content: "\eb21" } +.codicon-move:before { content: "\eb22" } +.codicon-multiple-windows:before { content: "\eb23" } +.codicon-mute:before { content: "\eb24" } +.codicon-no-newline:before { content: "\eb25" } +.codicon-note:before { content: "\eb26" } +.codicon-octoface:before { content: "\eb27" } +.codicon-open-preview:before { content: "\eb28" } +.codicon-package:before { content: "\eb29" } +.codicon-paintcan:before { content: "\eb2a" } +.codicon-pin:before { content: "\eb2b" } +.codicon-play:before { content: "\eb2c" } +.codicon-run:before { content: "\eb2c" } +.codicon-plug:before { content: "\eb2d" } +.codicon-preserve-case:before { content: "\eb2e" } +.codicon-preview:before { content: "\eb2f" } +.codicon-project:before { content: "\eb30" } +.codicon-pulse:before { content: "\eb31" } +.codicon-question:before { content: "\eb32" } +.codicon-quote:before { content: "\eb33" } +.codicon-radio-tower:before { content: "\eb34" } +.codicon-reactions:before { content: "\eb35" } +.codicon-references:before { content: "\eb36" } +.codicon-refresh:before { content: "\eb37" } +.codicon-regex:before { content: "\eb38" } +.codicon-remote-explorer:before { content: "\eb39" } +.codicon-remote:before { content: "\eb3a" } +.codicon-remove:before { content: "\eb3b" } +.codicon-replace-all:before { content: "\eb3c" } +.codicon-replace:before { content: "\eb3d" } +.codicon-repo-clone:before { content: "\eb3e" } +.codicon-repo-force-push:before { content: "\eb3f" } +.codicon-repo-pull:before { content: "\eb40" } +.codicon-repo-push:before { content: "\eb41" } +.codicon-report:before { content: "\eb42" } +.codicon-request-changes:before { content: "\eb43" } +.codicon-rocket:before { content: "\eb44" } +.codicon-root-folder-opened:before { content: "\eb45" } +.codicon-root-folder:before { content: "\eb46" } +.codicon-rss:before { content: "\eb47" } +.codicon-ruby:before { content: "\eb48" } +.codicon-save-all:before { content: "\eb49" } +.codicon-save-as:before { content: "\eb4a" } +.codicon-save:before { content: "\eb4b" } +.codicon-screen-full:before { content: "\eb4c" } +.codicon-screen-normal:before { content: "\eb4d" } +.codicon-search-stop:before { content: "\eb4e" } +.codicon-server:before { content: "\eb50" } +.codicon-settings-gear:before { content: "\eb51" } +.codicon-settings:before { content: "\eb52" } +.codicon-shield:before { content: "\eb53" } +.codicon-smiley:before { content: "\eb54" } +.codicon-sort-precedence:before { content: "\eb55" } +.codicon-split-horizontal:before { content: "\eb56" } +.codicon-split-vertical:before { content: "\eb57" } +.codicon-squirrel:before { content: "\eb58" } +.codicon-star-full:before { content: "\eb59" } +.codicon-star-half:before { content: "\eb5a" } +.codicon-symbol-class:before { content: "\eb5b" } +.codicon-symbol-color:before { content: "\eb5c" } +.codicon-symbol-constant:before { content: "\eb5d" } +.codicon-symbol-enum-member:before { content: "\eb5e" } +.codicon-symbol-field:before { content: "\eb5f" } +.codicon-symbol-file:before { content: "\eb60" } +.codicon-symbol-interface:before { content: "\eb61" } +.codicon-symbol-keyword:before { content: "\eb62" } +.codicon-symbol-misc:before { content: "\eb63" } +.codicon-symbol-operator:before { content: "\eb64" } +.codicon-symbol-property:before { content: "\eb65" } +.codicon-wrench:before { content: "\eb65" } +.codicon-wrench-subaction:before { content: "\eb65" } +.codicon-symbol-snippet:before { content: "\eb66" } +.codicon-tasklist:before { content: "\eb67" } +.codicon-telescope:before { content: "\eb68" } +.codicon-text-size:before { content: "\eb69" } +.codicon-three-bars:before { content: "\eb6a" } +.codicon-thumbsdown:before { content: "\eb6b" } +.codicon-thumbsup:before { content: "\eb6c" } +.codicon-tools:before { content: "\eb6d" } +.codicon-triangle-down:before { content: "\eb6e" } +.codicon-triangle-left:before { content: "\eb6f" } +.codicon-triangle-right:before { content: "\eb70" } +.codicon-triangle-up:before { content: "\eb71" } +.codicon-twitter:before { content: "\eb72" } +.codicon-unfold:before { content: "\eb73" } +.codicon-unlock:before { content: "\eb74" } +.codicon-unmute:before { content: "\eb75" } +.codicon-unverified:before { content: "\eb76" } +.codicon-verified:before { content: "\eb77" } +.codicon-versions:before { content: "\eb78" } +.codicon-vm-active:before { content: "\eb79" } +.codicon-vm-outline:before { content: "\eb7a" } +.codicon-vm-running:before { content: "\eb7b" } +.codicon-watch:before { content: "\eb7c" } +.codicon-whitespace:before { content: "\eb7d" } +.codicon-whole-word:before { content: "\eb7e" } +.codicon-window:before { content: "\eb7f" } +.codicon-word-wrap:before { content: "\eb80" } +.codicon-zoom-in:before { content: "\eb81" } +.codicon-zoom-out:before { content: "\eb82" } +.codicon-list-filter:before { content: "\eb83" } +.codicon-list-flat:before { content: "\eb84" } +.codicon-list-selection:before { content: "\eb85" } +.codicon-selection:before { content: "\eb85" } +.codicon-list-tree:before { content: "\eb86" } +.codicon-debug-breakpoint-function-unverified:before { content: "\eb87" } +.codicon-debug-breakpoint-function:before { content: "\eb88" } +.codicon-debug-breakpoint-function-disabled:before { content: "\eb88" } +.codicon-debug-stackframe-active:before { content: "\eb89" } +.codicon-circle-small-filled:before { content: "\eb8a" } +.codicon-debug-stackframe-dot:before { content: "\eb8a" } +.codicon-terminal-decoration-mark:before { content: "\eb8a" } +.codicon-debug-stackframe:before { content: "\eb8b" } +.codicon-debug-stackframe-focused:before { content: "\eb8b" } +.codicon-debug-breakpoint-unsupported:before { content: "\eb8c" } +.codicon-symbol-string:before { content: "\eb8d" } +.codicon-debug-reverse-continue:before { content: "\eb8e" } +.codicon-debug-step-back:before { content: "\eb8f" } +.codicon-debug-restart-frame:before { content: "\eb90" } +.codicon-debug-alt:before { content: "\eb91" } +.codicon-call-incoming:before { content: "\eb92" } +.codicon-call-outgoing:before { content: "\eb93" } +.codicon-menu:before { content: "\eb94" } +.codicon-expand-all:before { content: "\eb95" } +.codicon-feedback:before { content: "\eb96" } +.codicon-git-pull-request-reviewer:before { content: "\eb96" } +.codicon-group-by-ref-type:before { content: "\eb97" } +.codicon-ungroup-by-ref-type:before { content: "\eb98" } +.codicon-account:before { content: "\eb99" } +.codicon-git-pull-request-assignee:before { content: "\eb99" } +.codicon-bell-dot:before { content: "\eb9a" } +.codicon-debug-console:before { content: "\eb9b" } +.codicon-library:before { content: "\eb9c" } +.codicon-output:before { content: "\eb9d" } +.codicon-run-all:before { content: "\eb9e" } +.codicon-sync-ignored:before { content: "\eb9f" } +.codicon-pinned:before { content: "\eba0" } +.codicon-github-inverted:before { content: "\eba1" } +.codicon-server-process:before { content: "\eba2" } +.codicon-server-environment:before { content: "\eba3" } +.codicon-pass:before { content: "\eba4" } +.codicon-issue-closed:before { content: "\eba4" } +.codicon-stop-circle:before { content: "\eba5" } +.codicon-play-circle:before { content: "\eba6" } +.codicon-record:before { content: "\eba7" } +.codicon-debug-alt-small:before { content: "\eba8" } +.codicon-vm-connect:before { content: "\eba9" } +.codicon-cloud:before { content: "\ebaa" } +.codicon-merge:before { content: "\ebab" } +.codicon-export:before { content: "\ebac" } +.codicon-graph-left:before { content: "\ebad" } +.codicon-magnet:before { content: "\ebae" } +.codicon-notebook:before { content: "\ebaf" } +.codicon-redo:before { content: "\ebb0" } +.codicon-check-all:before { content: "\ebb1" } +.codicon-pinned-dirty:before { content: "\ebb2" } +.codicon-pass-filled:before { content: "\ebb3" } +.codicon-circle-large-filled:before { content: "\ebb4" } +.codicon-circle-large:before { content: "\ebb5" } +.codicon-circle-large-outline:before { content: "\ebb5" } +.codicon-combine:before { content: "\ebb6" } +.codicon-gather:before { content: "\ebb6" } +.codicon-table:before { content: "\ebb7" } +.codicon-variable-group:before { content: "\ebb8" } +.codicon-type-hierarchy:before { content: "\ebb9" } +.codicon-type-hierarchy-sub:before { content: "\ebba" } +.codicon-type-hierarchy-super:before { content: "\ebbb" } +.codicon-git-pull-request-create:before { content: "\ebbc" } +.codicon-run-above:before { content: "\ebbd" } +.codicon-run-below:before { content: "\ebbe" } +.codicon-notebook-template:before { content: "\ebbf" } +.codicon-debug-rerun:before { content: "\ebc0" } +.codicon-workspace-trusted:before { content: "\ebc1" } +.codicon-workspace-untrusted:before { content: "\ebc2" } +.codicon-workspace-unknown:before { content: "\ebc3" } +.codicon-terminal-cmd:before { content: "\ebc4" } +.codicon-terminal-debian:before { content: "\ebc5" } +.codicon-terminal-linux:before { content: "\ebc6" } +.codicon-terminal-powershell:before { content: "\ebc7" } +.codicon-terminal-tmux:before { content: "\ebc8" } +.codicon-terminal-ubuntu:before { content: "\ebc9" } +.codicon-terminal-bash:before { content: "\ebca" } +.codicon-arrow-swap:before { content: "\ebcb" } +.codicon-copy:before { content: "\ebcc" } +.codicon-person-add:before { content: "\ebcd" } +.codicon-filter-filled:before { content: "\ebce" } +.codicon-wand:before { content: "\ebcf" } +.codicon-debug-line-by-line:before { content: "\ebd0" } +.codicon-inspect:before { content: "\ebd1" } +.codicon-layers:before { content: "\ebd2" } +.codicon-layers-dot:before { content: "\ebd3" } +.codicon-layers-active:before { content: "\ebd4" } +.codicon-compass:before { content: "\ebd5" } +.codicon-compass-dot:before { content: "\ebd6" } +.codicon-compass-active:before { content: "\ebd7" } +.codicon-azure:before { content: "\ebd8" } +.codicon-issue-draft:before { content: "\ebd9" } +.codicon-git-pull-request-closed:before { content: "\ebda" } +.codicon-git-pull-request-draft:before { content: "\ebdb" } +.codicon-debug-all:before { content: "\ebdc" } +.codicon-debug-coverage:before { content: "\ebdd" } +.codicon-run-errors:before { content: "\ebde" } +.codicon-folder-library:before { content: "\ebdf" } +.codicon-debug-continue-small:before { content: "\ebe0" } +.codicon-beaker-stop:before { content: "\ebe1" } +.codicon-graph-line:before { content: "\ebe2" } +.codicon-graph-scatter:before { content: "\ebe3" } +.codicon-pie-chart:before { content: "\ebe4" } +.codicon-bracket:before { content: "\eb0f" } +.codicon-bracket-dot:before { content: "\ebe5" } +.codicon-bracket-error:before { content: "\ebe6" } +.codicon-lock-small:before { content: "\ebe7" } +.codicon-azure-devops:before { content: "\ebe8" } +.codicon-verified-filled:before { content: "\ebe9" } +.codicon-newline:before { content: "\ebea" } +.codicon-layout:before { content: "\ebeb" } +.codicon-layout-activitybar-left:before { content: "\ebec" } +.codicon-layout-activitybar-right:before { content: "\ebed" } +.codicon-layout-panel-left:before { content: "\ebee" } +.codicon-layout-panel-center:before { content: "\ebef" } +.codicon-layout-panel-justify:before { content: "\ebf0" } +.codicon-layout-panel-right:before { content: "\ebf1" } +.codicon-layout-panel:before { content: "\ebf2" } +.codicon-layout-sidebar-left:before { content: "\ebf3" } +.codicon-layout-sidebar-right:before { content: "\ebf4" } +.codicon-layout-statusbar:before { content: "\ebf5" } +.codicon-layout-menubar:before { content: "\ebf6" } +.codicon-layout-centered:before { content: "\ebf7" } +.codicon-target:before { content: "\ebf8" } +.codicon-indent:before { content: "\ebf9" } +.codicon-record-small:before { content: "\ebfa" } +.codicon-error-small:before { content: "\ebfb" } +.codicon-terminal-decoration-error:before { content: "\ebfb" } +.codicon-arrow-circle-down:before { content: "\ebfc" } +.codicon-arrow-circle-left:before { content: "\ebfd" } +.codicon-arrow-circle-right:before { content: "\ebfe" } +.codicon-arrow-circle-up:before { content: "\ebff" } +.codicon-layout-sidebar-right-off:before { content: "\ec00" } +.codicon-layout-panel-off:before { content: "\ec01" } +.codicon-layout-sidebar-left-off:before { content: "\ec02" } +.codicon-blank:before { content: "\ec03" } +.codicon-heart-filled:before { content: "\ec04" } +.codicon-map:before { content: "\ec05" } +.codicon-map-horizontal:before { content: "\ec05" } +.codicon-fold-horizontal:before { content: "\ec05" } +.codicon-map-filled:before { content: "\ec06" } +.codicon-map-horizontal-filled:before { content: "\ec06" } +.codicon-fold-horizontal-filled:before { content: "\ec06" } +.codicon-circle-small:before { content: "\ec07" } +.codicon-bell-slash:before { content: "\ec08" } +.codicon-bell-slash-dot:before { content: "\ec09" } +.codicon-comment-unresolved:before { content: "\ec0a" } +.codicon-git-pull-request-go-to-changes:before { content: "\ec0b" } +.codicon-git-pull-request-new-changes:before { content: "\ec0c" } +.codicon-search-fuzzy:before { content: "\ec0d" } +.codicon-comment-draft:before { content: "\ec0e" } +.codicon-send:before { content: "\ec0f" } +.codicon-sparkle:before { content: "\ec10" } +.codicon-insert:before { content: "\ec11" } +.codicon-mic:before { content: "\ec12" } +.codicon-thumbsdown-filled:before { content: "\ec13" } +.codicon-thumbsup-filled:before { content: "\ec14" } +.codicon-coffee:before { content: "\ec15" } +.codicon-snake:before { content: "\ec16" } +.codicon-game:before { content: "\ec17" } +.codicon-vr:before { content: "\ec18" } +.codicon-chip:before { content: "\ec19" } +.codicon-piano:before { content: "\ec1a" } +.codicon-music:before { content: "\ec1b" } +.codicon-mic-filled:before { content: "\ec1c" } +.codicon-repo-fetch:before { content: "\ec1d" } +.codicon-copilot:before { content: "\ec1e" } +.codicon-lightbulb-sparkle:before { content: "\ec1f" } +.codicon-robot:before { content: "\ec20" } +.codicon-sparkle-filled:before { content: "\ec21" } +.codicon-diff-single:before { content: "\ec22" } +.codicon-diff-multiple:before { content: "\ec23" } +.codicon-surround-with:before { content: "\ec24" } +.codicon-share:before { content: "\ec25" } +.codicon-git-stash:before { content: "\ec26" } +.codicon-git-stash-apply:before { content: "\ec27" } +.codicon-git-stash-pop:before { content: "\ec28" } +.codicon-vscode:before { content: "\ec29" } +.codicon-vscode-insiders:before { content: "\ec2a" } +.codicon-code-oss:before { content: "\ec2b" } +.codicon-run-coverage:before { content: "\ec2c" } +.codicon-run-all-coverage:before { content: "\ec2d" } +.codicon-coverage:before { content: "\ec2e" } +.codicon-github-project:before { content: "\ec2f" } +.codicon-map-vertical:before { content: "\ec30" } +.codicon-fold-vertical:before { content: "\ec30" } +.codicon-map-vertical-filled:before { content: "\ec31" } +.codicon-fold-vertical-filled:before { content: "\ec31" } +.codicon-go-to-search:before { content: "\ec32" } +.codicon-percentage:before { content: "\ec33" } +.codicon-sort-percentage:before { content: "\ec33" } +.codicon-git-fetch:before { content: "\f101" } diff --git a/media/shared/codicons/codicon.ttf b/media/shared/codicons/codicon.ttf new file mode 100644 index 00000000..807c949a Binary files /dev/null and b/media/shared/codicons/codicon.ttf differ diff --git a/media/shared/controls.css b/media/shared/controls.css index 59a242c4..df5eb831 100644 --- a/media/shared/controls.css +++ b/media/shared/controls.css @@ -26,21 +26,29 @@ button:disabled { cursor: not-allowed; opacity: .45; } button.secondary { color: var(--btn-secondary-fg); background: var(--btn-secondary-bg); + border-color: color-mix(in srgb, var(--border) 55%, transparent); +} +button.secondary:hover:not(:disabled) { + background: var(--btn-secondary-bg-hover); + border-color: var(--border); } -button.secondary:hover:not(:disabled) { background: var(--btn-secondary-bg-hover); } /* ── Button(迷你 / 工具条内)───────────────────────────────────────── */ .mini-btn { min-height: var(--control-h-sm); padding: 2px 10px; border-radius: var(--radius-sm); + border-color: color-mix(in srgb, var(--border) 40%, transparent); font-size: var(--font-xs); font-weight: var(--weight-medium); white-space: nowrap; color: var(--btn-secondary-fg); background: var(--btn-secondary-bg); } -.mini-btn:hover:not(:disabled) { background: var(--btn-secondary-bg-hover); } +.mini-btn:hover:not(:disabled) { + background: var(--btn-secondary-bg-hover); + border-color: var(--border); +} .mini-btn--primary { color: var(--btn-fg); background: var(--btn-bg); @@ -61,14 +69,14 @@ button.secondary:hover:not(:disabled) { background: var(--btn-secondary-bg-hover /* ── Button(描边幽灵,静态底色 + 描边)────────────────────────────── */ .btn-mini { - border: var(--border-width) solid var(--border); + border: var(--border-width) solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius-sm); padding: 3px 8px; font-size: var(--font-xs); color: var(--text-muted); background: var(--bg-control); } -.btn-mini:hover { background: var(--bg-control-hover); color: var(--text-primary); border-color: var(--border-strong); } +.btn-mini:hover { background: var(--bg-control-hover); color: var(--text-primary); border-color: var(--border); } /* ── IconButton ─────────────────────────────────────────────────────── */ .icon-btn { @@ -82,10 +90,10 @@ button.secondary:hover:not(:disabled) { background: var(--btn-secondary-bg-hover border: var(--border-width) solid transparent; border-radius: var(--radius-sm); color: var(--text-muted); - background: var(--bg-control); + background: var(--bg-row); cursor: pointer; } -.icon-btn:hover { background: var(--bg-control-hover); color: var(--text-primary); } +.icon-btn:hover { background: var(--bg-row-hover); color: var(--text-primary); } /* ── 表单控件 ───────────────────────────────────────────────────────── */ input, select, textarea { font: inherit; } @@ -120,12 +128,12 @@ input[type='radio'] { accent-color: var(--border-strong); } padding: 1px 8px; font-size: var(--font-xs); color: var(--text-muted); - background: var(--bg-control); + background: var(--bg-row); } /* ── Card ───────────────────────────────────────────────────────────── */ .card { - border: var(--border-width) solid var(--border); + border: var(--border-width) solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius-lg); background: var(--bg-container); } @@ -139,7 +147,7 @@ input[type='radio'] { accent-color: var(--border-strong); } flex-wrap: wrap; gap: var(--space-sm); align-items: center; - padding: var(--space-sm) 0; + padding: var(--space-sm) 0 var(--space-md); background: var(--bg-page); } @@ -147,8 +155,8 @@ input[type='radio'] { accent-color: var(--border-strong); } .panel-section-title { display: flex; align-items: center; - gap: 7px; - margin: var(--space-md) 1px var(--space-sm); + gap: var(--space-sm); + margin: var(--space-lg) 1px var(--space-sm); color: var(--text-muted); font-size: var(--font-xs); font-weight: var(--weight-medium); @@ -173,6 +181,35 @@ input[type='radio'] { accent-color: var(--border-strong); } font-size: var(--font-sm); white-space: pre-wrap; } +.panel-empty__title { + margin-bottom: var(--space-xs); + color: var(--text-primary); + font-size: var(--font-md); + font-weight: var(--weight-medium); +} +.panel-empty__path { + font-family: var(--font-mono); + font-size: var(--font-xs); + word-break: break-all; +} +/* 空态 / 错误横幅里的下一步动作按钮 */ +.panel-actions { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: var(--space-sm); + margin-top: var(--space-md); +} +.panel-actions--start { justify-content: flex-start; margin-top: var(--space-sm); } +.panel-banner { + margin: var(--space-sm); + border: var(--border-width) solid color-mix(in srgb, var(--err) 45%, var(--border)); + border-radius: var(--radius-md); + padding: var(--space-sm) var(--space-md); + background: var(--danger-bg); + font-size: var(--font-sm); + white-space: pre-wrap; +} .panel-hint { color: var(--text-muted); font-size: var(--font-xs); @@ -198,13 +235,15 @@ input[type='radio'] { accent-color: var(--border-strong); } [role='button'] { cursor: pointer; } [role='button']:focus-visible { outline: 1px solid var(--border-strong); outline-offset: 1px; } -/* 真按钮:控件面 + 描边 */ +/* 真按钮:控件面(危险/迷你/分组折叠);图标按钮用更轻的行级面,避免工具条变灰块墙 */ .mini-btn--danger, .btn-mini, -.icon-btn, .config-group__toggle { background: var(--bg-control); } +.icon-btn { + background: var(--bg-row); +} .thumbnail-actions { position: absolute; @@ -219,7 +258,7 @@ input[type='radio'] { accent-color: var(--border-strong); } height: 24px; min-height: 24px; padding: 0; - border: var(--border-width) solid var(--border); + border: var(--border-width) solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius-sm); background: var(--bg-control); color: var(--text-primary); @@ -228,9 +267,20 @@ input[type='radio'] { accent-color: var(--border-strong); } } .thumbnail-actions button:hover, .thumbnail-actions button:focus-visible { background: var(--bg-control-hover); - border-color: var(--border-strong); + border-color: var(--border); +} +/* 危险动作(删除)与查看/交换分开放:卡片右上角,悬停才转危险色 */ +.thumbnail-actions--danger { top: 3px; bottom: auto; } +.thumbnail-actions button.is-danger:hover, +.thumbnail-actions button.is-danger:focus-visible { + color: var(--err); + border-color: var(--err); } +/* 缩略图卡片选中 / 键盘焦点(单击 = 选中,Enter / 双击 = 主操作) */ +.card.is-selected { border-color: var(--border-strong); box-shadow: inset 0 0 0 1px var(--border-strong); } +.card:focus-visible { outline: 1px solid var(--border-strong); outline-offset: 2px; } + /* 行级可点击区(组头 / 折叠标题行 / tab):极浅色调,不参与按钮权重 */ .seg__btn:not(.is-active), .gbar__row--link, @@ -239,3 +289,15 @@ input[type='radio'] { accent-color: var(--border-strong); } .config-section-title--toggle { background: var(--bg-row); } + +/* ═══ Codicon 图标(media/shared/codicons + icons.js) ═════════════ */ +.has-codicon { + display: inline-flex; + align-items: center; + justify-content: center; + gap: var(--space-xs); +} +.has-codicon .codicon, +.codicon.codicon--sm { font-size: var(--icon-sm); } +.is-icon-only { min-width: 24px; padding-inline: var(--space-xs); } +.is-icon-only .codicon { font-size: var(--icon-md); } diff --git a/media/shared/icons.js b/media/shared/icons.js new file mode 100644 index 00000000..a3ee505d --- /dev/null +++ b/media/shared/icons.js @@ -0,0 +1,29 @@ +/** + * Codicon 小工具:所有面板的图标统一走 VS Code codicons(media/shared/codicons), + * 不再用 emoji / Unicode 符号(字形随字体漂移、读屏会念出符号名)。 + * + * OkIcons.icon('play') →