Theming: define colorAccent.

This commit is contained in:
Dennis Guse
2020-09-21 22:18:26 +02:00
parent 3a44da4a9d
commit ce38d5e891
5 changed files with 7 additions and 7 deletions
@@ -78,8 +78,7 @@ class ChooseActivityTypeImageAdapter extends BaseAdapter {
}
if (position == selected) {
//TODO Should use theme!
imageView.setBackgroundColor(ContextCompat.getColor(parent.getContext(), R.color.holo_orange_dark));
imageView.setBackgroundColor(ContextCompat.getColor(parent.getContext(), R.color.colorAccent));
} else {
imageView.setBackgroundColor(Color.TRANSPARENT);
}
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/holo_orange_dark_activated" android:state_activated="true" />
<item android:drawable="@color/colorAccentTransparent" android:state_activated="true" />
<item android:drawable="@android:color/transparent" />
</selector>
+2 -1
View File
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorAccent">@android:color/holo_orange_dark</color>
<color name="colorAccentTransparent">#55ff8800</color>
</resources>
+2 -2
View File
@@ -27,8 +27,8 @@ limitations under the License.
<color name="chart_speed_border">#FF0066FF</color> <!-- blue -->
<color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue -->
<color name="holo_orange_dark">#FFFF8800</color>
<color name="holo_orange_dark_activated">#55FF8800</color>
<color name="colorAccent">@android:color/holo_orange_dark</color>
<color name="colorAccentTransparent">#55FF8800</color>
<color name="recording_text">#FFBE161B</color> <!-- red -->
<color name="stats_separator">#99999999</color> <!-- light gray -->
+1 -1
View File
@@ -19,7 +19,7 @@ limitations under the License.
<!-- <item name="colorPrimary">TODO</item>-->
<!-- <item name="colorPrimaryDark">TODO</item>-->
<item name="colorAccent">@color/holo_orange_dark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:activatedBackgroundIndicator">@drawable/activated_background</item>
<item name="windowActionModeOverlay">true</item>