diff --git a/quickstep/res/color/taskbar_nav_icon_dark_color.xml b/quickstep/res/color/taskbar_nav_icon_dark_color.xml
new file mode 100644
index 0000000000..7951e123af
--- /dev/null
+++ b/quickstep/res/color/taskbar_nav_icon_dark_color.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/quickstep/res/color/taskbar_nav_icon_light_color.xml b/quickstep/res/color/taskbar_nav_icon_light_color.xml
new file mode 100644
index 0000000000..cc8e3b30b1
--- /dev/null
+++ b/quickstep/res/color/taskbar_nav_icon_light_color.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/quickstep/res/drawable/bg_taskbar_edu_tooltip.xml b/quickstep/res/drawable/bg_taskbar_edu_tooltip.xml
index a20f7daf2c..20c524d0e3 100644
--- a/quickstep/res/drawable/bg_taskbar_edu_tooltip.xml
+++ b/quickstep/res/drawable/bg_taskbar_edu_tooltip.xml
@@ -18,5 +18,5 @@
android:shape="rectangle">
-
+
\ No newline at end of file
diff --git a/quickstep/res/drawable/button_taskbar_edu_colored.xml b/quickstep/res/drawable/button_taskbar_edu_colored.xml
index 70bfc9f255..a94a996499 100644
--- a/quickstep/res/drawable/button_taskbar_edu_colored.xml
+++ b/quickstep/res/drawable/button_taskbar_edu_colored.xml
@@ -15,14 +15,13 @@
-->
+ xmlns:android="http://schemas.android.com/apk/res/android">
-
-
+
diff --git a/quickstep/res/values/colors.xml b/quickstep/res/values/colors.xml
index c84c5186ec..c6156e65a0 100644
--- a/quickstep/res/values/colors.xml
+++ b/quickstep/res/values/colors.xml
@@ -25,10 +25,6 @@
#E0E0E0
- #ffffff
-
- #99000000
#EBffffff
#99000000
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt
index e07f0c0f64..a347908473 100644
--- a/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt
+++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt
@@ -19,6 +19,7 @@ import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.graphics.Rect
+import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import android.view.Gravity
import android.view.MotionEvent
@@ -138,9 +139,29 @@ constructor(
private fun populateForView(view: View): TaskbarDividerPopupView<*> {
dividerView = view
+ tryUpdateBackground()
return this
}
+ /** Updates the text background to match the shape of this background (when applicable). */
+ private fun tryUpdateBackground() {
+ if (background !is GradientDrawable) {
+ return
+ }
+ val background = background as GradientDrawable
+ val color = context.getColor(R.color.popup_shade_first)
+ val backgroundMask = GradientDrawable()
+ backgroundMask.setColor(color)
+ backgroundMask.shape = GradientDrawable.RECTANGLE
+ if (background.cornerRadii != null) {
+ backgroundMask.cornerRadii = background.cornerRadii
+ } else {
+ backgroundMask.cornerRadius = background.cornerRadius
+ }
+
+ setBackground(backgroundMask)
+ }
+
override fun addArrow() {
super.addArrow()
// Change arrow location to the middle of popup.
@@ -161,7 +182,7 @@ constructor(
0f, // arrowOffsetY
false, // isPointingUp
true, // leftAligned
- Themes.getAttrColor(context, R.attr.popupColorPrimary),
+ context.getColor(R.color.popup_shade_first),
)
elevation = mElevation
mArrow.elevation = mElevation
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarEduTooltip.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarEduTooltip.kt
index bcae06cd23..9b50c5d77b 100644
--- a/quickstep/src/com/android/launcher3/taskbar/TaskbarEduTooltip.kt
+++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarEduTooltip.kt
@@ -53,7 +53,7 @@ constructor(
private val activityContext: ActivityContext = ActivityContext.lookupContext(context)
private val backgroundColor =
- Themes.getAttrColor(context, com.android.internal.R.attr.colorSurface)
+ Themes.getAttrColor(context, com.android.internal.R.attr.materialColorSurfaceBright)
private val tooltipCornerRadius = Themes.getDialogCornerRadius(context)
private val arrowWidth = resources.getDimension(R.dimen.popup_arrow_width)
diff --git a/res/color-night-v31/all_apps_button_color.xml b/res/color-night-v31/all_apps_button_color.xml
new file mode 100644
index 0000000000..a1d1b6706e
--- /dev/null
+++ b/res/color-night-v31/all_apps_button_color.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/res/color-night-v31/popup_shade_first.xml b/res/color-night-v31/popup_shade_first.xml
index ba7412859c..83822a62bc 100644
--- a/res/color-night-v31/popup_shade_first.xml
+++ b/res/color-night-v31/popup_shade_first.xml
@@ -1,5 +1,4 @@
-
-
-
-
+
+
diff --git a/res/color-night-v31/taskbar_background.xml b/res/color-night-v31/taskbar_background.xml
index 3409d52b25..074db20095 100644
--- a/res/color-night-v31/taskbar_background.xml
+++ b/res/color-night-v31/taskbar_background.xml
@@ -14,5 +14,5 @@
limitations under the License.
-->
-
+
diff --git a/res/color-night-v31/taskbar_divider_background.xml b/res/color-night-v31/taskbar_divider_background.xml
index 1981eecac1..5dabf5770b 100644
--- a/res/color-night-v31/taskbar_divider_background.xml
+++ b/res/color-night-v31/taskbar_divider_background.xml
@@ -14,5 +14,5 @@
limitations under the License.
-->
-
+
diff --git a/res/color-v31/all_apps_button_color.xml b/res/color-v31/all_apps_button_color.xml
new file mode 100644
index 0000000000..a4603f9742
--- /dev/null
+++ b/res/color-v31/all_apps_button_color.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/res/color-v31/popup_shade_first.xml b/res/color-v31/popup_shade_first.xml
index 28d9155f5e..1278bb494a 100644
--- a/res/color-v31/popup_shade_first.xml
+++ b/res/color-v31/popup_shade_first.xml
@@ -13,8 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
+
+
diff --git a/res/color-v31/taskbar_divider_background.xml b/res/color-v31/taskbar_divider_background.xml
index 487e791cad..60417a8d0f 100644
--- a/res/color-v31/taskbar_divider_background.xml
+++ b/res/color-v31/taskbar_divider_background.xml
@@ -14,5 +14,5 @@
limitations under the License.
-->
-
+
diff --git a/res/color-v31/taskbar_edu_button_color.xml b/res/color-v31/taskbar_edu_button_color.xml
new file mode 100644
index 0000000000..f53e53afbd
--- /dev/null
+++ b/res/color-v31/taskbar_edu_button_color.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/res/color/popup_shade_first.xml b/res/color/popup_shade_first.xml
index 151190b6d4..1278bb494a 100644
--- a/res/color/popup_shade_first.xml
+++ b/res/color/popup_shade_first.xml
@@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
-
+
+
diff --git a/res/values-night-v31/colors.xml b/res/values-night-v31/colors.xml
index 4dd3849cf8..8ad5331d11 100644
--- a/res/values-night-v31/colors.xml
+++ b/res/values-night-v31/colors.xml
@@ -25,8 +25,6 @@
@android:color/system_accent2_700
@android:color/system_neutral1_700
- @android:color/system_neutral2_200
-
@android:color/system_neutral1_100
@android:color/system_neutral1_100
diff --git a/res/values-night/colors.xml b/res/values-night/colors.xml
deleted file mode 100644
index 17fe419a8c..0000000000
--- a/res/values-night/colors.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
- #BFC8CC
-
\ No newline at end of file
diff --git a/res/values-v31/colors.xml b/res/values-v31/colors.xml
index 83c03ba595..ba5adfdc42 100644
--- a/res/values-v31/colors.xml
+++ b/res/values-v31/colors.xml
@@ -73,8 +73,6 @@
@android:color/system_accent1_300
@android:color/system_neutral2_700
- @android:color/system_neutral2_700
-
@android:color/system_neutral1_900
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 2bed48686c..af6b3e515c 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -90,8 +90,6 @@
#D3E3FD
#0842A0
- #40484B
-
#00668B
#B5CAD7
#4BB6E8