diff --git a/ext/src/ui/dark-widgets.css b/ext/src/ui/dark-widgets.css new file mode 100644 index 0000000..bfd88ea --- /dev/null +++ b/ext/src/ui/dark-widgets.css @@ -0,0 +1,86 @@ +button, +.select-wrapper, +input { + background-color: var(--grey-60); + border: 1px solid rgba(255, 255, 255, 0.25); + border-radius: 3px; + color: white; +} +button:not(:disabled):hover, +.select-wrapper:not(:disabled):hover, +input[type="checkbox"]:not(:disabled):hover { + background-color: var(--grey-50); +} +button:not(:disabled):hover:active, +.select-wrapper:not(:disabled):hover:active, +input[type="checkbox"]:not(:disabled):hover:active { + background-color: rgb(94, 94, 99); +} + +button:disabled, +input:disabled { + opacity: 0.35; +} + +input[type="text"], +input[type="number"] { + padding: 2px; +} + +input[type="checkbox"] { + -moz-appearance: none; +} +input[type="checkbox"]:checked { + background-color: var(--blue-60); + padding: 2px; + background-clip: content-box; +} +input[type="checkbox"]:not(:disabled):checked:hover { + background-color: var(--blue-50); +} +input[type="checkbox"]:not(:disabled):checked:hover:active { + background-color: var(--blue-70); +} + +button:default { + background-color: var(--blue-60); + color: white !important; +} + +button:default:hover { + background-color: var(--blue-50); +} +button:default:hover:active { + background-color: var(--blue-70); +} + +.select-wrapper { + --arrow-width: 20px; + position: relative; + display: inline-block; +} +.select-wrapper::after { + align-items: center; + content: "▼"; + display: flex; + height: 100%; + justify-content: center; + pointer-events: none; + position: absolute; + right: 0; + top: 0; + width: var(--arrow-width); +} +select { + -moz-appearance: none; + background: inherit; + border: initial; + color: inherit; + padding-right: var(--arrow-width); +} +option { + color: white !important; +} +option:disabled { + color: rgba(255, 255, 255, 0.25) !important; +} \ No newline at end of file diff --git a/ext/src/ui/options/index.html b/ext/src/ui/options/index.html index f3e68f2..a62a51c 100644 --- a/ext/src/ui/options/index.html +++ b/ext/src/ui/options/index.html @@ -4,6 +4,7 @@ + diff --git a/ext/src/ui/options/index.tsx b/ext/src/ui/options/index.tsx index 6d81c1d..cee686a 100644 --- a/ext/src/ui/options/index.tsx +++ b/ext/src/ui/options/index.tsx @@ -324,16 +324,18 @@ class OptionsApp extends Component<{}, OptionsAppState> { { _("optionsReceiverSelectorType") }
- +
+ +
} diff --git a/ext/src/ui/popup/index.html b/ext/src/ui/popup/index.html index f3e68f2..a62a51c 100755 --- a/ext/src/ui/popup/index.html +++ b/ext/src/ui/popup/index.html @@ -4,6 +4,7 @@ + diff --git a/ext/src/ui/popup/index.tsx b/ext/src/ui/popup/index.tsx index fafc803..6a972e1 100755 --- a/ext/src/ui/popup/index.tsx +++ b/ext/src/ui/popup/index.tsx @@ -139,36 +139,38 @@ class PopupApp extends Component<{}, PopupAppState> {
{ _("popupMediaSelectCastLabel") }
- +
+ +
{ _("popupMediaSelectToLabel") }
diff --git a/ext/src/ui/popup/styles/index.css b/ext/src/ui/popup/styles/index.css index 2aa8643..99ecdcc 100755 --- a/ext/src/ui/popup/styles/index.css +++ b/ext/src/ui/popup/styles/index.css @@ -7,7 +7,7 @@ body { @media (prefers-color-scheme: dark) { body { - background: var(--grey-70) !important; + background: var(--grey-80) !important; color: white !important; } .media-select { @@ -19,7 +19,9 @@ body { } .media-select { + align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.25); + display: flex; margin: 0 1em; padding: 0.75em 0; }