diff options
author | Tyler Gunn <tgunn@google.com> | 2015-02-05 15:46:49 -0800 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2015-02-05 15:46:49 -0800 |
commit | 9f18fc16708deb125c1c7b0ff4ae6f6b248b2166 (patch) | |
tree | e147bc295ad06e2124d4bd5ee1ad6edf0934bd5d /res/color | |
parent | 8c01471f7e173d2fea84b047087289943193b531 (diff) | |
download | android_packages_apps_Dialer-9f18fc16708deb125c1c7b0ff4ae6f6b248b2166.tar.gz android_packages_apps_Dialer-9f18fc16708deb125c1c7b0ff4ae6f6b248b2166.tar.bz2 android_packages_apps_Dialer-9f18fc16708deb125c1c7b0ff4ae6f6b248b2166.zip |
Adding disabled colors for settings.
This mimics what we've had to do in Telephony settings.
Bug: 19237764
Change-Id: I78c7d2b3901f29a12c606aa823cd9abfb0db106a
Diffstat (limited to 'res/color')
-rw-r--r-- | res/color/settings_text_color_primary.xml | 23 | ||||
-rw-r--r-- | res/color/settings_text_color_secondary.xml | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/res/color/settings_text_color_primary.xml b/res/color/settings_text_color_primary.xml new file mode 100644 index 000000000..862d8a2c3 --- /dev/null +++ b/res/color/settings_text_color_primary.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2015 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_enabled="false" android:color="@color/setting_disabled_color" /> + <item android:color="@color/setting_primary_color" /> +</selector> diff --git a/res/color/settings_text_color_secondary.xml b/res/color/settings_text_color_secondary.xml new file mode 100644 index 000000000..0b00e4688 --- /dev/null +++ b/res/color/settings_text_color_secondary.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright (C) 2015 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_enabled="false" android:color="@color/setting_disabled_color" /> + <item android:color="@color/setting_secondary_color" /> +</selector> |