Skip to content

Releases

Trae 扩展 v0.2.7 — 壁纸声音 + 帧率 1–144 + 导入视频封面

Choose a tag to compare

@Tisakonicc Tisakonicc released this 14 Nov 02:38

新增

  • 壁纸声音:支持视频音轨与场景音效播放,新增静音开关和 0–100 音量调节(默认静音,不打扰)。
    受浏览器自动播放策略限制,首次开启需要点一下壁纸解锁。
  • 帧率 1–144 可调:场景 / 网页壁纸的帧率从原来的 30 / 60 两档下拉,改成滑块 + 数字输入,支持任意整数帧率。
  • 导入视频自动封面:外部导入的视频没有封面图,现在由本地服务调用 ffmpeg 抽第 1 秒的一帧作为缩略图
    (结果缓存在 %TEMP%\background-wallpaper-thumbs)。未安装 ffmpeg 时仅不显示封面,不影响播放。

修复

  • 修复场景 / 网页壁纸调音量完全无效:渲染引擎把音量暴露为 setVolume() 方法而非 volume 属性,
    此前赋值只写了个无效属性,音轨从未被调到。
  • 修复外部导入项选中后缩略图空白:面板之前拿不到可用的封面地址,改为统一走本地 /preview/<id>。
  • 修复 render 脚本被浏览器缓存导致更新不生效,live.js / live.css 改为 no-store。
  • 视频开场解码抖动期间保留预览图,避免起播瞬间闪烁卡顿。

安装

下载 background-wallpaper-engine-0.2.7.vsix,扩展面板 → ··· → 从 VSIX 安装,然后完全退出 IDE 再打开
(首次注入 workbench.html 需要重启,仅重载窗口不够)。

Open VSX 生态(VSCodium / Theia / code-server)可直接搜 tisakonicc 安装。

Background-Wallpaper-Engine

Choose a tag to compare

@Tisakonicc Tisakonicc released this 12 Nov 09:12

Trae 扩展 v0.2.3

中文

修复:切换主题后背景消失

workbench 在切换主题时会重建 body,背景 iframe 的文档虽然还挂在 DOM 里,但内部文档已经死了——过去只检查"元素还在不在",发现不了这种故障,表现为换完主题背景变黑且不再恢复。

这一版加了心跳自愈,每 4 秒做三件事:

  1. workbench 重排把 iframe 挤掉 → 重新挂回;
  2. 给渲染页发 ping,用它是否回 pong 判断文档还活着;
  3. 连续 12 秒没有回话 → 换一个 src 重新加载。

同时处理了误判:窗口在后台时浏览器会节流定时器,恢复可见时重置计时,避免刚切回来就被判成"文档已死"。

其它:图标与 README 更新;package.json 版本 0.2.3。

安装:下载下方 vsix → 扩展面板右上角 ··· → 从 VSIX 安装 → 完全退出 IDE 再打开。

Trae CN 的扩展市场与 VS Code 官方市场都不收录本扩展,搜名字搜不到。


English

Fix: background disappeared after switching themes

When a theme is applied, workbench rebuilds body. The background iframe is still in the DOM but its document is already dead — the old check only verified the element existed, so it never noticed, leaving a black background that never came back.

This release adds heartbeat self-healing, every 4 seconds:

  1. if workbench reflowed the iframe away, re-attach it;
  2. send a ping to the rendered page and use the pong reply as proof the document is alive;
  3. no reply for 12 consecutive seconds → replace src and reload.

False positives are handled too: background windows get their timers throttled, so the counter resets when the window becomes visible again.

Also: updated icon and README; package.json bumped to 0.2.3.

Install: download the vsix below → Extensions panel ··· → Install from VSIX → fully quit and reopen the IDE.

Neither the Trae CN marketplace nor the Microsoft VS Code marketplace lists this extension; searching for its name will not find it.

Background-Wallpaper-Engine-v0.2.14

Choose a tag to compare

@Tisakonicc Tisakonicc released this 14 Nov 09:32

Background-Wallpaper-Engine v0.2.14

把 Steam Wallpaper Engine 的壁纸(视频 / 场景 / 网页)和本地导入的视频、图片渲染成 IDE 背景,
支持播放壁纸自带的背景音乐,Trae CN 与 VS Code 可同时运行、互不影响。

