Skip to content

Commit

Permalink
Fix preferences textColorSecondary
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO authored and david-allison committed Jul 21, 2022
1 parent 5e508cc commit a84305e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions AnkiDroid/src/main/res/color/prefs_item_dark_secondary.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="false" android:color="#5b5b5b"/>
<item android:color="@color/theme_dark_secondary_text"/>
</selector>
5 changes: 5 additions & 0 deletions AnkiDroid/src/main/res/color/prefs_item_light_secondary.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:state_enabled="false" android:color="#8f8f8f"/>
<item android:color="@color/theme_light_secondary_text"/>
</selector>
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/res/values/theme_black.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<item name="windowActionBar">true</item>
<item name="windowNoTitle">false</item>
<item name="android:textColor">@color/prefs_item_dark</item>
<item name="android:textColorSecondary">@color/prefs_item_dark</item>
<item name="android:textColorSecondary">@color/prefs_item_dark_secondary</item>
</style>

<!-- Filter Sheet Style -->
Expand Down
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/res/values/theme_dark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<item name="windowActionBar">true</item>
<item name="windowNoTitle">false</item>
<item name="android:textColor">@color/prefs_item_dark</item>
<item name="android:textColorSecondary">@color/prefs_item_dark</item>
<item name="android:textColorSecondary">@color/prefs_item_dark_secondary</item>
</style>

<!-- Filter Sheet Style -->
Expand Down
5 changes: 2 additions & 3 deletions AnkiDroid/src/main/res/values/theme_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ APIs. It's visible when there aren't enough decks to fill the screen.
<color name="theme_light_primary_light">@color/material_light_blue_100</color>
<color name="theme_light_accent">@color/material_blue_grey_700</color>
<color name="theme_light_primary_text">@color/black</color>
<color name="theme_light_secondary_text">#de000000</color> <!-- 87 percent black -->
<color name="theme_light_secondary_text">@color/material_grey_700</color>
<color name="theme_light_row_current">#ececec</color>
<color name="theme_light_drawer_row_current">#E8E8E8</color>
<color name="theme_light_drawer_item">#DE000000</color>
Expand Down Expand Up @@ -135,7 +135,6 @@ APIs. It's visible when there aren't enough decks to fill the screen.
<item name="customTabNavBarColor">@color/material_light_blue_500</item>
<item name="popupBackgroundColor">@android:color/white</item>
<item name="iconColor">?android:attr/textColor</item>

<item name="editTextDisabled">@color/material_grey_500</item>

<!-- Filter Bottom sheet -->
Expand All @@ -154,7 +153,7 @@ APIs. It's visible when there aren't enough decks to fill the screen.
<item name="windowActionBar">true</item>
<item name="windowNoTitle">false</item>
<item name="android:textColor">@color/prefs_item_light</item>
<item name="android:textColorSecondary">@color/prefs_item_light</item>
<item name="android:textColorSecondary">@color/prefs_item_light_secondary</item>
</style>

<!-- Filter Sheet Style -->
Expand Down
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/res/values/theme_plain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<item name="windowActionBar">true</item>
<item name="windowNoTitle">false</item>
<item name="android:textColor">@color/prefs_item_light</item>
<item name="android:textColorSecondary">@color/prefs_item_light</item>
<item name="android:textColorSecondary">@color/prefs_item_light_secondary</item>
</style>

<!-- Filter Sheet Style -->
Expand Down

0 comments on commit a84305e

Please sign in to comment.