Improve visibility of green icons on white background (#1196)

This commit is contained in:
Mark Thompson 2023-06-27 03:19:34 -05:00 committed by GitHub
parent 4ea8abb53b
commit 76948cffa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ int Painter::draw_string(
void Painter::draw_bitmap(Point p, const Bitmap& bitmap, Color foreground, Color background) {
// If bright foreground colors on white background, darken the foreground color to improve visibility
if ((background.v == ui::Color::white().v) && (foreground.to_greyscale() > 175))
if ((background.v == ui::Color::white().v) && (foreground.to_greyscale() > 146))
foreground = foreground.dark();
display.draw_bitmap(p, bitmap.size, bitmap.data, foreground, background);