本版重点

  • 修复 VS Code 下壁纸音效不出声:VS Code 主窗口写死了 autoplayPolicy: "user-gesture-required",
    而背景层是 pointer-events: none,永远拿不到点击手势。现在扩展会自动把 VS Code 主窗口这一项改成
    no-user-gesture-required(与 Trae 一致),并在「移除背景并还原 IDE」时还原。
  • 只匹配主窗口那一处(与 enableBlinkFeatures:"HighlightAPI" 相邻),不影响其它窗口;
    VS Code 升级覆盖后,扩展下次启动会自动重新应用。
  • Trae 侧本来就有声,不受影响。

需要注意

  • 音效补丁改的是主进程文件,装完/升级后必须完全退出 IDE 再打开(重载窗口不生效);
    实测:完全退出重启后音效正常出声,只重载窗口不出声。
  • Trae 与 VS Code 各自使用 32123–32128 中的独立端口,可同时开着,互不顶掉、不会反复弹「重载窗口」。
  • 扩展通过修改 workbench.html(VS Code 下另改主进程自动播放策略)实现背景与音频,属非官方实现,
    可能触发「安装似乎损坏」等完整性提示,请自行评估风险;与 Trae / Steam / Wallpaper Engine 无隶属关系。

安装

  1. 下载 background-wallpaper-engine-0.2.14.vsix;
  2. 扩展面板 → ··· → 从 VSIX 安装(或把 vsix 拖进扩展面板);
  3. 完全退出 IDE 再重新打开。

命令行:

# Trae CN
& "D:\trae\Trae CN\bin\trae-cn.cmd" --install-extension background-wallpaper-engine-0.2.14.vsix --force

# VS Code
code --install-extension background-wallpaper-engine-0.2.14.vsix --force

VSCodium / Theia / code-server / Gitpod 可直接在 Open VSX 搜索 tisakonicc 安装。

完整更新日志

  • 0.2.14:修复 VS Code 下壁纸音效不出声(放宽主窗口自动播放策略,可还原)。
  • 0.2.13:加载更快(状态轮询 1.5s → 0.6s,启动密集轮询窗口 4s → 12s);记住上次可用端口;
    固定端口列表,不再随占用变化重复注入。
  • 0.2.12:恢复壁纸背景音乐(视频音轨 / 场景音效,可静音、0–100% 音量实时调节)。

完整资源:background-wallpaper-engine-0.2.14.vsix(422 KB)

Background-Wallpaper-Engine

Choose a tag to compare

@Tisakonicc Tisakonicc released this 13 Nov 13:31

Background-Wallpaper-Engine for Trae / VS Code · v0.2.5

本次更新主要修复 VS Code 上的兼容性问题,此前在 VS Code 中壁纸会全黑、
背景层不显示,日志中持续出现 ERR_BLOCKED_BY_CSP。

修复

1. 修复 VS Code 下壁纸全黑(CSP 指令被拼接破坏)

注入时改写 workbench.html 的 CSP,frame-src 与它的取值之间的空白被吞掉,
变成了 frame-src'self'。浏览器把这一整串当成一个未知指令名,frame-src
实际等同于不存在,default-src 'none' 随即生效 —— 渲染页 iframe 被完全禁止加载,
表现为壁纸全黑、或只在左上角出现一小块。

现已保证指令名与取值之间至少保留一个空格,注入后的 CSP 在 VS Code / Trae /
VSCodium 上均可正常解析。

2. 修复 script-src 未真正放宽

放宽 CSP 时在错误的字符串上查找 script-src,导致 'unsafe-inline' 从未被写入。
注入的内联脚本会被 CSP 拒绝执行,背景层因此根本不会挂载。
现在按指令内容正确前置 'unsafe-inline',同时修正了还原时的移除规则。

3. 修复壁纸入口文件缺失时不回退

部分 Wallpaper Engine 工坊壁纸的 project.json 声明 file: "scene.json",
但目录里实际只有 scene.pkg,导致这类壁纸无法识别或加载失败。
现在声明文件不存在时会按
index.html → scene.pkg → scene.json → loop.mp4 → preview.webm
顺序回退到真实存在的入口文件。

其他

  • 打包排除临时调试脚本,减小安装包体积

升级方式

  • Open VSX:扩展会自动更新到 0.2.5
  • 手动安装:下载 background-wallpaper-engine-0.2.5.vsix,在扩展面板
    右键「从 VSIX 安装」

