mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Detect and match system dark mode as default theme
This commit is contained in:
parent
4152e54430
commit
cc3ec7ac65
@ -18,7 +18,7 @@ export default class App extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
dark: false,
|
||||
dark: window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches,
|
||||
openLearn: false,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user