mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-12 10:20:04 +00:00
Detect and match system dark mode as default theme
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user