Bug 1755564 - Tweak spell checker underline color in dark mode. r=spohl

I think this is a slightly better color and saves me from actually
making a decision over the options in comment 9 and so on.

I'll ask Firefox UX to take a look at comment 9 so that they can
evaluate and make a decision (and maybe tweaking our link colors), if we
want to change it.

Depends on D163402

Differential Revision: https://phabricator.services.mozilla.com/D163403
This commit is contained in:
Emilio Cobos Álvarez 2022-12-07 18:44:58 +00:00
parent fb4758fe7f
commit 04b28aaead

View File

@ -837,7 +837,12 @@ Maybe<nscolor> nsXPLookAndFeel::GenericDarkColor(ColorID aID) {
// value of browser.visited_color.dark.
color = NS_RGB(0xff, 0xad, 0xff);
break;
case ColorID::SpellCheckerUnderline:
// This is the default for active links in dark mode as well
// (browser.active_color.dark). See bug 1755564 for some analysis and
// other options too.
color = NS_RGB(0xff, 0x66, 0x66);
break;
default:
return Nothing();
}