summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-04-07 10:57:44 -0700
committerAlan Viverette <alanv@google.com>2014-04-07 10:57:44 -0700
commitbae7b97f825ad52c6f91e9e1224fa6828f15c849 (patch)
tree098e1f86a6f306c4f14a8f502f18a526c5f94b42
parent012785d8cbaadb4041707af350e122ad29d22151 (diff)
downloadframeworks_base-bae7b97f825ad52c6f91e9e1224fa6828f15c849.zip
frameworks_base-bae7b97f825ad52c6f91e9e1224fa6828f15c849.tar.gz
frameworks_base-bae7b97f825ad52c6f91e9e1224fa6828f15c849.tar.bz2
Quantum ActionBar, cleaning up theme colors
BUG: 13731184 Change-Id: Icca14b094dc1b7f4156306d14a7950b857bbe9c9
-rw-r--r--core/res/res/drawable-hdpi/ab_bottom_solid_qntm_alpha.9.pngbin135 -> 0 bytes
-rw-r--r--core/res/res/drawable-hdpi/ab_bottom_transparent_qntm_alpha.9.pngbin138 -> 0 bytes
-rw-r--r--core/res/res/drawable-hdpi/ab_solid_qntm_alpha.9.pngbin133 -> 0 bytes
-rw-r--r--core/res/res/drawable-hdpi/ab_stacked_solid_qntm_alpha.9.pngbin141 -> 0 bytes
-rw-r--r--core/res/res/drawable-hdpi/ab_stacked_transparent_qntm_alpha.9.pngbin140 -> 0 bytes
-rw-r--r--core/res/res/drawable-hdpi/ab_transparent_qntm_alpha.9.pngbin124 -> 0 bytes
-rw-r--r--core/res/res/drawable-mdpi/ab_bottom_solid_qntm_alpha.9.pngbin117 -> 0 bytes
-rw-r--r--core/res/res/drawable-mdpi/ab_bottom_transparent_qntm_alpha.9.pngbin120 -> 0 bytes
-rw-r--r--core/res/res/drawable-mdpi/ab_solid_qntm_alpha.9.pngbin117 -> 0 bytes
-rw-r--r--core/res/res/drawable-mdpi/ab_stacked_solid_qntm_alpha.9.pngbin122 -> 0 bytes
-rw-r--r--core/res/res/drawable-mdpi/ab_stacked_transparent_qntm_alpha.9.pngbin121 -> 0 bytes
-rw-r--r--core/res/res/drawable-mdpi/ab_transparent_qntm_alpha.9.pngbin111 -> 0 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ab_bottom_solid_qntm_alpha.9.pngbin150 -> 0 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ab_bottom_transparent_qntm_alpha.9.pngbin145 -> 0 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ab_solid_qntm_alpha.9.pngbin149 -> 0 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ab_stacked_solid_qntm_alpha.9.pngbin155 -> 0 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ab_stacked_transparent_qntm_alpha.9.pngbin150 -> 0 bytes
-rw-r--r--core/res/res/drawable-xhdpi/ab_transparent_qntm_alpha.9.pngbin142 -> 0 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ab_bottom_solid_qntm_alpha.9.pngbin233 -> 0 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ab_bottom_transparent_qntm_alpha.9.pngbin220 -> 0 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ab_solid_qntm_alpha.9.pngbin275 -> 0 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ab_stacked_solid_qntm_alpha.9.pngbin218 -> 0 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ab_stacked_transparent_qntm_alpha.9.pngbin218 -> 0 bytes
-rw-r--r--core/res/res/drawable-xxhdpi/ab_transparent_qntm_alpha.9.pngbin205 -> 0 bytes
-rw-r--r--core/res/res/drawable/ab_bottom_solid_quantum.xml20
-rw-r--r--core/res/res/drawable/ab_bottom_transparent_quantum.xml21
-rw-r--r--core/res/res/drawable/ab_solid_quantum.xml20
-rw-r--r--core/res/res/drawable/ab_stacked_solid_quantum.xml20
-rw-r--r--core/res/res/drawable/ab_stacked_transparent_quantum.xml20
-rw-r--r--core/res/res/drawable/ab_transparent_quantum.xml19
-rw-r--r--core/res/res/values/attrs.xml6
-rw-r--r--core/res/res/values/colors_quantum.xml48
-rw-r--r--core/res/res/values/styles_quantum.xml79
-rw-r--r--core/res/res/values/themes_quantum.xml42
34 files changed, 66 insertions, 229 deletions
diff --git a/core/res/res/drawable-hdpi/ab_bottom_solid_qntm_alpha.9.png b/core/res/res/drawable-hdpi/ab_bottom_solid_qntm_alpha.9.png
deleted file mode 100644
index 406bf58..0000000
--- a/core/res/res/drawable-hdpi/ab_bottom_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-hdpi/ab_bottom_transparent_qntm_alpha.9.png b/core/res/res/drawable-hdpi/ab_bottom_transparent_qntm_alpha.9.png
deleted file mode 100644
index 409d3cd..0000000
--- a/core/res/res/drawable-hdpi/ab_bottom_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-hdpi/ab_solid_qntm_alpha.9.png b/core/res/res/drawable-hdpi/ab_solid_qntm_alpha.9.png
deleted file mode 100644
index 9d7b25f..0000000
--- a/core/res/res/drawable-hdpi/ab_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-hdpi/ab_stacked_solid_qntm_alpha.9.png b/core/res/res/drawable-hdpi/ab_stacked_solid_qntm_alpha.9.png
deleted file mode 100644
index 1222711..0000000
--- a/core/res/res/drawable-hdpi/ab_stacked_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-hdpi/ab_stacked_transparent_qntm_alpha.9.png b/core/res/res/drawable-hdpi/ab_stacked_transparent_qntm_alpha.9.png
deleted file mode 100644
index d0fcc25..0000000
--- a/core/res/res/drawable-hdpi/ab_stacked_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-hdpi/ab_transparent_qntm_alpha.9.png b/core/res/res/drawable-hdpi/ab_transparent_qntm_alpha.9.png
deleted file mode 100644
index 5fa4ec4..0000000
--- a/core/res/res/drawable-hdpi/ab_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ab_bottom_solid_qntm_alpha.9.png b/core/res/res/drawable-mdpi/ab_bottom_solid_qntm_alpha.9.png
deleted file mode 100644
index 219d311..0000000
--- a/core/res/res/drawable-mdpi/ab_bottom_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ab_bottom_transparent_qntm_alpha.9.png b/core/res/res/drawable-mdpi/ab_bottom_transparent_qntm_alpha.9.png
deleted file mode 100644
index bfdc933..0000000
--- a/core/res/res/drawable-mdpi/ab_bottom_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ab_solid_qntm_alpha.9.png b/core/res/res/drawable-mdpi/ab_solid_qntm_alpha.9.png
deleted file mode 100644
index bd818b5..0000000
--- a/core/res/res/drawable-mdpi/ab_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ab_stacked_solid_qntm_alpha.9.png b/core/res/res/drawable-mdpi/ab_stacked_solid_qntm_alpha.9.png
deleted file mode 100644
index 41c7ce6..0000000
--- a/core/res/res/drawable-mdpi/ab_stacked_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ab_stacked_transparent_qntm_alpha.9.png b/core/res/res/drawable-mdpi/ab_stacked_transparent_qntm_alpha.9.png
deleted file mode 100644
index 961a73e..0000000
--- a/core/res/res/drawable-mdpi/ab_stacked_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-mdpi/ab_transparent_qntm_alpha.9.png b/core/res/res/drawable-mdpi/ab_transparent_qntm_alpha.9.png
deleted file mode 100644
index 2e42386..0000000
--- a/core/res/res/drawable-mdpi/ab_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ab_bottom_solid_qntm_alpha.9.png b/core/res/res/drawable-xhdpi/ab_bottom_solid_qntm_alpha.9.png
deleted file mode 100644
index 312f76c..0000000
--- a/core/res/res/drawable-xhdpi/ab_bottom_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ab_bottom_transparent_qntm_alpha.9.png b/core/res/res/drawable-xhdpi/ab_bottom_transparent_qntm_alpha.9.png
deleted file mode 100644
index 49e0a49..0000000
--- a/core/res/res/drawable-xhdpi/ab_bottom_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ab_solid_qntm_alpha.9.png b/core/res/res/drawable-xhdpi/ab_solid_qntm_alpha.9.png
deleted file mode 100644
index fb0d0b6..0000000
--- a/core/res/res/drawable-xhdpi/ab_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ab_stacked_solid_qntm_alpha.9.png b/core/res/res/drawable-xhdpi/ab_stacked_solid_qntm_alpha.9.png
deleted file mode 100644
index 6d87890..0000000
--- a/core/res/res/drawable-xhdpi/ab_stacked_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ab_stacked_transparent_qntm_alpha.9.png b/core/res/res/drawable-xhdpi/ab_stacked_transparent_qntm_alpha.9.png
deleted file mode 100644
index 58f3e0f..0000000
--- a/core/res/res/drawable-xhdpi/ab_stacked_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xhdpi/ab_transparent_qntm_alpha.9.png b/core/res/res/drawable-xhdpi/ab_transparent_qntm_alpha.9.png
deleted file mode 100644
index c37ba9e..0000000
--- a/core/res/res/drawable-xhdpi/ab_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ab_bottom_solid_qntm_alpha.9.png b/core/res/res/drawable-xxhdpi/ab_bottom_solid_qntm_alpha.9.png
deleted file mode 100644
index 65b8d4a..0000000
--- a/core/res/res/drawable-xxhdpi/ab_bottom_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ab_bottom_transparent_qntm_alpha.9.png b/core/res/res/drawable-xxhdpi/ab_bottom_transparent_qntm_alpha.9.png
deleted file mode 100644
index a397baa..0000000
--- a/core/res/res/drawable-xxhdpi/ab_bottom_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ab_solid_qntm_alpha.9.png b/core/res/res/drawable-xxhdpi/ab_solid_qntm_alpha.9.png
deleted file mode 100644
index b56fa4a..0000000
--- a/core/res/res/drawable-xxhdpi/ab_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ab_stacked_solid_qntm_alpha.9.png b/core/res/res/drawable-xxhdpi/ab_stacked_solid_qntm_alpha.9.png
deleted file mode 100644
index 71b9737..0000000
--- a/core/res/res/drawable-xxhdpi/ab_stacked_solid_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ab_stacked_transparent_qntm_alpha.9.png b/core/res/res/drawable-xxhdpi/ab_stacked_transparent_qntm_alpha.9.png
deleted file mode 100644
index e2cc715..0000000
--- a/core/res/res/drawable-xxhdpi/ab_stacked_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable-xxhdpi/ab_transparent_qntm_alpha.9.png b/core/res/res/drawable-xxhdpi/ab_transparent_qntm_alpha.9.png
deleted file mode 100644
index 605d1de..0000000
--- a/core/res/res/drawable-xxhdpi/ab_transparent_qntm_alpha.9.png
+++ /dev/null
Binary files differ
diff --git a/core/res/res/drawable/ab_bottom_solid_quantum.xml b/core/res/res/drawable/ab_bottom_solid_quantum.xml
deleted file mode 100644
index 848737e..0000000
--- a/core/res/res/drawable/ab_bottom_solid_quantum.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ab_bottom_solid_qntm_alpha"
- android:tint="?attr/colorBackground"
- android:tintMode="multiply" />
diff --git a/core/res/res/drawable/ab_bottom_transparent_quantum.xml b/core/res/res/drawable/ab_bottom_transparent_quantum.xml
deleted file mode 100644
index 29df6b9..0000000
--- a/core/res/res/drawable/ab_bottom_transparent_quantum.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2014 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.
--->
-
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ab_bottom_transparent_qntm_alpha"
- android:tint="?attr/colorBackground"
- android:tintMode="multiply" />
diff --git a/core/res/res/drawable/ab_solid_quantum.xml b/core/res/res/drawable/ab_solid_quantum.xml
deleted file mode 100644
index e56bb40..0000000
--- a/core/res/res/drawable/ab_solid_quantum.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ab_solid_qntm_alpha"
- android:tint="?attr/colorBackground"
- android:tintMode="multiply" />
diff --git a/core/res/res/drawable/ab_stacked_solid_quantum.xml b/core/res/res/drawable/ab_stacked_solid_quantum.xml
deleted file mode 100644
index df775af..0000000
--- a/core/res/res/drawable/ab_stacked_solid_quantum.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ab_stacked_solid_qntm_alpha"
- android:tint="?attr/colorBackground"
- android:tintMode="multiply" />
diff --git a/core/res/res/drawable/ab_stacked_transparent_quantum.xml b/core/res/res/drawable/ab_stacked_transparent_quantum.xml
deleted file mode 100644
index bdae6b9..0000000
--- a/core/res/res/drawable/ab_stacked_transparent_quantum.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ab_stacked_transparent_qntm_alpha"
- android:tint="?attr/colorBackground"
- android:tintMode="multiply" />
diff --git a/core/res/res/drawable/ab_transparent_quantum.xml b/core/res/res/drawable/ab_transparent_quantum.xml
deleted file mode 100644
index 495bfb6..0000000
--- a/core/res/res/drawable/ab_transparent_quantum.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/ab_transparent_qntm_alpha"
- android:tint="?attr/colorControlNormal" />
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml
index 362182e..19eee5f 100644
--- a/core/res/res/values/attrs.xml
+++ b/core/res/res/values/attrs.xml
@@ -913,8 +913,14 @@
<!-- ============= -->
<!-- Color palette -->
<!-- ============= -->
+ <attr name="colorPrimaryDark" format="color" />
+ <attr name="colorPrimary" format="color" />
+ <attr name="colorPrimaryLight" format="color" />
+ <attr name="colorAccent" format="color" />
+
<attr name="colorControlNormal" format="color" />
<attr name="colorControlActivated" format="color" />
+
<attr name="colorButtonNormal" format="color" />
<attr name="colorButtonPressed" format="color" />
<attr name="colorButtonNormalColored" format="color" />
diff --git a/core/res/res/values/colors_quantum.xml b/core/res/res/values/colors_quantum.xml
index d10f7c0..ebe4a49 100644
--- a/core/res/res/values/colors_quantum.xml
+++ b/core/res/res/values/colors_quantum.xml
@@ -16,16 +16,14 @@
<resources>
<color name="background_quantum_dark">@color/black</color>
- <color name="background_quantum_light">@color/quantum_grey_50</color>
- <color name="secondary_background_quantum_dark">@color/quantum_grey_700</color>
- <color name="secondary_background_quantum_light">@color/quantum_grey_100</color>
+ <color name="background_quantum_light">@color/white</color>
<color name="bright_foreground_quantum_dark">@color/background_quantum_light</color>
<color name="bright_foreground_quantum_light">@color/background_quantum_dark</color>
<!-- TODO: This is 50% alpha black -->
<color name="bright_foreground_disabled_quantum_dark">#80000000</color>
- <!-- TODO: This is 50% alpha grey_50 -->
- <color name="bright_foreground_disabled_quantum_light">#80fafafa</color>
+ <!-- TODO: This is 50% alpha white -->
+ <color name="bright_foreground_disabled_quantum_light">#80ffffff</color>
<color name="bright_foreground_inverse_quantum_dark">@color/bright_foreground_quantum_light</color>
<color name="bright_foreground_inverse_quantum_light">@color/bright_foreground_quantum_dark</color>
@@ -34,41 +32,13 @@
<color name="dim_foreground_disabled_quantum_dark">#80bebebe</color>
<color name="dim_foreground_disabled_quantum_light">#80323232</color>
- <!-- TODO: These should be theme attributes. -->
- <color name="control_normal_foreground_quantum_light">@color/secondary_text_quantum_light</color>
- <color name="control_activated_foreground_quantum_light">@color/quantum_teal_700</color>
-
- <!-- TODO: These should be theme attributes. -->
- <color name="control_normal_foreground_quantum_dark">@color/secondary_text_quantum_dark</color>
- <color name="control_activated_foreground_quantum_dark">@color/quantum_lime_A200</color>
-
- <!-- TODO: These should be theme attributes. -->
- <color name="btn_default_normal_quantum_light">@color/quantum_grey_300</color>
- <color name="btn_default_pressed_quantum_light">@color/quantum_grey_500</color>
-
- <!-- TODO: These should be theme attributes. -->
- <color name="btn_default_normal_quantum_dark">@color/quantum_grey_700</color>
- <color name="btn_default_pressed_quantum_dark">@color/quantum_grey_500</color>
-
<color name="hint_foreground_quantum_dark">@color/bright_foreground_disabled_quantum_dark</color>
<color name="hint_foreground_quantum_light">@color/bright_foreground_disabled_quantum_light</color>
- <!-- TODO: This is 40% alpha lime_A200 -->
- <color name="highlighted_text_quantum_dark">#66eeff41</color>
- <!-- TODO: This is 40% alpha teal_700 -->
+ <!-- TODO: This is 40% alpha teal_A200 -->
+ <color name="highlighted_text_quantum_dark">#660097a7</color>
+ <!-- TODO: This is 40% alpha teal_A200 -->
<color name="highlighted_text_quantum_light">#660097a7</color>
- <!-- TODO: These should all be pushed into a TimePicker widget style. -->
- <color name="timepicker_default_background_quantum_dark">@color/background_quantum_dark</color>
- <color name="timepicker_default_background_quantum_light">@color/background_quantum_light</color>
- <color name="timepicker_default_text_color_quantum_dark">@color/bright_foreground_quantum_dark</color>
- <color name="timepicker_default_text_color_quantum_light">@color/bright_foreground_quantum_light</color>
- <color name="timepicker_default_disabled_color_quantum_dark">@color/bright_foreground_disabled_quantum_dark</color>
- <color name="timepicker_default_disabled_color_quantum_light">@color/bright_foreground_disabled_quantum_light</color>
- <color name="timepicker_default_ampm_selected_background_color_quantum_dark">@color/control_activated_foreground_quantum_dark</color>
- <color name="timepicker_default_ampm_selected_background_color_quantum_light">@color/control_activated_foreground_quantum_light</color>
- <color name="timepicker_default_ampm_unselected_background_color_quantum_dark">@color/transparent</color>
- <color name="timepicker_default_ampm_unselected_background_color_quantum_light">@color/white</color>
-
<!-- Primary & accent colors -->
<color name="quantum_red_100">#fff4c7c3</color>
@@ -155,10 +125,4 @@
<color name="primary_text_quantum_dark">#deffffff</color>
<color name="secondary_text_quantum_dark">#8affffff</color>
<color name="tertiary_text_quantum_dark">#4dffffff</color>
-
- <!-- "Theme" colors to be replaced by attrs when available -->
- <color name="theme_color_100">@color/quantum_teal_100</color>
- <color name="theme_color_300">@color/quantum_teal_300</color>
- <color name="theme_color_500">@color/quantum_teal_500</color>
- <color name="theme_color_700">@color/quantum_teal_700</color>
</resources>
diff --git a/core/res/res/values/styles_quantum.xml b/core/res/res/values/styles_quantum.xml
index 85d8761..dd148c4 100644
--- a/core/res/res/values/styles_quantum.xml
+++ b/core/res/res/values/styles_quantum.xml
@@ -340,13 +340,13 @@ please see styles_device_defaults.xml.
<style name="TextAppearance.Quantum.TimePicker.TimeLabel" parent="TextAppearance.Quantum">
<item name="textSize">@dimen/timepicker_time_label_size</item>
- <item name="textColor">@color/timepicker_default_text_color_quantum_dark</item>
+ <item name="textColor">?attr/textColorSecondary</item>
</style>
<style name="TextAppearance.Quantum.TimePicker.AmPmLabel" parent="TextAppearance.Quantum">
<item name="textSize">@dimen/timepicker_ampm_label_size</item>
<item name="textAllCaps">true</item>
- <item name="textColor">@color/timepicker_default_text_color_quantum_dark</item>
+ <item name="textColor">?attr/textColorSecondary</item>
<item name="textStyle">bold</item>
</style>
@@ -377,11 +377,11 @@ please see styles_device_defaults.xml.
<style name="TextAppearance.Quantum.Light.CalendarViewWeekDayView" parent="TextAppearance.Quantum.CalendarViewWeekDayView"/>
<style name="TextAppearance.Quantum.Light.TimePicker.TimeLabel" parent="TextAppearance.Quantum.TimePicker.TimeLabel">
- <item name="textColor">@color/timepicker_default_text_color_quantum_light</item>
+ <item name="textColor">?attr/textColorSecondary</item>
</style>
<style name="TextAppearance.Quantum.Light.TimePicker.AmPmLabel" parent="TextAppearance.Quantum.TimePicker.AmPmLabel">
- <item name="textColor">@color/timepicker_default_text_color_quantum_light</item>
+ <item name="textColor">?attr/textColorSecondary</item>
</style>
<!-- Widget Styles -->
@@ -545,16 +545,16 @@ please see styles_device_defaults.xml.
<style name="Widget.Quantum.TimePicker" parent="Widget.TimePicker">
<item name="legacyLayout">@layout/time_picker_legacy_holo</item>
<item name="internalLayout">@layout/time_picker_holo</item>
- <item name="disabledColor">@color/timepicker_default_disabled_color_quantum_dark</item>
- <item name="headerSelectedTextColor">@color/holo_blue_light</item>
- <item name="headerUnselectedTextColor">@color/timepicker_default_text_color_quantum_dark</item>
- <item name="headerBackgroundColor">@color/timepicker_default_background_quantum_dark</item>
- <item name="numbersTextColor">@color/timepicker_default_text_color_quantum_dark</item>
- <item name="numbersBackgroundColor">@color/timepicker_default_background_quantum_dark</item>
- <item name="amPmTextColor">@color/timepicker_default_text_color_quantum_dark</item>
- <item name="amPmUnselectedBackgroundColor">@color/timepicker_default_background_quantum_dark</item>
- <item name="amPmSelectedBackgroundColor">@color/holo_blue_light</item>
- <item name="numbersSelectorColor">@color/holo_blue_light</item>
+ <item name="disabledColor">@color/bright_foreground_disabled_quantum_dark</item>
+ <item name="headerSelectedTextColor">?attr/colorControlActivated</item>
+ <item name="headerUnselectedTextColor">?attr/textColorPrimary</item>
+ <item name="headerBackgroundColor">?attr/colorBackground</item>
+ <item name="numbersTextColor">?attr/textColorSecondary</item>
+ <item name="numbersBackgroundColor">?attr/colorControlNormal</item>
+ <item name="amPmTextColor">?attr/textColorSecondary</item>
+ <item name="amPmUnselectedBackgroundColor">?attr/colorControlNormal</item>
+ <item name="amPmSelectedBackgroundColor">?attr/colorControlActivated</item>
+ <item name="numbersSelectorColor">?attr/colorControlActivated</item>
</style>
<style name="Widget.Quantum.DatePicker" parent="Widget.DatePicker">
@@ -758,9 +758,9 @@ please see styles_device_defaults.xml.
<style name="Widget.Quantum.ActionBar" parent="Widget.ActionBar">
<item name="titleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Title</item>
<item name="subtitleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Subtitle</item>
- <item name="background">@drawable/ab_transparent_quantum</item>
- <item name="backgroundStacked">@drawable/ab_stacked_transparent_quantum</item>
- <item name="backgroundSplit">@drawable/ab_bottom_transparent_quantum</item>
+ <item name="background">@null</item>
+ <item name="backgroundStacked">@null</item>
+ <item name="backgroundSplit">@null</item>
<item name="divider">?attr/dividerVertical</item>
<item name="progressBarStyle">@style/Widget.Quantum.ProgressBar.Horizontal</item>
<item name="indeterminateProgressStyle">@style/Widget.Quantum.ProgressBar</item>
@@ -769,16 +769,9 @@ please see styles_device_defaults.xml.
</style>
<style name="Widget.Quantum.ActionBar.Solid">
- <item name="titleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Title</item>
- <item name="subtitleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Subtitle</item>
- <item name="background">@drawable/ab_solid_quantum</item>
- <item name="backgroundStacked">@drawable/ab_stacked_solid_quantum</item>
- <item name="backgroundSplit">@drawable/ab_bottom_solid_quantum</item>
- <item name="divider">?attr/dividerVertical</item>
- <item name="progressBarStyle">@style/Widget.Quantum.ProgressBar.Horizontal</item>
- <item name="indeterminateProgressStyle">@style/Widget.Quantum.ProgressBar</item>
- <item name="progressBarPadding">32dip</item>
- <item name="itemPadding">8dip</item>
+ <item name="background">?attr/colorPrimary</item>
+ <item name="backgroundStacked">?attr/colorPrimary</item>
+ <item name="backgroundSplit">?attr/colorPrimary</item>
</style>
<style name="Widget.Quantum.ActionMode" parent="Widget.ActionMode">
@@ -869,19 +862,10 @@ please see styles_device_defaults.xml.
<style name="Widget.Quantum.Light.NumberPicker" parent="Widget.Quantum.NumberPicker"/>
- <style name="Widget.Quantum.Light.TimePicker" parent="Widget.TimePicker">
+ <style name="Widget.Quantum.Light.TimePicker" parent="Widget.Quantum.TimePicker">
<item name="legacyLayout">@layout/time_picker_legacy_holo</item>
<item name="internalLayout">@layout/time_picker_holo</item>
- <item name="disabledColor">@color/timepicker_default_disabled_color_quantum_light</item>
- <item name="headerSelectedTextColor">@color/holo_blue_light</item>
- <item name="headerUnselectedTextColor">@color/timepicker_default_text_color_quantum_light</item>
- <item name="headerBackgroundColor">@color/timepicker_default_background_quantum_light</item>
- <item name="numbersTextColor">@color/timepicker_default_text_color_quantum_light</item>
- <item name="numbersBackgroundColor">@color/timepicker_default_background_quantum_light</item>
- <item name="amPmTextColor">@color/timepicker_default_text_color_quantum_light</item>
- <item name="amPmUnselectedBackgroundColor">@color/timepicker_default_background_quantum_light</item>
- <item name="amPmSelectedBackgroundColor">@color/holo_blue_light</item>
- <item name="numbersSelectorColor">@color/holo_blue_light</item>
+ <item name="disabledColor">@color/bright_foreground_disabled_quantum_light</item>
</style>
<style name="Widget.Quantum.Light.DatePicker" parent="Widget.Quantum.DatePicker"/>
@@ -985,25 +969,18 @@ please see styles_device_defaults.xml.
<style name="Widget.Quantum.Light.ActionBar" parent="Widget.Quantum.ActionBar">
<item name="titleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Title</item>
<item name="subtitleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Subtitle</item>
- <item name="background">@drawable/ab_transparent_quantum</item>
- <item name="backgroundStacked">@drawable/ab_stacked_transparent_quantum</item>
- <item name="backgroundSplit">@drawable/ab_bottom_transparent_quantum</item>
+ <item name="background">@null</item>
+ <item name="backgroundStacked">@null</item>
+ <item name="backgroundSplit">@null</item>
<item name="homeAsUpIndicator">@drawable/ic_ab_back_quantum</item>
<item name="progressBarStyle">@style/Widget.Quantum.Light.ProgressBar.Horizontal</item>
<item name="indeterminateProgressStyle">@style/Widget.Quantum.Light.ProgressBar</item>
</style>
<style name="Widget.Quantum.Light.ActionBar.Solid">
- <item name="titleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Title</item>
- <item name="subtitleTextStyle">@style/TextAppearance.Quantum.Widget.ActionBar.Subtitle</item>
- <item name="background">@drawable/ab_solid_quantum</item>
- <item name="backgroundStacked">@drawable/ab_stacked_solid_quantum</item>
- <item name="backgroundSplit">@drawable/ab_bottom_solid_quantum</item>
- <item name="divider">?attr/dividerVertical</item>
- <item name="progressBarStyle">@style/Widget.Quantum.Light.ProgressBar.Horizontal</item>
- <item name="indeterminateProgressStyle">@style/Widget.Quantum.Light.ProgressBar</item>
- <item name="progressBarPadding">32dip</item>
- <item name="itemPadding">8dip</item>
+ <item name="background">?attr/colorPrimary</item>
+ <item name="backgroundStacked">?attr/colorPrimary</item>
+ <item name="backgroundSplit">?attr/colorPrimary</item>
</style>
<style name="Widget.Quantum.Light.CompoundButton.Switch" parent="Widget.Quantum.CompoundButton.Switch">
diff --git a/core/res/res/values/themes_quantum.xml b/core/res/res/values/themes_quantum.xml
index 50f1ca6..2ac6a07 100644
--- a/core/res/res/values/themes_quantum.xml
+++ b/core/res/res/values/themes_quantum.xml
@@ -288,8 +288,8 @@ please see themes_device_defaults.xml.
<item name="actionDropDownStyle">@style/Widget.Quantum.Spinner.DropDown.ActionBar</item>
<item name="actionButtonStyle">@style/Widget.Quantum.ActionButton</item>
<item name="actionOverflowButtonStyle">@style/Widget.Quantum.ActionButton.Overflow</item>
- <item name="actionModeBackground">@color/theme_color_700</item>
- <item name="actionModeSplitBackground">@color/theme_color_700</item>
+ <item name="actionModeBackground">?attr/colorPrimaryDark</item>
+ <item name="actionModeSplitBackground">?attr/colorPrimaryDark</item>
<item name="actionModeCloseDrawable">@drawable/ic_cab_done_quantum</item>
<item name="actionBarTabStyle">@style/Widget.Quantum.ActionBar.TabView</item>
<item name="actionBarTabBarStyle">@style/Widget.Quantum.ActionBar.TabBar</item>
@@ -334,7 +334,7 @@ please see themes_device_defaults.xml.
<item name="timePickerStyle">@style/Widget.Quantum.TimePicker</item>
<!-- TimePicker background color -->
- <item name="timePickerHeaderBackgroundColor">@color/timepicker_default_background_quantum_dark</item>
+ <item name="timePickerHeaderBackgroundColor">?colorBackground</item>
<!-- TimePicker Header time label text appearance -->
<item name="timePickerHeaderTimeLabelTextAppearance">@style/TextAppearance.Quantum.TimePicker.TimeLabel</item>
@@ -356,13 +356,18 @@ please see themes_device_defaults.xml.
<item name="fastScrollOverlayPosition">atThumb</item>
<!-- Color palette -->
- <item name="colorControlNormal">@color/control_normal_foreground_quantum_dark</item>
- <item name="colorControlActivated">@color/control_activated_foreground_quantum_dark</item>
- <item name="colorButtonNormal">@color/btn_default_normal_quantum_dark</item>
- <item name="colorButtonPressed">@color/btn_default_pressed_quantum_dark</item>
+ <item name="colorPrimaryDark">@color/quantum_grey_700</item>
+ <item name="colorPrimary">@color/quantum_grey_500</item>
+ <item name="colorPrimaryLight">@color/quantum_grey_100</item>
+ <item name="colorAccent">@color/quantum_teal_A200</item>
+
+ <item name="colorControlNormal">?attr/textColorSecondary</item>
+ <item name="colorControlActivated">?attr/colorPrimaryDark</item>
+ <item name="colorButtonNormal">@color/quantum_grey_700</item>
+ <item name="colorButtonPressed">@color/quantum_grey_500</item>
<!-- TODO: Remove these attrs and move into button style. -->
- <item name="colorButtonNormalColored">@color/theme_color_500</item>
- <item name="colorButtonPressedColored">@color/theme_color_300</item>
+ <item name="colorButtonNormalColored">?attr/colorPrimary</item>
+ <item name="colorButtonPressedColored">?attr/colorPrimaryDark</item>
</style>
<!-- Quantum Paper theme (light version). -->
@@ -660,7 +665,7 @@ please see themes_device_defaults.xml.
<item name="timePickerStyle">@style/Widget.Quantum.Light.TimePicker</item>
<!-- TimePicker Header background color -->
- <item name="timePickerHeaderBackgroundColor">@color/timepicker_default_background_quantum_light</item>
+ <item name="timePickerHeaderBackgroundColor">?attr/colorBackground</item>
<!-- TimePicker Header time label text appearance -->
<item name="timePickerHeaderTimeLabelTextAppearance">@style/TextAppearance.Quantum.Light.TimePicker.TimeLabel</item>
@@ -681,13 +686,18 @@ please see themes_device_defaults.xml.
<item name="fastScrollOverlayPosition">atThumb</item>
<!-- Color palette -->
- <item name="colorControlNormal">@color/control_normal_foreground_quantum_light</item>
- <item name="colorControlActivated">@color/control_activated_foreground_quantum_light</item>
- <item name="colorButtonNormal">@color/btn_default_normal_quantum_light</item>
- <item name="colorButtonPressed">@color/btn_default_pressed_quantum_light</item>
+ <item name="colorPrimaryDark">@color/quantum_grey_700</item>
+ <item name="colorPrimary">@color/quantum_grey_500</item>
+ <item name="colorPrimaryLight">@color/quantum_grey_100</item>
+ <item name="colorAccent">@color/quantum_teal_A200</item>
+
+ <item name="colorControlNormal">?attr/textColorSecondary</item>
+ <item name="colorControlActivated">?attr/colorPrimaryLight</item>
+ <item name="colorButtonNormal">@color/quantum_grey_100</item>
+ <item name="colorButtonPressed">@color/quantum_grey_500</item>
<!-- TODO: Remove these attrs and move into button style. -->
- <item name="colorButtonNormalColored">@color/theme_color_500</item>
- <item name="colorButtonPressedColored">@color/theme_color_700</item>
+ <item name="colorButtonNormalColored">?attr/colorPrimary</item>
+ <item name="colorButtonPressedColored">?attr/colorPrimaryLight</item>
</style>
<!-- Variant of the quantum (light) theme that has a solid (opaque) action bar