summaryrefslogtreecommitdiff
path: root/res/color
diff options
context:
space:
mode:
authorSantiago Etchebehere <santie@google.com>2019-05-10 10:21:09 -0700
committerSantiago Etchebehere <santie@google.com>2019-05-13 13:32:12 -0700
commit7ff4c59f02d928f79d0b510ef661feea510b635c (patch)
treee7ac50e1e6a6fe8b53eaed4720e2f6ed6577da2c /res/color
parent21342b68619ae1efc6935fd6d063922e81aad658 (diff)
downloadThemePicker-7ff4c59f02d928f79d0b510ef661feea510b635c.tar.gz
Multiple custom themes 3/n
Add a name step to custom theme editor. Preview cover image is still not hooked, but the code has been refactored to allow reuse of cover card binding. Bug: 132257073 Change-Id: I0c3a7ccd1f73c89c45447994f98fe80b3723f040
Diffstat (limited to 'res/color')
-rw-r--r--res/color/edittext_background_color.xml21
-rw-r--r--res/color/edittext_text_color.xml20
2 files changed, 41 insertions, 0 deletions
diff --git a/res/color/edittext_background_color.xml b/res/color/edittext_background_color.xml
new file mode 100644
index 00000000..9191154f
--- /dev/null
+++ b/res/color/edittext_background_color.xml
@@ -0,0 +1,21 @@
+<?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:alpha="0.16" android:color="@color/edit_background_base" android:state_hovered="true"/>
+ <item android:alpha="0.04" android:color="@color/edit_background_base" android:state_enabled="false"/>
+ <item android:alpha="0.05" android:color="@color/edit_background_base"/>
+</selector> \ No newline at end of file
diff --git a/res/color/edittext_text_color.xml b/res/color/edittext_text_color.xml
new file mode 100644
index 00000000..174f6ca3
--- /dev/null
+++ b/res/color/edittext_text_color.xml
@@ -0,0 +1,20 @@
+<?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:color="?android:textColorPrimaryNoDisable" android:state_focused="true"/>
+ <item android:alpha="0.4" android:color="?android:textColorPrimaryNoDisable"/>
+</selector> \ No newline at end of file