Browse Source

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

vanilla_orig
Thomas Steiner 5 years ago
parent
commit
80cbe13167
No account linked to committer's email address
2 changed files with 5 additions and 1 deletions
  1. 1
    1
      src/components/App.tsx
  2. 4
    0
      src/css/theme.scss

+ 1
- 1
src/components/App.tsx View File

724
       });
724
       });
725
     }
725
     }
726
 
726
 
727
-    document.body.classList.toggle(
727
+    document.documentElement.classList.toggle(
728
       "Appearance_dark",
728
       "Appearance_dark",
729
       this.state.appearance === "dark",
729
       this.state.appearance === "dark",
730
     );
730
     );

+ 4
- 0
src/css/theme.scss View File

37
   --popup-text-inverted-color: #{$oc-white};
37
   --popup-text-inverted-color: #{$oc-white};
38
 }
38
 }
39
 
39
 
40
+:root.Appearance_dark {
41
+  background-color: #000;
42
+}
43
+
40
 .Appearance_dark {
44
 .Appearance_dark {
41
   --text-color-primary: #{$oc-gray-4};
45
   --text-color-primary: #{$oc-gray-4};
42
   --bg-color-island: #1e1e1e;
46
   --bg-color-island: #1e1e1e;

Loading…
Cancel
Save