注入修改的是 IDE 自身的 workbench.html,更新后请完全退出 IDE 再重新打开,
注入才会生效。若首次提示「安装似乎损坏」,重启一次后即不再出现。

Background-Wallpaper-Engine

Choose a tag to compare

@Tisakonicc Tisakonicc released this 12 Nov 09:14

PyCharm 插件 v0.9.13
中文
兼容性:支持 PyCharm 2022.3 及以上

plugin.xml 的 since-build 改为 223,并不设上界,之前卡在较新的版本区间,2022.3 / 2023.x 用户装不上。

兼容 JPanel 与 JComponent 两种背景变换签名

编辑器背景的插入点在不同 IntelliJ 平台版本上类型不同(JPanel / JComponent),直接调用 setBounds 一类的重载会在部分版本上抛 NoSuchMethodError。这一版改为反射调用,两种签名都能命中。

其它改动

图标改为 pluginIcon.svg(含深色版),替换原来的 PNG 位图;

移除动图与帧率设置项;

填充方式恢复默认「完整显示」。

安装包:background-wallpaper-engine-0.9.13.zip(1,984,384 字节)

SHA-256:5ecb85b86678a5a8c5d26ade69762a3739ffe25828900d90480df0e2422fcd68

安装:Settings → Plugins → ⚙ → Install Plugin from Disk...,选择下方 zip,重启 IDE。

还原:插件不修改 IDE 安装目录的任何文件,停用/卸载插件即完全恢复。

English
Compatibility: PyCharm 2022.3 and newer

since-build in plugin.xml is now 223 with no upper bound; older builds were pinned to a narrow range, so 2022.3 / 2023.x users could not install.

Works with both JPanel and JComponent background-transform signatures

The editor background insertion point is typed differently across IntelliJ platform versions (JPanel vs JComponent), and calling an overload such as setBounds directly throws NoSuchMethodError on some builds. This release switches to reflective invocation so both signatures resolve.

Also

icon moved to pluginIcon.svg (with a dark variant) instead of the PNG bitmaps;

removed the animated-image and frame-rate settings;

fill mode defaults back to "fit".

Package: background-wallpaper-engine-0.9.13.zip (1,984,384 bytes)

SHA-256: 5ecb85b86678a5a8c5d26ade69762a3739ffe25828900d90480df0e2422fcd68

Install: Settings → Plugins → ⚙ → Install Plugin from Disk..., pick the zip below, restart the IDE.

Uninstall: the plugin never modifies the IDE installation directory; disabling or removing it restores everything.

v0.2.2 and v0.8.0

Choose a tag to compare

@Tisakonicc Tisakonicc released this 10 Nov 02:37
fd68f92

本次发布包含两个产物

IDE 产物 版本
Trae CN / VS Code background-wallpaper-engine-0.2.2.vsix 0.2.2
PyCharm 2024.1 background-wallpaper-engine-0.8.0.zip 0.8.0

两个产物版本号各自独立:扩展这次只更新了元数据,插件是重写后的新版本。


PyCharm 插件 v0.8.0

把 Wallpaper Engine 的壁纸铺到整个 IDE 窗口——项目树、工具栏、编辑器、状态栏都能透出背景,代码正常显示在上面。

怎么做的

用平台自带的背景图机制 IdeBackgroundUtil.createTemporaryBackgroundTransform(),由 IDEA 自己把界面内容按透明度绘制。不修改任何组件的 opaque 或背景色,背景挂在 Disposable 上——禁用插件或卸载时 dispose 即完全还原(实测禁用前后像素差异 0.02%)。

面板里的调节项(拖动即时生效)

  • 不透明度:壁纸透出多少
  • 背景虚化:0~60 像素,柔化细节
  • 代码区压暗:只压暗代码所在区域,项目树的壁纸照常透出
  • 水平位置:0~100,把画面左右挪动
  • 填充方式:适应窗口(完整显示)/ 铺满窗口(裁掉边缘)/ 拉伸

兼容性声明

与 Material Theme UI(完整版)存在冲突,请不要同时启用。

Material Theme UI 会接管界面背景与组件绘制的控制权,覆盖本插件的背景层。冲突表现:

  • 壁纸不显示,或只在部分区域显示
  • 壁纸被主题的深色底整块盖住
  • 切换壁纸或改参数后界面闪烁

