Skip to content

feat(themes): support custom image backdrops - #512

Merged
github-actions[bot] merged 1 commit into
router-for-me:miaomiaofrom
Roomen:feat/theme-image-backdrops
Oct 23, 2026
Merged

github-actions[bot] merged 1 commit into
router-for-me:miaomiaofrom
Roomen:feat/theme-image-backdrops

Conversation

@Roomen

@Roomen Roomen commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Load bounded PNG, JPEG, WebP and AVIF backdrop assets from custom theme folders, rejecting unsafe paths and symlinks.
  • Apply image backdrops and focal positions to theme previews, workspace backgrounds and sticky surfaces, with image precedence over native window material.
  • Extend the schema, browser mock and regression coverage; remove custom-theme documentation from the three READMEs and v0.3.47 release notes.

Validation

  • bun run check — passed.
  • bun run build — passed.
  • bun test tests/themeImages.test.ts tests/customThemes.test.ts tests/cssThemeLint.test.ts — 56 passed.
  • bun test tests/theme.test.ts tests/themeBackgrounds.test.ts tests/themeContract.test.ts tests/themeRegistry.test.ts tests/themePreferences.test.ts tests/themeAccentContrast.test.ts tests/windowMaterialStyles.test.ts tests/windowMaterialOpacity.test.ts — 88 passed.
  • TMPDIR=/private/tmp cargo test --locked --manifest-path src-tauri/Cargo.toml desktop_theme::tests — 6 passed, 948 filtered out.
  • PLAYWRIGHT_MODULE="$(npm root -g)/playwright" node tests/theme-images-ui.cjs — 10 resize scenarios passed across Chromium and WebKit, plus decode, overlay, switching and fallback assertions.
  • Full Bun/Rust suites, other UI suites and native desktop testing were not run.
  • Known limitation: raster signature validation does not ensure successful decoding; corrupt files with valid headers can suppress native material without displaying an image.

- Load bounded raster assets from custom theme folders.\n- Apply image backdrops and focal positions across theme surfaces.\n- Extend schema, mock and regression coverage and trim theme documentation.
@github-actions
github-actions Bot merged commit 07983a2 into router-for-me:miaomiao Oct 23, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

已自动合并并发布 Miaomiao Preview。

构建提交:07983a2ff59c284573e9e0605c48b21cbe50a99f

下载页为滚动预览版,后续成功构建会替换安装包。

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.

1 participant