Make iOS "safe area" respect dark mode (#2053)

This commit is contained in:
Thomas Steiner 2020-08-20 13:20:13 +02:00 committed by GitHub
parent aac83325c5
commit 80cbe13167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -724,7 +724,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
}); });
} }
document.body.classList.toggle( document.documentElement.classList.toggle(
"Appearance_dark", "Appearance_dark",
this.state.appearance === "dark", this.state.appearance === "dark",
); );

View File

@ -37,6 +37,10 @@
--popup-text-inverted-color: #{$oc-white}; --popup-text-inverted-color: #{$oc-white};
} }
:root.Appearance_dark {
background-color: #000;
}
.Appearance_dark { .Appearance_dark {
--text-color-primary: #{$oc-gray-4}; --text-color-primary: #{$oc-gray-4};
--bg-color-island: #1e1e1e; --bg-color-island: #1e1e1e;