已在 Material Theme UI 9.3.1 上确认。处理方式二选一:禁用 Material Theme UI,或在「壁纸」面板里关闭壁纸。

Material Theme UI Lite 只调整配色、不接管组件绘制,理论上影响更小,但未逐一验证。

已知限制

  • 只能显示静态画面:平台的背景变换在创建时就把图像快照了,替换内容不会刷新。视频 / 场景 / 网页类壁纸统一取其预览帧。
  • 首次使用如提示需要重启,重启一次即可(离屏渲染注册表项需要重启生效)。

安装

  1. 下载 background-wallpaper-engine-0.8.0.zip
  2. 设置 → 插件 → ⚙ → 从磁盘安装插件…
  3. 选择这个 zip,重启 IDE

要求 PyCharm 2024.1(build 241)。安装后在右侧「壁纸」工具窗口选壁纸、调参数。

校验

  • 文件:background-wallpaper-engine-0.8.0.zip,58,182 字节
  • SHA-256:e5cbb1a3c7ef16820cdad8f8c97c06a8cc0d160f09a641173b8b3c005d7f1894

Trae CN / VS Code 扩展 v0.2.2

元数据更新,代码与 0.2.1 完全一致(逐文件哈希比对)。正在用 0.2.1 的可以跳过,不会有任何功能差异。

改了什么

  • 显示名 Background-Wallpaper-Engine → Background Wallpaper Engine,界面里不再是带连字符的名字
  • 搜索关键词 7 → 12:新增 wallpaper-engine、vscode-background、ide background、video wallpaper、trae
  • 补全 repository / homepage / bugs,详情页的仓库链接现在可用
  • 修正 extension.vsixmanifest 中的 Publisher,与 package.json 的 tisakonicc 保持一致

安装(Trae CN 与 VS Code 通用)

  1. 下载 background-wallpaper-engine-0.2.2.vsix
  2. 扩展面板右上角 … → 从 VSIX 安装
  3. 完全退出 IDE 再打开

Trae CN 扩展市场与 VS Code 官方市场均不收录本扩展,搜名字搜不到。
Open VSX 生态(VSCodium / Theia / code-server)可直接搜 tisakonicc。

校验

  • 文件:background-wallpaper-engine-0.2.2.vsix,406,914 字节
  • SHA-256:898dd1d4ed502edbccc8231456aca75da7542d1bdf6a4952639d8935c120adfd

English

This release ships two packages with independent version numbers:

IDE Asset Version
Trae CN / VS Code background-wallpaper-engine-0.2.2.vsix 0.2.2
PyCharm 2024.1 background-wallpaper-engine-0.8.0.zip 0.8.0

PyCharm plugin 0.8.0

Full-window wallpaper behind the whole IDE, built on the platform's own IdeBackgroundUtil.
No component properties are modified; the background lives on a Disposable, so disabling the
plugin restores the UI exactly (measured pixel diff 0.02%).

Panel controls, all applied live: opacity, blur, editor-area scrim, horizontal position, fit mode.

Compatibility notice — conflicts with Material Theme UI (full version). Do not enable both.
Material Theme UI takes over window background and component painting, which covers the wallpaper
layer: the wallpaper may not show, show only partially, or be fully hidden behind the theme's dark
background. Confirmed on Material Theme UI 9.3.1. Workaround: disable one of them.
Material Theme UI Lite only changes colors and does not take over component painting, so it is
likely unaffected, but this has not been verified individually.

Limitation — static images only: the platform snapshots the image when the transform is created,
so replacing its contents does not refresh. Video / scene / web wallpapers fall back to their preview
frame.

Install — Settings → Plugins → ⚙ → Install Plugin from Disk… → select the zip → restart.
Requires PyCharm 2024.1 (build 241).

VS Code extension 0.2.2

Metadata-only; code identical to 0.2.1 (verified file by file). No functional change — nothing to
upgrade if you already run 0.2.1.

  • Display name Background-Wallpaper-Engine → Background Wallpaper Engine
  • Keywords 7 → 12 (added wallpaper-engine, vscode-background, ide background, video wallpaper, trae)
  • Added repository / homepage / bugs
  • Fixed the publisher in extension.vsixmanifest to match package.json (tisakonicc)

Install — download the .vsix, then Extensions → … → Install from VSIX, and fully restart the
IDE. Not listed on the Trae CN or VS Code marketplaces; search tisakonicc on Open VSX.