diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-06-18 14:00:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 18:00:52 +0000 |
commit | ebd911201df0e6fce95b408935fb35580851170e (patch) | |
tree | 1955088b5c5157a02b1d75d8994e20114199830c /ext/css/settings.css | |
parent | 129be78c9bf1b9d378050c6ca6ec722ef456c4ee (diff) |
Add full dark mode support (#1079)
* Add full dark mode support
* Fix welcome, permissions, and quick start scrollbars
* Fix action popup dark mode on mobile
* Add theme to info page
* Reduce flashbang
* Move position of settingsDisplayController to not break things
* Fix dictionary import drag drop theming
* Make dark shadow color less bad
* Prepare themeController to avoid not being able to set browser theme
Diffstat (limited to 'ext/css/settings.css')
-rw-r--r-- | ext/css/settings.css | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/ext/css/settings.css b/ext/css/settings.css index d23062b1..3c05906e 100644 --- a/ext/css/settings.css +++ b/ext/css/settings.css @@ -76,6 +76,15 @@ --modal-padding-vertical: 0.625em; --modal-padding-vertical-half: calc(var(--modal-padding-vertical) * 0.5); --modal-button-spacing: 0.625em; + + --scrollbar-thumb-color: #c1c1c1; + --scrollbar-track-color: #f1f1f1; + --scrollbar-inverse-thumb-color: #444444; + --scrollbar-inverse-track-color: #2f2f2f; + + --dictionary-import-border-color: #cccccc; + --dictionary-import-border-color-hover: #bfd1ff; + --dictionary-import-hover-background-color: rgba(28, 116, 233, 0.05); } :root:not([data-loaded=true]) { --animation-duration: 0s; @@ -83,6 +92,38 @@ :root[data-theme=dark] { --separator-color1: #333333; --separator-color2: #222222; + + --scrollbar-thumb-color: #444444; + --scrollbar-track-color: #2f2f2f; + --scrollbar-inverse-thumb-color: #c1c1c1; + --scrollbar-inverse-track-color: #f1f1f1; + + --dictionary-import-border-color: #333333; + --dictionary-import-border-color-hover: #1c74e9; + --dictionary-import-hover-background-color: rgba(191, 209, 255, 0.05); +} + +/* Scrollbars */ +:root:not([data-theme=light]) .scrollbar { + scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color); +} +:root:not([data-theme=light]) .scrollbar::-webkit-scrollbar { + width: auto; +} +:root:not([data-theme=light]) .scrollbar::-webkit-scrollbar-button { + height: 0; +} +:root:not([data-theme=light]) .scrollbar::-webkit-scrollbar-thumb { + background-color: var(--scrollbar-thumb-color); +} +:root:not([data-theme=light]) .scrollbar::-webkit-scrollbar-track { + background-color: var(--scrollbar-thumb-color); +} +:root:not([data-theme=light]) .scrollbar::-webkit-scrollbar-track-piece { + background-color: var(--scrollbar-track-color); +} +:root:not([data-theme=light]) .scrollbar::-webkit-scrollbar-corner { + background-color: var(--scrollbar-track-color); } @@ -2377,7 +2418,7 @@ input[type=number].dictionary-priority { #dictionary-drop-file-zone { transition: background-color var(--animation-duration) ease-in-out, border var(--animation-duration) ease-in-out; - border: 2px dashed rgb(204, 204, 204); + border: 2px dashed var(--dictionary-import-border-color); border-radius: 5px; flex: auto; min-height: 20em; @@ -2390,13 +2431,13 @@ input[type=number].dictionary-priority { } #dictionary-drop-file-zone:hover { - background-color: rgba(28, 116, 233, 0.05); + background-color: var(--dictionary-import-hover-background-color); border: 2px dashed var(--accent-color); } #dictionary-drop-file-zone.drag-over { border: 2px solid var(--accent-color); - background-color: rgb(191, 209, 255); + background-color: var(--dictionary-import-border-color-hover); } #dictionary-drag-drop-text { |