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;