alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

commit cd1030a242a7b194921a17faf4df2ee6f6e892a8 (patch)
parent 0535949af7f6293f27fdf51139a0d7f065e3f71f
Author: Alex Karle <alex@alexkarle.com>
Date:   Wed, 19 Jan 2022 23:38:58 -0500

gopher: Add note on prefers-color-scheme in Firefox

Gets me every time when I visit openbsd.org or sr.ht on a new install
of Firefox. My eyes!!

Diffstat:
Agopher/notes/all/firefox-dark-theme.txt | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/gopher/notes/all/firefox-dark-theme.txt b/gopher/notes/all/firefox-dark-theme.txt @@ -0,0 +1,23 @@ +prefers-color-scheme 'dark' on Firefox +====================================== +Wed Jan 19 23:37:28 EST 2022 + +The prefers-color-scheme media query [1] has become the de-facto +way of auto selecting a darker theme on many sites. The only +problem is that it _seems_ that Firefox takes its hints from the +underlying desktop environment, and I usually run window managers +without this magical attribute set. + +I found this about:config variable a while back to trick firefox +into thinking I'm using a dark "system theme", which works great, +but I always forget it (it can't be versioned in my dotfiles!), so +here it is in my gopher notes: + +1. Go to about:config +2. Add a new property with the name: + + ui.systemUsesDarkTheme + +3. Set the value to "Number" and "1". No booleans allowed! + +[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme