qutebrowser: use only darkreader for darktheme

This commit is contained in:
Leonardo Eugênio 2023-02-19 19:41:48 -03:00
parent 6dec3c91e9
commit 50f1d57543

View file

@ -162,10 +162,10 @@ in
bg = color.bg; bg = color.bg;
preferred_color_scheme = "dark"; preferred_color_scheme = "dark";
darkmode = { darkmode = {
enabled = true; enabled = false;
threshold = { threshold = {
background = 256 / 2; text = 150;
text = 256 / 2; background = 205;
}; };
}; };
}; };
@ -173,7 +173,7 @@ in
}; };
home.file = { home.file = {
# For some stupid reason qutebrowser crashes if this dir does not exist # For some stupid reason qutebrowser crashes if this dir does not exist
".config/qutebrowser/greasemonkey/darkreader.js".text = lib.optionalString (color.type == "dark" && false) '' ".config/qutebrowser/greasemonkey/darkreader.js".text = lib.optionalString (color.type == "dark" && true) ''
// ==UserScript== // ==UserScript==
// @name Dark Reader (Unofficial) // @name Dark Reader (Unofficial)
// @icon https://darkreader.org/images/darkreader-icon-256x256.png // @icon https://darkreader.org/images/darkreader-icon-256x256.png