Skip to content

Commit

Permalink
Fix: Darkmode at Stable to Dev at dev branch #250
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Oct 31, 2021
1 parent 763fc02 commit cc43716
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
--win-accent-hover-color: color-mix(in srgb, rgba(255, 255, 255, 0.8) 27%, -moz-accent-color);
--win-accent-active-color: -moz-accent-color;
}
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
:root:not(:-moz-lwtheme),
:root[lwt-default-theme-in-dark-mode] {
--win-text-color: #ffffff;
Expand Down Expand Up @@ -433,7 +433,7 @@
--sidebar-text-color: var(--win-text-color) !important;
--sidebar-border-color: var(--win-sidebar-border-color) !important;
}
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
.sidebar-panel[style="--newtab-background-color: rgba(43, 42, 51, 1); --newtab-text-primary-color: rgba(251, 251, 254, 1); --lwt-sidebar-background-color: rgb(56, 56, 61); --lwt-sidebar-text-color: rgba(249, 249, 250, 1);"],
body[lwt-sidebar][style="--newtab-background-color: rgba(43, 42, 51, 1); --newtab-text-primary-color: rgba(251, 251, 254, 1); --lwt-sidebar-background-color: rgb(56, 56, 61); --lwt-sidebar-text-color: rgba(249, 249, 250, 1);"],
.sidebar-panel[style="--newtab-background-color: rgb(43, 42, 51); --newtab-text-primary-color: rgba(251, 251, 254, 1); --lwt-sidebar-background-color: rgb(56, 56, 61); --lwt-sidebar-text-color: rgba(249, 249, 250, 1);"], /* Nightly */
Expand All @@ -457,7 +457,7 @@
:root[lwtheme-mozlightdark]:not([lwthemetextcolor="bright"]):not(:-moz-lwtheme) {
--lwt-accent-color: var(--win-bgcolor) !important;
}
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
:root[lwt-default-theme-in-dark-mode][lwthemetextcolor="bright"] {
--toolbar-bgcolor: var(--win-component-bgcolor) !important; /* Original: rgba(43, 42, 51, 1) */
}
Expand Down Expand Up @@ -663,7 +663,7 @@

--panelview-toolbarbutton-focus-box-shadow: inset 0 0 0 2px var(--focus-outline-color) !important;
}
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
:root:not(:-moz-lwtheme),
:root[lwt-default-theme-in-dark-mode] {
--mac-field-bgcolor: Field;
Expand Down Expand Up @@ -707,7 +707,7 @@
--sidebar-text-color: var(--mac-text-color) !important;
/* --sidebar-border-color: var(--win-sidebar-border-color) !important; */
}
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
.sidebar-panel[style="--newtab-background-color: rgba(43, 42, 51, 1); --newtab-text-primary-color: rgba(251, 251, 254, 1); --lwt-sidebar-background-color: rgb(56, 56, 61); --lwt-sidebar-text-color: rgba(249, 249, 250, 1);"],
body[lwt-sidebar][style="--newtab-background-color: rgba(43, 42, 51, 1); --newtab-text-primary-color: rgba(251, 251, 254, 1); --lwt-sidebar-background-color: rgb(56, 56, 61); --lwt-sidebar-text-color: rgba(249, 249, 250, 1);"],
.sidebar-panel[style="--newtab-background-color: rgb(43, 42, 51); --newtab-text-primary-color: rgba(251, 251, 254, 1); --lwt-sidebar-background-color: rgb(56, 56, 61); --lwt-sidebar-text-color: rgba(249, 249, 250, 1);"], /* Nightly */
Expand All @@ -725,7 +725,7 @@

/*- Others ---------------------------------------------------------------*/
/* For Overwrite */
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
:root[lwt-default-theme-in-dark-mode][lwthemetextcolor="bright"] {
--toolbar-bgcolor: color-mix(in srgb, rgb(255, 255, 255) 15%, -moz-dialog) !important;
}
Expand Down
2 changes: 1 addition & 1 deletion userContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@
--view-source-green: var(--green-80);
--view-source-purple: #800080; /* Like alphenglow */
}
@media (prefers-color-scheme: dark) {
@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
:root {
--view-source-green: var(--green-60);
--view-source-purple: #c68aff;
Expand Down

0 comments on commit cc43716

Please sign in to comment.