gecko-dev/modules/libpref/init
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
..
static_prefs
StaticPrefList.yaml Bug 1722031 - Tweak accent-color foreground computation and let it ride the trains. r=mstange 2021-07-24 13:30:25 +00:00
StaticPrefListBegin.h
StaticPrefListEnd.h
__init__.py
all.js Bug 1720633 - Remove old "network.http.spdy.bug1563538" pref checks. r=necko-reviewers,kershaw 2021-07-16 05:33:15 +00:00
generate_static_pref_list.py Bug 1678416 - Emit input filename in files generated for static prefs to make it easier to track backwards to a pref via searchfox r=KrisWright 2020-12-11 19:04:48 +00:00