瀏覽代碼

fix(mobile): incorrect status bar color for the android platform

charlie 2 月之前
父節點
當前提交
53bfcbee76
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2 6
      src/main/frontend/util.cljc

+ 2 - 6
src/main/frontend/util.cljc

@@ -216,17 +216,13 @@
    (defn set-theme-light
    (defn set-theme-light
      []
      []
      (p/do!
      (p/do!
-      (.setStyle StatusBar (clj->js {:style (.-Light Style)}))
-      (when (mobile-util/native-android?)
-        (.setBackgroundColor StatusBar (clj->js {:color "#ffffff"}))))))
+      (.setStyle StatusBar (clj->js {:style (.-Light Style)})))))
 
 
 #?(:cljs
 #?(:cljs
    (defn set-theme-dark
    (defn set-theme-dark
      []
      []
      (p/do!
      (p/do!
-      (.setStyle StatusBar (clj->js {:style (.-Dark Style)}))
-      (when (mobile-util/native-android?)
-        (.setBackgroundColor StatusBar (clj->js {:color "#000000"}))))))
+      (.setStyle StatusBar (clj->js {:style (.-Dark Style)})))))
 
 
 (defn find-first
 (defn find-first
   [pred coll]
   [pred coll]