Skip to content

Commit

Permalink
Improve transparency support.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlex94 committed Sep 30, 2023
1 parent 074cc67 commit a5a275e
Show file tree
Hide file tree
Showing 5 changed files with 18 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
4 changes: 4 additions & 0 deletions waterfox/browser/locales/en-US/waterfox.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ enable-waterfox-theme-1 =
.label = Enable Waterfox theme customisations on Waterfox themes
enable-waterfox-theme-2 =
.label = Disable Waterfox theme customisations
enable-panel-transparency =
.label = Enable panel transparency
enable-menu-transparency =
.label = Enable menu transparency
disable-panel-animate =
.label = Disable app menu panel animation
disable-sidebar-animate =
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 a5a275e

Please sign in to comment.