Skip to content

Commit

Permalink
Improve transparency support.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlex94 committed Oct 10, 2024
1 parent 80857aa commit 762d0b2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@
</label>


<checkbox id="enablePanelTransparency" preference="userChrome.theme.transparent.panel"
data-l10n-id="enable-panel-transparency" />

<checkbox id="enableMenuTransparency" preference="userChrome.theme.transparent.menu"
data-l10n-id="enable-menu-transparency" />

<checkbox id="disablePanelAnimate" preference="userChrome.decoration.disable_panel_animate"
data-l10n-id="disable-panel-animate" />

Expand Down
2 changes: 2 additions & 0 deletions waterfox/browser/components/preferences/content/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ var gThemePane = {
{ id: "userChrome.hidden.bookmarkbar_label", type: "bool" },

// Panels
{ id: "userChrome.theme.transparent.panel", type: "bool" },
{ id: "userChrome.theme.transparent.menu", type: "bool" },
{ id: "userChrome.decoration.disable_panel_animate", type: "bool" },
{ id: "userChrome.hidden.disabled_menu", type: "bool" },
{ id: "userChrome.rounding.square_panel", type: "bool" },
Expand Down
5 changes: 5 additions & 0 deletions waterfox/browser/themes/lepton/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,11 @@
@supports -moz-bool-pref("userChrome.theme.transparent.panel") {
panel[type="arrow"] {
--panel-background: transparent !important;
background: var(--toolbar-bgcolor) !important;
opacity: 0.95;
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
}
panelview {
background: color-mix(in srgb, var(--arrowpanel-background) 90%, transparent) !important;
Expand Down
2 changes: 1 addition & 1 deletion waterfox/browser/themes/waterfox/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@
/* Prevent any horizontal scrolling on about:preferences */
#preferences-body .main-content {
overflow-x: hidden !important;
}
}

0 comments on commit 762d0b2

Please sign in to comment.