1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 17:02:12 +00:00

Everywhere: Fix a bunch of typos

This commit is contained in:
Linus Groh 2022-05-29 11:50:10 +01:00 committed by Andreas Kling
parent f377951178
commit 173dcfb7cb
17 changed files with 23 additions and 23 deletions

View file

@ -79,7 +79,7 @@ void Button::paint_event(PaintEvent& event)
if (m_icon) {
auto solid_color = m_icon->solid_color(60);
// Note: 4.5 is the minimum recommended constrast ratio for text on the web:
// Note: 4.5 is the minimum recommended contrast ratio for text on the web:
// (https://developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Perceivable/Color_contrast)
// Reusing that threshold here as it seems to work reasonably well.
bool should_invert_icon = solid_color.has_value() && palette().button().contrast_ratio(*solid_color) < 4.5f;