Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions libs/ui/FreeInkUI/src/FreeInkUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,14 @@ TextStyle textStyleWithForeground(TextStyle text, Paint foreground) {
if (foreground.kind == PaintKind::Solid) {
text.color = foreground.color;
text.inverted = foreground.color == Color::White;
} else if (foreground.kind == PaintKind::Dither) {
// A dithered foreground (e.g. a disabled list row's dither(LightGray))
// must reach the renderer's dithered text path. Without this, the color
// stays at its default Black and the rasterizer takes the solid-black
// path, so a disabled row renders indistinguishable from an enabled one
// even though its resolved style carried a gray foreground.
text.color = foreground.color;
text.inverted = false;
}
return text;
}
Expand Down