Repository navigation
fix(notifications): keep the colors that carry a small icon's shape - #54
A-nony-mous wants to merge 1 commit into
Conversation
7ab7f8c to
9bdd7d2
Compare
Apps that ship a filled colour bitmap as their small icon (QQ, WeChat, DiDi) reached the glasses as a flat block: tinting every small icon white keeps the alpha and drops the colours that carried the shape. System icons are unaffected, since their alpha is cut out. Classify from the rendered pixels instead: hue means colour artwork and keeps its colours; a colourless icon is a template only when its alpha is cut out. Template icons render exactly as before. The debug-icon dump now writes in debug builds only and sweeps once per process.
9bdd7d2 to
8bfd613
Compare
|
Opus 5.5 PR review. I'll probably have time to look more closely and iterate over the weekend.
|
Notification icons reached the glasses as blank(or green) blocks for the apps whose small icon is a filled color bitmap : the loader tinted every small icon white on the assumption that a small icon is an alpha template, which does hold for well-developed app. Tinting kept the alpha and discarded the colors, and the alpha was solid, so the whole icon became one flat white(green) square.
Some app still looks terrible but better.
The debug-icon dump also grows without bound: one file per icon per index, written on every refresh and never removed, in release builds nobody can pull from. Write it in debug builds only and sweep the directory once per process.