Update theme picker option colors
Fixes: 132810518
Change-Id: I63e671619856b79daaadeb44e891f79f85f9b715
diff --git a/res/color/option_title_color.xml b/res/color/option_title_color.xml
index febfd0c..2809247 100644
--- a/res/color/option_title_color.xml
+++ b/res/color/option_title_color.xml
@@ -20,7 +20,8 @@
android:color="?android:colorAccent" />
<item
android:state_activated="false"
+ android:alpha="0.54"
android:color="?android:colorForeground" />
<item
android:color="?android:colorForeground"/>
-</selector>
\ No newline at end of file
+</selector>
diff --git a/res/drawable/option_border_custom.xml b/res/drawable/option_border_custom.xml
new file mode 100644
index 0000000..0fe8d12
--- /dev/null
+++ b/res/drawable/option_border_custom.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?><!--
+ Copyright (C) 2019 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="?android:attr/colorControlHighlight">
+ <item android:id="@android:id/mask">
+ <shape android:shape="rectangle">
+ <solid android:color="@android:color/white"/>
+ <corners android:radius="4dp" />
+ </shape>
+ </item>
+ <item android:drawable="@drawable/option_border_edge_custom" />
+</ripple>
diff --git a/res/drawable/option_border_edge_custom.xml b/res/drawable/option_border_edge_custom.xml
new file mode 100644
index 0000000..1fba26b
--- /dev/null
+++ b/res/drawable/option_border_edge_custom.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2019 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_activated="true">
+ <shape android:shape="rectangle">
+ <stroke
+ android:color="@color/option_border_color"
+ android:width="@dimen/option_selected_border_width" />
+ <corners android:radius="4dp" />
+ </shape>
+ </item>
+ <item android:state_activated="false">
+ <shape android:shape="rectangle">
+ <stroke
+ android:color="@color/black_24_alpha"
+ android:alpha="0.24"
+ android:width="@dimen/option_border_width" />
+ <corners android:radius="4dp" />
+ </shape>
+ </item>
+</selector>
diff --git a/res/layout/custom_theme_option.xml b/res/layout/custom_theme_option.xml
index 09bd58e..c91cbf1 100644
--- a/res/layout/custom_theme_option.xml
+++ b/res/layout/custom_theme_option.xml
@@ -33,7 +33,7 @@
android:layout_gravity="center_horizontal"
android:paddingHorizontal="@dimen/option_tile_padding_horizontal"
android:paddingVertical="@dimen/option_tile_padding_vertical"
- android:background="@drawable/option_border">
+ android:background="@drawable/option_border_custom">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"