Skip to content

[2090] 修复文档背景图片预览与应用 - #4321

Open
PinkMagicFly wants to merge 2 commits into
MoganLab:mainfrom
PinkMagicFly:pigmagicfly/2090/restore-background-picture-menu
Open

[2090] 修复文档背景图片预览与应用#4321
PinkMagicFly wants to merge 2 commits into
MoganLab:mainfrom
PinkMagicFly:pigmagicfly/2090/restore-background-picture-menu

Conversation

@PinkMagicFly

@PinkMagicFly PinkMagicFly commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Closes #4072

修改内容

  • 恢复“文档 -> 颜色 -> 背景色 -> 图片”入口。
  • Windows 下将所选图片保存为 C:/...,避免反斜杠写入 Scheme 偏好设置,同时保持 url_system 可识别的盘符路径。
  • 预览与正式渲染优先解析系统路径,并保留旧 Unix 形式路径回退。
  • 补充背景图案三参数与 Windows 系统路径的回归测试。

验证

  • gf fmt --changed-since=main
  • clang-format --dry-run --Werror -- src/Graphics/Renderer/brush.cpp src/Typeset/Env/env_exec.cpp tests/Graphics/Renderer/brush_test.cpp
  • xmake build stem
  • xmake build brush_test
  • xmake install stem
  • brush_test -v1(设置 xmake Qt 运行时目录与 TEXMACS_PATH=build/packages/stem/data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2090] 设置文档背景图片的功能有问题

1 participant