]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
android: commit missing styles
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Dec 2021 12:15:38 +0000 (13:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Dec 2021 12:15:46 +0000 (13:15 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
android/app/src/main/res/values-night/styles.xml [new file with mode: 0644]
android/app/src/main/res/values/color.xml [new file with mode: 0644]

diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644 (file)
index 0000000..9815690
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+  <style name="Theme.App" parent="Theme.AppCompat.DayNight.NoActionBar">
+    <item name="android:statusBarColor">@android:color/transparent</item>
+    <item name="android:navigationBarColor">@android:color/transparent</item>
+    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
+    <item name="android:enforceNavigationBarContrast">false</item>
+  </style>
+
+  <style name="LaunchTheme" parent="Theme.SplashScreen">
+    <item name="windowSplashScreenBackground">@color/splashScreenBackground</item>
+    <item name="windowSplashScreenAnimatedIcon">@drawable/launch_background</item>
+    <item name="postSplashScreenTheme">@style/Theme.App</item>
+  </style>
+</resources>
diff --git a/android/app/src/main/res/values/color.xml b/android/app/src/main/res/values/color.xml
new file mode 100644 (file)
index 0000000..89df33a
--- /dev/null
@@ -0,0 +1,5 @@
+<resources>
+  <color name="splashScreenBackground">#000000</color>
+  <color name="white">#FFFFFF</color>
+  <color name="black">#000000</color>
+</resources>