1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

New: Auto theme option to match OS theme

Co-authored-by: Qstick <qstick@gmail.com>
(cherry picked from commit 4ca5a213fa0fc29ed93e7e31b080728d6fa7f1f3)
This commit is contained in:
Zak Saunders
2022-12-06 07:22:52 +00:00
committed by Qstick
parent fa6acb7497
commit a5fb01f1e6
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -1,7 +1,11 @@
import * as dark from './dark';
import * as light from './light';
const defaultDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const auto = defaultDark ? { ...dark } : { ...light };
export default {
auto,
light,
dark
};