mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Fix splash screen background color in dark mode
This commit is contained in:
@@ -128,6 +128,7 @@ dependencies {
|
||||
implementation("androidx.legacy:legacy-preference-v14:1.0.0")
|
||||
implementation("androidx.legacy:legacy-support-v4:1.0.0")
|
||||
implementation("com.google.android.material:material:1.10.0")
|
||||
implementation("androidx.core:core-splashscreen:1.0.1")
|
||||
implementation("com.opencsv:opencsv:5.9")
|
||||
implementation(project(":uhabits-core"))
|
||||
kapt("com.google.dagger:dagger-compiler:$daggerVersion")
|
||||
|
||||
23
uhabits-android/src/main/res/values-night/colors.xml
Normal file
23
uhabits-android/src/main/res/values-night/colors.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2016-2021 Álinson Santos Xavier <git@axavier.org>
|
||||
~
|
||||
~ This file is part of Loop Habit Tracker.
|
||||
~
|
||||
~ Loop Habit Tracker is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by the
|
||||
~ Free Software Foundation, either version 3 of the License, or (at your
|
||||
~ option) any later version.
|
||||
~
|
||||
~ Loop Habit Tracker is distributed in the hope that it will be useful, but
|
||||
~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
~ more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License along
|
||||
~ with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<color name="splash_screen_background">@color/grey_900</color>
|
||||
</resources>
|
||||
24
uhabits-android/src/main/res/values-v31/styles.xml
Normal file
24
uhabits-android/src/main/res/values-v31/styles.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--
|
||||
~ Copyright (C) 2016-2021 Álinson Santos Xavier <git@axavier.org>
|
||||
~
|
||||
~ This file is part of Loop Habit Tracker.
|
||||
~
|
||||
~ Loop Habit Tracker is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by the
|
||||
~ Free Software Foundation, either version 3 of the License, or (at your
|
||||
~ option) any later version.
|
||||
~
|
||||
~ Loop Habit Tracker is distributed in the hope that it will be useful, but
|
||||
~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
~ more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License along
|
||||
~ with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<style name="AppBaseTheme" parent="@style/AppTheme">
|
||||
<item name="android:windowSplashScreenBackground">@color/splash_screen_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -89,4 +89,5 @@
|
||||
</array>
|
||||
|
||||
<color name="ic_launcher_background">#1976D2</color>
|
||||
<color name="splash_screen_background">@color/grey_200</color>
|
||||
</resources>
|
||||
@@ -18,7 +18,7 @@
|
||||
-->
|
||||
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<style name="AppBaseTheme" parent="@style/Theme.MaterialComponents.Light.NoActionBar">
|
||||
<style name="AppTheme" parent="@style/Theme.MaterialComponents.Light.NoActionBar">
|
||||
<item name="aboutScreenColor">@color/blue_800</item>
|
||||
<item name="actionBarPopupTheme">@style/ThemeOverlay.AppCompat.Light</item>
|
||||
<item name="actionModeBackground">@color/grey_700</item>
|
||||
@@ -66,6 +66,10 @@
|
||||
<item name="dialogFormLabelColor">@color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="AppBaseTheme" parent="@style/AppTheme">
|
||||
<item name="windowSplashScreenBackground">@color/splash_screen_background</item>
|
||||
</style>
|
||||
|
||||
<style name="AppBaseThemeDark" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
|
||||
<item name="aboutScreenColor">@color/blue_300</item>
|
||||
<item name="actionModeBackground">@color/grey_800</item>
|
||||
|
||||
Reference in New Issue
Block a user