From c23e857c912da6177ff78d80bcd28bfae627c342 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 14 May 2024 10:44:14 +0300 Subject: [PATCH] firefox: confusing user and default means I can use dark theme here --- conf/librewolf.overrides.cfg | 4 ++-- etc/firefox/policies/policies.json | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/conf/librewolf.overrides.cfg b/conf/librewolf.overrides.cfg index 7192fc25..4f991a7b 100644 --- a/conf/librewolf.overrides.cfg +++ b/conf/librewolf.overrides.cfg @@ -74,9 +74,9 @@ defaultPref("intl.accept_languages", "fi, en"); //pref("pdfjs.enableScripting", false); // Dark mode -pref("ui.systemUsesDarkTheme", 1); +//pref("ui.systemUsesDarkTheme", 1); pref("prefers-color-scheme", "dark"); -pref("pdfjs.viewerCssTheme", 2); +//pref("pdfjs.viewerCssTheme", 2); // Enable Firefox accounts pref("identity.fxaccounts.enabled", true); diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index 1756f8be..c0b2f381 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -331,6 +331,11 @@ "Type": "boolean", "Value": false }, + "pdfjs.viewerCssTheme": { + "Status": "default", + "Type": "number", + "Value": 2 + }, "privacy.userContext.enabled": { "Status": "locked", "Type": "boolean", @@ -360,6 +365,11 @@ "Status": "locked", "Type": "boolean", "Value": true + }, + "ui.systemUsesDarkTheme": { + "Status": "default", + "Type": "number", + "Value": 1 } }, "SearchEngines": {