mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +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) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
dark: false,
|
dark: window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches,
|
||||||
openLearn: false,
|
openLearn: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user