commit 6f69d16b9a9771b92e784d99ce61c1b737191ac2
parent b8f6e944132bf4432803d12014c6e67302973fd8
Author: Divan Visagie <me@divanv.com>
Date: Sat, 28 Nov 2026 02:15:08 +0100
firefox: "Use Linux system theme" is off by default (ADR-0018)
What the user asked for: Firefox should not use the Linux system theme out of the box. The setting is the
checkbox "Use Linux system theme" under Add-ons, Themes, Default (they sent a screenshot of it).
How it was found, not guessed: the pref is browser.theme.native-theme. I opened that page in a fresh profile
with Firefox's remote control and read the checkbox: with the pref true (Firefox's default) it is checked, and
with the pref false as a default it is unchecked. So the setting is now a default in the policy file.
It is a default only (Preferences with "Status": "default"): the person can tick the box again, and an update
does not change what they chose. The Light/Dark/Device selector next to it (browser.theme.toolbar-theme, Device
by default) is left alone, so Firefox still follows the desktop's light or dark setting; what changes is where
its colours come from (its own, not GTK's).
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/docs/adr/0018-firefox-is-the-browser-and-themed-to-patina.md b/docs/adr/0018-firefox-is-the-browser-and-themed-to-patina.md
@@ -37,6 +37,11 @@ system-wide place for it.
a toolbar without the VPN button and the account button, as a default toolbar layout
(`browser.uiCustomization.state`, the layout the user ended on, with `ipprotection-button` already in
its "seen" list so Firefox does not add it back).
+- **"Use Linux system theme" is off by default** (`browser.theme.native-theme`, the pref behind that checkbox
+ under Add-ons, Themes, Default; found by opening the page in a fresh profile and reading the checkbox:
+ on with the pref true, off with it false). Firefox then draws its own colours instead of taking them from
+ GTK. Its Light, Dark or Device choice is left on Device, so it still follows the desktop's light or
+ dark setting; only where the colours come from changes.
- **Nothing here takes a choice away from the person, and an update never changes one.** Checked in
Firefox's own policy source, then by running it:
- the `Preferences` and `FirefoxHome` policies set defaults, which a user's own value sits on top of;
diff --git a/linux/system/usr/lib64/firefox/distribution/policies.json b/linux/system/usr/lib64/firefox/distribution/policies.json
@@ -24,6 +24,10 @@
"browser.uiCustomization.state": {
"Value": "{\"placements\":{\"widget-overflow-fixed-list\":[],\"unified-extensions-area\":[],\"nav-bar\":[\"sidebar-button\",\"back-button\",\"forward-button\",\"stop-reload-button\",\"customizableui-special-spring1\",\"vertical-spacer\",\"urlbar-container\",\"customizableui-special-spring2\",\"downloads-button\",\"reset-pbm-toolbar-button\",\"unified-extensions-button\",\"alltabs-button\",\"smartwindow-group-tabs-button\",\"ai-window-toggle\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[],\"vertical-tabs\":[\"tabbrowser-tabs\"],\"PersonalToolbar\":[\"personal-bookmarks\"]},\"seen\":[\"reset-pbm-toolbar-button\",\"smartwindow-group-tabs-button\",\"ai-window-toggle\",\"developer-button\",\"screenshot-button\",\"ipprotection-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"TabsToolbar\",\"vertical-tabs\",\"toolbar-menubar\",\"PersonalToolbar\"],\"currentVersion\":28,\"newElementCount\":6}",
"Status": "default"
+ },
+ "browser.theme.native-theme": {
+ "Value": false,
+ "Status": "default"
}
},
"SearchEngines": {