Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNPUTmice/Conversations.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2021-01-26 10:34:42 +0300
committerDaniel Gultsch <daniel@gultsch.de>2021-01-26 10:34:45 +0300
commit8e57a7622cc6f640c8b112e1abd6e34bd4c8337d (patch)
treeb92970ac6389ab2fb4ca4e1e60525747c11d1dcc /src/main/res/values
parent8abf861303f1595d060cc053e687db0cda696996 (diff)
use DayNight theme for splas screen
it doesn’t seem to be possible to make the splash screen use the configured theme but we can follow the system’s theme on supported Android versions
Diffstat (limited to 'src/main/res/values')
-rw-r--r--src/main/res/values/colors.xml3
-rw-r--r--src/main/res/values/themes.xml4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/res/values/colors.xml b/src/main/res/values/colors.xml
index a61aa0e46..0bbba7c0a 100644
--- a/src/main/res/values/colors.xml
+++ b/src/main/res/values/colors.xml
@@ -40,5 +40,8 @@
<!-- scanner -->
<color name="scan_result_dots">#c04CAF50</color>
+ <color name="splash_screen_background">#fffafafa</color> <!-- gray50 -->
+ <color name="splash_screen_status_bar">#ffe0e0e0</color> <!-- gray300 -->
+
<color name="blue500">#ff2196f3</color>
</resources> \ No newline at end of file
diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml
index 78341bcfd..0ba1106fe 100644
--- a/src/main/res/values/themes.xml
+++ b/src/main/res/values/themes.xml
@@ -363,8 +363,8 @@
<item name="android:navigationBarColor" tools:targetApi="21">@color/black</item>
</style>
- <style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
- <item name="colorPrimaryDark">@color/grey300</item>
+ <style name="SplashTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
+ <item name="colorPrimaryDark">@color/splash_screen_status_bar</item>
<item name="android:windowBackground">@drawable/background</item>
</style>