Skip to content

Commit

Permalink
don't write color value directly since old Android doesn't like it
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Oct 31, 2019
1 parent 9f7a876 commit 7871563
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/src/main/res/values-night/themes_overlay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<style name="ThemeOverlay.Teal" />

<style name="ThemeOverlay.Pink">
<item name="android:colorAccent">#FFE6F1</item>
<item name="android:colorAccent">@color/pink_accent_dark</item>
</style>

<style name="ThemeOverlay.Blue">
<item name="android:colorAccent">#D5F1FF</item>
<item name="android:colorAccent">@color/blue_accent_dark</item>
</style>

</resources>
14 changes: 14 additions & 0 deletions app/src/main/res/values-v27/themes_overlay.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="ThemeOverlay.Classic">
<item name="android:colorPrimary">@color/primary_color</item>
<item name="android:colorPrimaryDark">@color/primary_color</item>
<item name="android:windowBackground">@android:color/white</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:windowLightNavigationBar">false</item>
<item name="android:actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item>
<item name="android:popupTheme">@android:style/ThemeOverlay.Material.Light</item>
<item name="appBarStyle">@style/ThemeOverlay.AppBar.Colored</item>
</style>
</resources>
10 changes: 10 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
<color name="accent_color_light">#EFFBFC</color>-->

<color name="primary_color">@color/material_teal_600</color>

<color name="teal_background_light">#e0f2f2</color>

<color name="pink_background_light">#ffcde2</color>
<color name="pink_accent_light">#7c5065</color>
<color name="pink_accent_dark">#ffe6f1</color>

<color name="blue_background_light">#e1f5ff</color>
<color name="blue_accent_light">#007ebd</color>
<color name="blue_accent_dark">#d5f1ff</color>
</resources>
15 changes: 8 additions & 7 deletions app/src/main/res/values/themes_overlay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<style name="ThemeOverlay.Classic">
<item name="android:colorPrimary">@color/primary_color</item>
<item name="android:colorPrimaryDark">@color/primary_color</item>
<item name="android:colorBackground">@android:color/white</item>
<item name="android:windowBackground">@android:color/white</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:actionBarTheme">@android:style/ThemeOverlay.Material.Dark.ActionBar</item>
<item name="android:popupTheme">@android:style/ThemeOverlay.Material.Light</item>
Expand All @@ -20,24 +20,25 @@

<style name="ThemeOverlay.White">
<item name="android:colorPrimary">@android:color/white</item>
<item name="android:colorBackground">?android:colorPrimary</item>
<item name="android:colorAccent">@color/material_teal_500</item>
<item name="android:colorBackground">@android:color/white</item>
</style>

<style name="ThemeOverlay.Teal">
<item name="android:colorPrimary">#e0f2f2</item>
<item name="android:colorPrimary">@color/teal_background_light</item>
<item name="android:colorBackground">?android:colorPrimary</item>
</style>

<style name="ThemeOverlay.Pink">
<item name="android:colorPrimary">#ffcde2</item>
<item name="android:colorPrimary">@color/pink_background_light</item>
<item name="android:colorAccent">@color/pink_accent_light</item>
<item name="android:colorBackground">?android:colorPrimary</item>
<item name="android:colorAccent">#7C5065</item>
</style>

<style name="ThemeOverlay.Blue">
<item name="android:colorPrimary">#e1f5ff</item>
<item name="android:colorPrimary">@color/blue_background_light</item>
<item name="android:colorAccent">@color/blue_accent_light</item>
<item name="android:colorBackground">?android:colorPrimary</item>
<item name="android:colorAccent">#007EBD</item>

</style>
</resources>

0 comments on commit 7871563

Please sign in to comment.