mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Improve visibility of green icons on white background (#1196)
This commit is contained in:
parent
4ea8abb53b
commit
76948cffa8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user