From 814e6976753a403071301d4f914a33e6f33eb898 Mon Sep 17 00:00:00 2001 From: Lund1337 <59971256+Lund1337@users.noreply.github.com> Date: Sun, 6 Apr 2025 19:34:46 +0300 Subject: [PATCH] Added transparent browser background on linux --- src/browser/app/profile/zen-browser.js | 5 +++++ src/browser/base/content/zen-styles/zen-theme.css | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/browser/app/profile/zen-browser.js b/src/browser/app/profile/zen-browser.js index 52986ed37..d195f3f9c 100644 --- a/src/browser/app/profile/zen-browser.js +++ b/src/browser/app/profile/zen-browser.js @@ -380,6 +380,11 @@ pref('widget.macos.titlebar-blend-mode.behind-window', true); pref('zen.widget.macos.window-material', 3); #endif +// Enable transparent background for linux +#ifdef MOZ_WIDGET_GTK +pref('zen.widget.linux.transparency', true); +#endif + // Urlbar and autocomplete pref("browser.urlbar.maxRichResults", 6); pref("browser.urlbar.trimHttps", true); diff --git a/src/browser/base/content/zen-styles/zen-theme.css b/src/browser/base/content/zen-styles/zen-theme.css index 1f46023fd..2cd9f7c94 100644 --- a/src/browser/base/content/zen-styles/zen-theme.css +++ b/src/browser/base/content/zen-styles/zen-theme.css @@ -167,6 +167,11 @@ } } + @media (-moz-platform: linux) and -moz-pref('zen.widget.linux.transparency'){ + background: transparent; + --zen-themed-toolbar-bg-transparent: transparent; + } + --toolbar-field-background-color: var(--zen-colors-input-bg) !important; --arrowpanel-background: var(--zen-dialog-background) !important;