Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Implement better accent colors
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Oct 18, 2021
1 parent b326212 commit 6251c77
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/cyb3rko/cavedroid/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class MainActivity : AppCompatActivity() {
if (mySPR.getString(THEME, R.style.Theme_Cavedroid_Standard.toString())!!.toInt() !=
R.style.Theme_Cavedroid_Standard) {
if (!Utils.isNightModeActive(resources)) {
theme.resolveAttribute(R.attr.colorSecondary, typedValue, true)
theme.resolveAttribute(R.attr.colorSecondaryVariant, typedValue, true)
binding.navView.setBackgroundColor(typedValue.data)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<color name="click_hint">#FFFFFF</color>
<color name="foreground_color">@android:color/primary_text_dark</color>

<color name="forest_accent">#343843</color>
<color name="forest_accent">#2A334A</color>
<color name="house_accent">#2E392A</color>
</resources>
16 changes: 8 additions & 8 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<item name="colorPrimaryVariant">@color/colorPrimaryVariant</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">#00A1D9</item>
<item name="colorSecondaryVariant">#00A1D9</item>
<item name="colorSecondary">#187CCA</item>
<item name="colorSecondaryVariant">#ADD9DF</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
Expand All @@ -34,8 +34,8 @@
<item name="colorPrimaryVariant">@color/colorPrimaryVariant</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">#00A1D9</item>
<item name="colorSecondaryVariant">#00A1D9</item>
<item name="colorSecondary">#187CCA</item>
<item name="colorSecondaryVariant">#ADD9DF</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
Expand All @@ -48,8 +48,8 @@
<item name="colorPrimaryVariant">#2F5023</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">#C2E7B4</item>
<item name="colorSecondaryVariant">#A3CF92</item>
<item name="colorSecondary">#73AF5D</item>
<item name="colorSecondaryVariant">#D0E8C7</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
Expand All @@ -62,8 +62,8 @@
<item name="colorPrimaryVariant">#2F5023</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">#C2E7B4</item>
<item name="colorSecondaryVariant">#A3CF92</item>
<item name="colorSecondary">#73AF5D</item>
<item name="colorSecondaryVariant">#D0E8C7</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
Expand Down

0 comments on commit 6251c77

Please sign in to comment.