From 61c732a8e0a37abefc38c8d8708de5d2b26d12e3 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Tue, 2 Feb 2021 09:39:13 -0700 Subject: [PATCH] qutebrowser: enable darkmode --- profiles/graphical/qutebrowser/config.py | 4 ++++ profiles/graphical/qutebrowser/default.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/profiles/graphical/qutebrowser/config.py b/profiles/graphical/qutebrowser/config.py index d25ef7d..aa20f0e 100644 --- a/profiles/graphical/qutebrowser/config.py +++ b/profiles/graphical/qutebrowser/config.py @@ -240,6 +240,10 @@ c.url.start_pages = ['https://nixos.org/nixos/manual/options.html'] c.hints.chars = "asdfghjklvbcntyruewom" +c.colors.webpage.darkmode.enabled = True + +c.colors.webpage.prefers_color_scheme_dark = True + # Font color for hints. # Type: QssColor c.colors.hints.fg = '#EFF0EB' diff --git a/profiles/graphical/qutebrowser/default.nix b/profiles/graphical/qutebrowser/default.nix index b9f9204..f7aa0d4 100644 --- a/profiles/graphical/qutebrowser/default.nix +++ b/profiles/graphical/qutebrowser/default.nix @@ -24,7 +24,7 @@ in (final: prev: { # wrapper to specify config file qute = prev.writeShellScriptBin "qute" '' - QT_QPA_PLATFORMTHEME= exec ${final.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@" + QUTE_DARKMODE_VARIANT=qt_515_2 QT_QPA_PLATFORMTHEME= exec ${final.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@" ''; }) ];