diff --git a/chrome/global/colors.css b/chrome/global/colors.css index 58b142b..a9631c1 100644 --- a/chrome/global/colors.css +++ b/chrome/global/colors.css @@ -1,7 +1,8 @@ /* EdgeFr-Fox by bmFtZQ - colors.css */ /* default colours (light & dark) */ -:root:not(:-moz-lwtheme) { +:root:not(:-moz-lwtheme), +:root[privatebrowsingmode="temporary"][style*="--lwt-accent-color: rgb(28, 27, 34)"] { --lwt-accent-color: light-dark(#cecece, #1C1C1C) !important; --lwt-accent-color-inactive: light-dark(#e8e8e8, #2e2e2e) !important; --lwt-text-color: light-dark(#000, #E5E5E5) !important; @@ -67,6 +68,13 @@ --tab-icon-overlay-fill: light-dark(#252525, #fff) !important; } +/* ensure that dark mode is enabled completely in private browsing mode. */ +:root[privatebrowsingmode="temporary"], +:root[privatebrowsingmode="temporary"] #nav-bar, +:root[privatebrowsingmode="temporary"] #PersonalToolbar { + color-scheme: dark !important; +} + #urlbar { --urlbar-box-bgcolor: inherit !important; --urlbar-box-hover-bgcolor: inherit !important;