From c27a43ba305145ad8ab6a0ca8a06cf8d53714f51 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Tue, 20 Jun 2023 22:45:25 +0000 Subject: [PATCH] Restore specific colors for floating rotation button - The rotation button background does not change based on the current light/dark mode Bug: 288126260 Test: Check rotation button color with dark mode enabled/disabled Change-Id: If4d5edfd4b118e4f16b6d472f206587e7cd61f98 --- quickstep/res/values/colors.xml | 4 ++++ .../com/android/launcher3/taskbar/TaskbarActivityContext.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/quickstep/res/values/colors.xml b/quickstep/res/values/colors.xml index 63f192c099..36c7352781 100644 --- a/quickstep/res/values/colors.xml +++ b/quickstep/res/values/colors.xml @@ -28,6 +28,10 @@ #EBffffff #99000000 + + #ffffff + #99000000 + #FFFFFFFF diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java index 54154d0a34..43feec716d 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarActivityContext.java @@ -232,8 +232,8 @@ public class TaskbarActivityContext extends BaseTaskbarContext { ? new DesktopNavbarButtonsViewController(this, navButtonsView) : new NavbarButtonsViewController(this, navButtonsView), new RotationButtonController(this, - c.getColor(R.color.taskbar_nav_icon_light_color), - c.getColor(R.color.taskbar_nav_icon_dark_color), + c.getColor(R.color.floating_rotation_button_light_color), + c.getColor(R.color.floating_rotation_button_dark_color), R.drawable.ic_sysbar_rotate_button_ccw_start_0, R.drawable.ic_sysbar_rotate_button_ccw_start_90, R.drawable.ic_sysbar_rotate_button_cw_start_0,