gecko-dev/modules/libpref
Emilio Cobos Álvarez 9f65d4a846 Bug 1722031 - Tweak accent-color foreground computation and let it ride the trains. r=mstange
The accent-color computation right now chooses between black and white,
which is not ideal.

I tried to make it so that authors could choose the foreground colors in
the linked CSSWG issue from the comment, but that didn't go anywhere.

I think choosing a contrasting color that is in-line and contrasting
enough with the accent-color chosen by the page when darkening is better
than just black or white.

If we want the black-or-white behavior we can just change
layout.css.accent-color.target-contrast-ratio to something large enough.

https://accent-color.glitch.me/ is a nice playground to see this patch
in action.

Differential Revision: https://phabricator.services.mozilla.com/D120723
2021-07-24 13:30:25 +00:00
..
docs
init Bug 1722031 - Tweak accent-color foreground computation and let it ride the trains. r=mstange 2021-07-24 13:30:25 +00:00
parser
test
Preferences.cpp Bug 1717991 - Remove ifdefs around code that adds profiler markers with custom marker schemas, r=gerald. 2021-06-25 13:28:01 +00:00
Preferences.h
SharedPrefMap.cpp
SharedPrefMap.h
StaticPrefsBase.h
components.conf
greprefs.js
moz.build
nsIPrefBranch.idl
nsIPrefLocalizedString.idl
nsIPrefService.idl
nsIRelativeFilePref.idl
nsRelativeFilePref.h