Update menu icons colors per app state & add contrast to bright icons for improved visibility when Selected (#1189)

* Orange icons vs yellow

* Update app icon colors per current development states

* Darken bright icons on white backgrounds

* Darken bright icons on white backgrounds
This commit is contained in:
Mark Thompson 2023-06-25 12:48:51 -05:00 committed by GitHub
parent 996ccb0e40
commit 960ecf616c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 12 deletions

View file

@ -79,6 +79,10 @@ 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))
foreground = foreground.dark();
display.draw_bitmap(p, bitmap.size, bitmap.data, foreground, background);
}