Skip to content

Commit 30dadc7

Browse files
committed
add custom android system-level colors
1 parent c45fcb9 commit 30dadc7

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
4+
<item name="android:windowLightStatusBar">true</item>
5+
<item name="colorPrimary">@color/colorPrimary</item>
6+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
7+
<item name="colorAccent">@color/colorAccent</item>
8+
</style>
9+
</resources>

android/app/src/main/res/values/colors.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<!-- Change the color value for your needs -->
44
<color name="colorAccent">@color/purple</color>
55

6+
<!-- this is used (in our app) solely for the app switcher color -->
7+
<color name="colorPrimary">#FFC107</color>
8+
<!-- this is used when the app is starting to define the status bar color -->
9+
<color name="colorPrimaryDark">#C4C4C4</color>
10+
611
<color name="black">#242121</color>
712
<color name="darkGray">#53585A</color>
813
<color name="mediumGray">#E0DAD6</color>

android/app/src/main/res/values/styles.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<!-- Base application theme. -->
44
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
55
<!-- Customize your theme here. -->
6+
<item name="colorPrimary">@color/colorPrimary</item>
7+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
68
<item name="colorAccent">@color/colorAccent</item>
79
</style>
810

0 commit comments

Comments
 (0)