Skip to content

Commit 94e5f88

Browse files
committed
Fix private browsing color and make it toggleable
1 parent 4ddba86 commit 94e5f88

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ r3dfox-native-checkbox-desc = This controls whether the scrollbar, checkboxes, a
150150
r3dfox-theme =
151151
.label = Use r3dfox theme styles
152152
153-
r3dfox-theme-desc = Currently this just enables or disables the red caption bar tint in private mode.
153+
r3dfox-theme-desc = Currently this just enables or disables the red colors in private mode.
154154
155155
r3dfox-less-fog =
156156
.label = Less intense caption bar fog

browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
html.private {
99
--in-content-page-color: white;
1010
--in-content-text-color: white;
11-
--in-content-page-background: linear-gradient(to bottom, #480808 0%,#240103 93%,#200000 97%,#1E0000 100%);
11+
--in-content-page-background: #25003e;
12+
@media (-moz-bool-pref: "r3dfox.customizations.enabled") {
13+
--in-content-page-background: linear-gradient(to bottom, #480808 0%,#240103 93%,#200000 97%,#1E0000 100%);
14+
}
1215
--link-color: white;
1316
--link-color-hover: white;
1417
--link-color-active: white;

browser/themes/shared/tabs.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
ThemeVariableMap.sys.mjs when the user has a theme that defines
4747
ntp_background. */
4848
--tabpanel-background-color: #25003e !important;
49+
@media (-moz-bool-pref: "r3dfox.customizations.enabled") {
50+
--tabpanel-background-color: linear-gradient(to bottom, #480808 0%,#240103 93%,#200000 97%,#1E0000 100%) !important;
51+
}
4952

5053
/* stylelint-disable-next-line media-query-no-invalid */
5154
@media (-moz-bool-pref: "browser.privatebrowsing.felt-privacy-v1") {

0 commit comments

Comments
 (0)