Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【提案】OS連動のダークモード設定 #2

Closed
sckemu opened this issue Jan 31, 2021 · 2 comments
Closed

【提案】OS連動のダークモード設定 #2

sckemu opened this issue Jan 31, 2021 · 2 comments

Comments

@sckemu
Copy link

sckemu commented Jan 31, 2021

いつも便利に使わせていただいております。
ダークモードのデフォルト設定をOSと連動させるのはどうでしょうか。

CSSのprefers-color-schemeが利用できそうです。

@tsukumijima
Copy link
Owner

提案ありがとうございます。
システムの設定をダークモードにしていない場合でもダークモードに切り替えられるように(私がまさにそのパターンです)他の設定と一緒に設定状態を Cookie に保存するようにしているのですが、初期値を prefer-color-scheme に合わせて変えるくらいならできるかもしれません。検討します。

@tsukumijima
Copy link
Owner

f235dc2 にて対応しました。ありがとうございました!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants