Skip to content

feat(reference-video-tools): selectable placeholder colours - #38

Merged
rponeawa merged 1 commit into
mainfrom
feat/placeholder-color-presets
Aug 22, 2026
Merged

rponeawa merged 1 commit into
mainfrom
feat/placeholder-color-presets

Conversation

@rponeawa

Copy link
Copy Markdown
Member

mock 素材若与所在基底同色会读作"洞"而不是"槽位"。占位图现在可选颜色:

  • --color 接受预设名:light(默认,深底可见)、mid、dark(浅底可见)、white、black,或任意六位 hex
  • 内框边框自动取填充色的对比色——浅填充配深边框、深填充配浅边框,保证在任意基底上都可见
  • 非法颜色按名拒绝,报出可用选项

验证:pnpm check + 524 项测试全过;light/dark/black 与非法值均实测正确。

🤖 Generated with Claude Code

A mock the same shade as its surroundings reads as a hole rather than a slot,
so the placeholder fill is now a named preset — light (default, shows on a
dark base), mid, dark (shows on a light base), white, black — or a six-digit
hex. The inset border is the contrast of the fill, so the placeholder stays
visible whichever base it sits on. Invalid colours are refused by name.
@rponeawa
rponeawa merged commit e2ccf00 into main Aug 22, 2026
2 checks passed
@overlordkim
overlordkim deleted the feat/placeholder-color-presets branch August 26, 2026 08:06
overlordkim pushed a commit that referenced this pull request Sep 9, 2026
feat(reference-video-tools): selectable placeholder colours
overlordkim pushed a commit that referenced this pull request Sep 9, 2026
feat(reference-video-tools): selectable placeholder colours
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