From 4d3a1a4370beb19b1f54d3a8ffdfcc14b5d8d37b Mon Sep 17 00:00:00 2001 From: Artsiom Mitrokhin Date: Tue, 7 Jan 2025 10:33:54 -0500 Subject: [PATCH] Use conditional stroke color for taskbak overflow entrypoint Bug: 383556682 Flag: com.android.launcher3.taskbar_overflow Test: manual Change-Id: I3f2d0812e3a0004c76a5597fa9b359f7a0918195 --- .../com/android/launcher3/taskbar/TaskbarOverflowView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarOverflowView.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarOverflowView.java index 0ed6669c7a..017a12c45e 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarOverflowView.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarOverflowView.java @@ -39,7 +39,6 @@ import androidx.annotation.VisibleForTesting; import androidx.core.graphics.ColorUtils; import com.android.app.animation.Interpolators; -import com.android.launcher3.R; import com.android.launcher3.Reorderable; import com.android.launcher3.Utilities; import com.android.launcher3.icons.IconNormalizer; @@ -243,7 +242,9 @@ public class TaskbarOverflowView extends FrameLayout implements Reorderable { private void init() { mIsRtlLayout = Utilities.isRtl(getResources()); mItemBackgroundPaint = new Paint(Paint.ANTI_ALIAS_FLAG); - mItemBackgroundColor = getContext().getColor(R.color.taskbar_background); + mItemBackgroundColor = getContext().getColor(Utilities.isDarkTheme(getContext()) + ? com.android.internal.R.color.materialColorSurface + : com.android.internal.R.color.materialColorInverseOnSurface); mLeaveBehindColor = Themes.getAttrColor(getContext(), android.R.attr.textColorTertiary); setWillNotDraw(false);