feat(render): Nada 二值前景风格(白底黑 glyph + 超采样抗锯齿) - #1
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
把 Nada 主题包验证过的 nothing_sharp 算法移植进 app:
NadaForeground.kt:白底 + 深色 glyph 二值前景提取ForcedMonoStyle.kt:强制单色风格枚举MonochromeIconFactory/NothingRenderParams/IconPipeline接入新风格ParamsScreen增加风格选项(中英文 string)NothingForegroundTest.kt单元测试算法要点:glyph = 亮且低饱和(白logo)或暗(深logo),2160 超采样二值化后 LANCZOS 降到目标分辨率,边缘抗锯齿无毛边。已在 Nada 主题包 1519 个图标上验证。