summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-03-02 17:28:17 -0800
committerAlan Viverette <alanv@google.com>2015-03-02 17:28:17 -0800
commitdfc92c4de5391553609f8131c9829cabd6e7b55d (patch)
tree5f73e35b3374477eaa9eeb487e39931c18ce37dd
parent7b91c55b3ff4857e904a11a0a67fcc86a32868b4 (diff)
downloadframeworks_base-dfc92c4de5391553609f8131c9829cabd6e7b55d.zip
frameworks_base-dfc92c4de5391553609f8131c9829cabd6e7b55d.tar.gz
frameworks_base-dfc92c4de5391553609f8131c9829cabd6e7b55d.tar.bz2
Update Material light theme colors, clean up material colors
Bug: 19424147 Change-Id: Ia13dbee34f2f73fe0075c53709dd16097c8f784c
-rw-r--r--core/res/res/color/hint_foreground_material_dark.xml20
-rw-r--r--core/res/res/color/hint_foreground_material_light.xml20
-rw-r--r--core/res/res/color/primary_text_disable_only_material_dark.xml4
-rw-r--r--core/res/res/color/primary_text_disable_only_material_light.xml4
-rw-r--r--core/res/res/color/ripple_material_dark.xml20
-rw-r--r--core/res/res/color/ripple_material_light.xml20
-rw-r--r--core/res/res/values/colors_material.xml32
-rw-r--r--core/res/res/values/themes_material.xml16
8 files changed, 100 insertions, 36 deletions
diff --git a/core/res/res/color/hint_foreground_material_dark.xml b/core/res/res/color/hint_foreground_material_dark.xml
new file mode 100644
index 0000000..77883d9
--- /dev/null
+++ b/core/res/res/color/hint_foreground_material_dark.xml
@@ -0,0 +1,20 @@
+<?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:alpha="@dimen/hint_alpha_material_dark"
+ android:color="@color/foreground_material_dark" />
+</selector>
diff --git a/core/res/res/color/hint_foreground_material_light.xml b/core/res/res/color/hint_foreground_material_light.xml
new file mode 100644
index 0000000..99168fd
--- /dev/null
+++ b/core/res/res/color/hint_foreground_material_light.xml
@@ -0,0 +1,20 @@
+<?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:alpha="@dimen/hint_alpha_material_light"
+ android:color="@color/foreground_material_light" />
+</selector>
diff --git a/core/res/res/color/primary_text_disable_only_material_dark.xml b/core/res/res/color/primary_text_disable_only_material_dark.xml
index a6296c9..8bfefa7 100644
--- a/core/res/res/color/primary_text_disable_only_material_dark.xml
+++ b/core/res/res/color/primary_text_disable_only_material_dark.xml
@@ -17,6 +17,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:alpha="@dimen/disabled_alpha_material_dark"
- android:color="@color/bright_foreground_material_dark"/>
- <item android:color="@color/bright_foreground_material_dark"/>
+ android:color="@color/foreground_material_dark"/>
+ <item android:color="@color/foreground_material_dark"/>
</selector>
diff --git a/core/res/res/color/primary_text_disable_only_material_light.xml b/core/res/res/color/primary_text_disable_only_material_light.xml
index b781844..0cc09fc 100644
--- a/core/res/res/color/primary_text_disable_only_material_light.xml
+++ b/core/res/res/color/primary_text_disable_only_material_light.xml
@@ -17,6 +17,6 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false"
android:alpha="@dimen/disabled_alpha_material_light"
- android:color="@color/bright_foreground_material_light"/>
- <item android:color="@color/bright_foreground_material_light"/>
+ android:color="@color/foreground_material_light"/>
+ <item android:color="@color/foreground_material_light"/>
</selector>
diff --git a/core/res/res/color/ripple_material_dark.xml b/core/res/res/color/ripple_material_dark.xml
new file mode 100644
index 0000000..940e5da
--- /dev/null
+++ b/core/res/res/color/ripple_material_dark.xml
@@ -0,0 +1,20 @@
+<?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:alpha="@dimen/highlight_alpha_material_dark"
+ android:color="@color/foreground_material_dark" />
+</selector>
diff --git a/core/res/res/color/ripple_material_light.xml b/core/res/res/color/ripple_material_light.xml
new file mode 100644
index 0000000..406a133
--- /dev/null
+++ b/core/res/res/color/ripple_material_light.xml
@@ -0,0 +1,20 @@
+<?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:alpha="@dimen/highlight_alpha_material_light"
+ android:color="@color/foreground_material_light" />
+</selector>
diff --git a/core/res/res/values/colors_material.xml b/core/res/res/values/colors_material.xml
index 93f58cba..da68c92 100644
--- a/core/res/res/values/colors_material.xml
+++ b/core/res/res/values/colors_material.xml
@@ -17,21 +17,16 @@
<!-- Colors specific to Material themes. -->
<resources>
<color name="background_material_dark">#ff303030</color>
- <color name="background_material_light">#ffeeeeee</color>
+ <color name="background_material_light">#fffafafa</color>
<color name="background_floating_material_dark">#ff424242</color>
- <color name="background_floating_material_light">#ffeeeeee</color>
+ <color name="background_floating_material_light">#ffffffff</color>
<color name="primary_material_dark">#ff212121</color>
- <color name="primary_material_light">#ffefefef</color>
+ <color name="primary_material_light">#fff5f5f5</color>
<color name="primary_dark_material_dark">#ff000000</color>
<color name="primary_dark_material_light">#ff757575</color>
<color name="primary_dark_material_light_light_status_bar">#ffe0e0e0</color>
- <!-- 26% white (foreground) -->
- <color name="ripple_material_dark">#42ffffff</color>
- <!-- 12% black (foreground) -->
- <color name="ripple_material_light">#1f000000</color>
-
<color name="accent_material_light">@color/material_deep_teal_500</color>
<color name="accent_material_dark">@color/material_deep_teal_200</color>
@@ -43,22 +38,8 @@
<color name="switch_thumb_disabled_material_dark">#ff616161</color>
<color name="switch_thumb_disabled_material_light">#ffbdbdbd</color>
- <color name="bright_foreground_material_dark">@color/white</color>
- <color name="bright_foreground_material_light">@color/black</color>
- <!-- 50% white (foreground) -->
- <color name="bright_foreground_disabled_material_dark">#80ffffff</color>
- <!-- 50% black (foreground) -->
- <color name="bright_foreground_disabled_material_light">#80000000</color>
- <color name="bright_foreground_inverse_material_dark">@color/bright_foreground_material_light</color>
- <color name="bright_foreground_inverse_material_light">@color/bright_foreground_material_dark</color>
-
- <color name="dim_foreground_material_dark">#ffbebebe</color>
- <color name="dim_foreground_material_light">#ff323232</color>
- <color name="dim_foreground_disabled_material_dark">#80bebebe</color>
- <color name="dim_foreground_disabled_material_light">#80323232</color>
-
- <color name="hint_foreground_material_dark">@color/bright_foreground_disabled_material_dark</color>
- <color name="hint_foreground_material_light">@color/bright_foreground_disabled_material_light</color>
+ <color name="foreground_material_dark">@color/white</color>
+ <color name="foreground_material_light">@color/black</color>
<color name="link_text_material_dark">@color/material_deep_teal_200</color>
<color name="link_text_material_light">@color/material_deep_teal_500</color>
@@ -72,6 +53,9 @@
<color name="primary_text_default_material_dark">#ffffffff</color>
<color name="secondary_text_default_material_dark">#b3ffffff</color>
+ <item name="hint_alpha_material_dark" format="float" type="dimen">0.50</item>
+ <item name="hint_alpha_material_light" format="float" type="dimen">0.54</item>
+
<item name="disabled_alpha_material_light" format="float" type="dimen">0.26</item>
<item name="disabled_alpha_material_dark" format="float" type="dimen">0.30</item>
diff --git a/core/res/res/values/themes_material.xml b/core/res/res/values/themes_material.xml
index d496e18..a610d07 100644
--- a/core/res/res/values/themes_material.xml
+++ b/core/res/res/values/themes_material.xml
@@ -42,8 +42,8 @@ please see themes_device_defaults.xml.
with trailing _dark or _light specifiers if they are not shared between both light and
dark versions of the theme. -->
<style name="Theme.Material">
- <item name="colorForeground">@color/bright_foreground_material_dark</item>
- <item name="colorForegroundInverse">@color/bright_foreground_material_light</item>
+ <item name="colorForeground">@color/foreground_material_dark</item>
+ <item name="colorForegroundInverse">@color/foreground_material_light</item>
<item name="colorBackground">@color/background_material_dark</item>
<item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_dark</item>
<item name="disabledAlpha">@dimen/disabled_alpha_material_dark</item>
@@ -395,8 +395,8 @@ please see themes_device_defaults.xml.
<!-- Material theme (light version). -->
<style name="Theme.Material.Light" parent="Theme.Light">
- <item name="colorForeground">@color/bright_foreground_material_light</item>
- <item name="colorForegroundInverse">@color/bright_foreground_material_dark</item>
+ <item name="colorForeground">@color/foreground_material_light</item>
+ <item name="colorForegroundInverse">@color/foreground_material_dark</item>
<item name="colorBackground">@color/background_material_light</item>
<item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_light</item>
<item name="disabledAlpha">@dimen/disabled_alpha_material_light</item>
@@ -767,8 +767,8 @@ please see themes_device_defaults.xml.
<!-- Theme overlay that replaces colors with their light versions but preserves
the value of colorAccent, colorPrimary and its variants. -->
<style name="ThemeOverlay.Material.Light">
- <item name="colorForeground">@color/bright_foreground_material_light</item>
- <item name="colorForegroundInverse">@color/bright_foreground_material_dark</item>
+ <item name="colorForeground">@color/foreground_material_light</item>
+ <item name="colorForegroundInverse">@color/foreground_material_dark</item>
<item name="colorBackground">@color/background_material_light</item>
<item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_light</item>
@@ -803,8 +803,8 @@ please see themes_device_defaults.xml.
<!-- Theme overlay that replaces colors with their dark versions but preserves
the value of colorAccent, colorPrimary and its variants. -->
<style name="ThemeOverlay.Material.Dark">
- <item name="colorForeground">@color/bright_foreground_material_dark</item>
- <item name="colorForegroundInverse">@color/bright_foreground_material_light</item>
+ <item name="colorForeground">@color/foreground_material_dark</item>
+ <item name="colorForegroundInverse">@color/foreground_material_light</item>
<item name="colorBackground">@color/background_material_dark</item>
<item name="colorBackgroundCacheHint">@color/background_cache_hint_selector_material_dark</item>