Skip to content

Commit ada3433

Browse files
committed
Force enable transparency option
1 parent bd6bded commit ada3433

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

browser/components/preferences/main.inc.xhtml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
preference="r3dfox.aero.fog"/>
5252
</hbox>
5353
<description class="indent tip-caption" data-l10n-id="r3dfox-fog-desc"/>
54+
55+
<hbox align="center">
56+
<checkbox id="r3dfoxtransparency"
57+
data-l10n-id="r3dfox-transparency"
58+
preference="r3dfox.force.transparency"/>
59+
</hbox>
60+
<description class="indent tip-caption" data-l10n-id="r3dfox-transparency-desc"/>
5461
</groupbox>
5562

5663
<html:template id="template-paneGeneral">

browser/components/preferences/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Preferences.addAll([
6464
{ id: "r3dfox.customizations.enabled", type: "bool" },
6565
{ id: "r3dfox.less.aero.fog", type: "bool" },
6666
{ id: "r3dfox.aero.fog", type: "bool" },
67+
{ id: "r3dfox.force.transparency", type: "bool" },
6768

6869
/* Tab preferences
6970
Preferences:

browser/locales/en-US/browser/preferences/preferences.ftl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ r3dfox-fog =
162162
163163
r3dfox-fog-desc = This enables or disables caption bar fog completely.
164164
165+
r3dfox-transparency =
166+
.label = Force enable caption bar transparency
167+
168+
r3dfox-transparency-desc = Force enables caption bar transparency, may have varying results.
169+
165170
## General Section - Startup
166171

167172
startup-header = Startup

browser/themes/windows/browser.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,3 +516,20 @@ menupopup[touchmode] :is(menu, menuitem, menucaption) {
516516
background-color: #CC190032 !important;
517517
}
518518
}
519+
520+
@media (-moz-bool-pref: "r3dfox.force.transparency") {
521+
:root {
522+
--lwt-additional-images: none !important;
523+
--lwt-header-image: none !important;
524+
}
525+
526+
#navigator-toolbox {
527+
background-color: transparent !important;
528+
@media (-moz-bool-pref: "r3dfox.less.aero.fog") {
529+
background-image: radial-gradient(ellipse at bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.5) 40%, transparent) !important;
530+
}
531+
@media not (-moz-bool-pref: "r3dfox.less.aero.fog") {
532+
background-image: radial-gradient(ellipse at bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.5) 80%, transparent) !important;
533+
}
534+
}
535+
}

modules/libpref/init/all.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ pref("r3dfox.customizations.enabled", true);
665665
// Aero fog configurations
666666
pref("r3dfox.less.aero.fog", true);
667667
pref("r3dfox.aero.fog", true);
668+
pref("r3dfox.force.transparency", false);
668669

669670
// Enable JS dump() function.
670671
// IMPORTANT: These prefs must be here even though they're also defined in

0 commit comments

Comments
 (0)