Skip to content

feat(render): Nada 二值前景风格(白底黑 glyph + 超采样抗锯齿) - #1

Merged
Anndy999 merged 1 commit into
mainfrom
nada-binary-foreground
Sep 8, 2026
Merged

Anndy999 merged 1 commit into
mainfrom
nada-binary-foreground

Conversation

@Anndy999

@Anndy999 Anndy999 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

把 Nada 主题包验证过的 nothing_sharp 算法移植进 app:

  • 新增 NadaForeground.kt:白底 + 深色 glyph 二值前景提取
  • 新增 ForcedMonoStyle.kt:强制单色风格枚举
  • MonochromeIconFactory / NothingRenderParams / IconPipeline 接入新风格
  • ParamsScreen 增加风格选项(中英文 string)
  • NothingForegroundTest.kt 单元测试

算法要点:glyph = 亮且低饱和(白logo)或暗(深logo),2160 超采样二值化后 LANCZOS 降到目标分辨率,边缘抗锯齿无毛边。已在 Nada 主题包 1519 个图标上验证。

Port the proven nothing_sharp algorithm from the Nada theme pack:
- white-bg + dark-glyph binary foreground (bright+low-sat glyph OR dark glyph)
- supersample 2x then LANCZOS downscale for anti-aliased edges
- expose as a new ForcedMonoStyle option in ParamsScreen
- unit tests in NothingForegroundTest.kt
@Anndy999
Anndy999 merged commit f6817e2 into main Sep 8, 2026
1 check passed
@Anndy999
Anndy999 deleted the nada-binary-foreground branch September 8, 2026 03:59
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