mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
Everywhere: Fix a bunch of typos
This commit is contained in:
committed by
Andreas Kling
parent
f377951178
commit
173dcfb7cb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user