From 03111e34617f0c5247269af79f7c01420987a9ed Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 27 May 2024 14:28:26 -0500 Subject: [PATCH] qutebrowser theme polarity respects stylix config --- user/app/browser/qutebrowser.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user/app/browser/qutebrowser.nix b/user/app/browser/qutebrowser.nix index cf19f13..7722223 100644 --- a/user/app/browser/qutebrowser.nix +++ b/user/app/browser/qutebrowser.nix @@ -164,7 +164,9 @@ c.tabs.last_close = 'close' c.tabs.position = 'left' c.tabs.width = '3%' c.window.transparent = True -c.colors.webpage.darkmode.enabled = True +c.colors.webpage.darkmode.enabled = ''+(if (config.stylix.polarity == "dark") then "True" else "False")+'' + +c.colors.webpage.preferred_color_scheme = "''+config.stylix.polarity+''" c.colors.webpage.darkmode.policy.images = 'never' c.url.default_page = str(config.configdir)+'/qute-home.html' @@ -312,7 +314,6 @@ c.colors.tabs.selected.odd.fg = base05 c.colors.tabs.selected.odd.bg = base02 c.colors.tabs.selected.even.fg = base05 c.colors.tabs.selected.even.bg = base02 -c.colors.webpage.bg = base00 font = "''+userSettings.font+''"