mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
Improve visibility of green icons on white background (#1196)
This commit is contained in:
parent
4ea8abb53b
commit
76948cffa8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue