Simplify the BaseTheme and remove the night styles.xml. (#165)

This commit is contained in:
David Perez 2023-10-26 09:06:31 -05:00 committed by Álison Fernandes
parent 852176045b
commit 249c1010f5
4 changed files with 8 additions and 54 deletions

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">@color/dark_gray</color>
</resources>

View file

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="BaseTheme" parent="android:Theme.Material">
<item name="android:buttonStyle">@style/ButtonStyle</item>
<item name="android:colorAccent">@color/dark_primary</item>
<item name="android:colorActivatedHighlight">@android:color/transparent</item>
<item name="android:colorControlNormal">@color/dark_border</item>
<item name="android:colorPrimaryDark">@color/dark_notification_bar</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:popupTheme">@android:style/ThemeOverlay.Material</item>
<item name="android:textCursorDrawable">@null</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowActionModeOverlay">true</item>
<item name="android:windowBackground">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">default</item>
</style>
<style name="ButtonStyle" parent="android:Widget.Material.Button">
<item name="android:textAllCaps">false</item>
</style>
<!-- Launch theme (for auto dark/light based on system) -->
<style name="LaunchTheme" parent="Theme.SplashScreen">
<item name="postSplashScreenTheme">@style/BaseTheme</item>
<item name="windowSplashScreenAnimatedIcon">
@drawable/logo_rounded
</item>
<item name="windowSplashScreenBackground">
@color/dark_gray
</item>
</style>
</resources>

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#175DDC</color>
<color name="ic_launcher_background">@color/blue_175DDC</color>
</resources>

View file

@ -1,16 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<style name="BaseTheme" parent="android:Theme.Material.Light.DarkActionBar">
<item name="android:buttonStyle">@style/ButtonStyle</item>
<item name="android:colorAccent">@color/primary</item>
<item name="android:colorActivatedHighlight">@android:color/transparent</item>
<item name="android:colorControlNormal">@color/border</item>
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/notification_bar</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:popupTheme">@android:style/ThemeOverlay.Material.Light</item>
<item name="android:textCursorDrawable">@null</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowBackground">@null</item>
@ -19,18 +12,10 @@
<item name="android:windowLayoutInDisplayCutoutMode">default</item>
</style>
<style name="ButtonStyle" parent="android:Widget.Material.Button">
<item name="android:textAllCaps">false</item>
</style>
<!-- Launch theme (for auto dark/light based on system) -->
<style name="LaunchTheme" parent="Theme.SplashScreen">
<item name="postSplashScreenTheme">@style/BaseTheme</item>
<item name="windowSplashScreenAnimatedIcon">
@drawable/logo_rounded
</item>
<item name="windowSplashScreenBackground">
@color/ic_launcher_background
</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/logo_rounded</item>
<item name="windowSplashScreenBackground">@color/ic_launcher_background</item>
</style>
</resources>