You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emoji glyphs in disabled button text are not faded — this issue.
Describe the bug
A button whose text is an emoji (e.g. 🔝) stays at full brightness when disabled. Regular text glyphs and Unicode triangle (▲) get colored with theme.ColorNameDisabled correctly, but emoji is rasterised by the font fallback (see comment from @andydotxyz on #6217) so it doesn't honor the text color.
The fix lives in the text/painter pipeline rather than the button renderer: emoji glyphs are drawn through the emoji font fallback in internal/painter/font.go, and a fade or grayscale would need to be propagated from the parent disabled state into the painter. The bitmap-icon fix in #6381 only covers Button.Icon and explicitly leaves this part out of scope.
Context
Spun off from #6217 — that issue mixed two related problems:
Describe the bug
A button whose text is an emoji (e.g.
🔝) stays at full brightness when disabled. Regular text glyphs and Unicode triangle (▲) get colored withtheme.ColorNameDisabledcorrectly, but emoji is rasterised by the font fallback (see comment from @andydotxyz on #6217) so it doesn't honor the text color.How to reproduce
btn2(▲) appears grayed out,btn1(🔝) does not.Why this needs a separate PR
The fix lives in the text/painter pipeline rather than the button renderer: emoji glyphs are drawn through the emoji font fallback in
internal/painter/font.go, and a fade or grayscale would need to be propagated from the parent disabled state into the painter. The bitmap-icon fix in #6381 only coversButton.Iconand explicitly leaves this part out of scope.Fyne version
develop branch (as of #6381).