From 4d9af652f179e9a7af8e95cf1809dbfe4df91d34 Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Wed, 12 Apr 2023 17:57:28 -0400 Subject: [PATCH] Remove light theme support for split screen surface. Test: Split screen backgrounds should be dark with white divider. Fix: 276584850 Change-Id: I90a0da5660d64498dbc83b8d37c55eeb55dc9f80 --- .../Shell/res/color/taskbar_background.xml | 20 ------------------- .../taskbar_background_dark.xml} | 0 .../Shell/res/values-night/colors.xml | 1 - .../WindowManager/Shell/res/values/colors.xml | 4 ++-- .../wm/shell/draganddrop/DropZoneView.java | 4 ++-- 5 files changed, 4 insertions(+), 25 deletions(-) delete mode 100644 libs/WindowManager/Shell/res/color/taskbar_background.xml rename libs/WindowManager/Shell/res/{color-night/taskbar_background.xml => color/taskbar_background_dark.xml} (100%) diff --git a/libs/WindowManager/Shell/res/color/taskbar_background.xml b/libs/WindowManager/Shell/res/color/taskbar_background.xml deleted file mode 100644 index 876ee02a8adfc..0000000000000 --- a/libs/WindowManager/Shell/res/color/taskbar_background.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/libs/WindowManager/Shell/res/color-night/taskbar_background.xml b/libs/WindowManager/Shell/res/color/taskbar_background_dark.xml similarity index 100% rename from libs/WindowManager/Shell/res/color-night/taskbar_background.xml rename to libs/WindowManager/Shell/res/color/taskbar_background_dark.xml diff --git a/libs/WindowManager/Shell/res/values-night/colors.xml b/libs/WindowManager/Shell/res/values-night/colors.xml index 5c6bb57a7f1cf..83c4d93982f4e 100644 --- a/libs/WindowManager/Shell/res/values-night/colors.xml +++ b/libs/WindowManager/Shell/res/values-night/colors.xml @@ -15,7 +15,6 @@ --> - #ffffff @color/GM2_grey_200 diff --git a/libs/WindowManager/Shell/res/values/colors.xml b/libs/WindowManager/Shell/res/values/colors.xml index c487e4afd678c..54a8f33fd6790 100644 --- a/libs/WindowManager/Shell/res/values/colors.xml +++ b/libs/WindowManager/Shell/res/values/colors.xml @@ -17,8 +17,8 @@ */ --> - #000000 - @color/taskbar_background + #ffffff + @color/taskbar_background_dark #59000000 #60000000 #00000000 diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DropZoneView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DropZoneView.java index 28f59b53b5b6a..724a130ef52d4 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DropZoneView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DropZoneView.java @@ -104,7 +104,7 @@ public class DropZoneView extends FrameLayout { setContainerMargin(0, 0, 0, 0); // make sure it's populated mCornerRadius = ScreenDecorationsUtils.getWindowCornerRadius(context); - mMarginColor = getResources().getColor(R.color.taskbar_background); + mMarginColor = getResources().getColor(R.color.taskbar_background_dark); int c = getResources().getColor(android.R.color.system_accent1_500); mHighlightColor = Color.argb(HIGHLIGHT_ALPHA, Color.red(c), Color.green(c), Color.blue(c)); mSplashScreenColor = Color.argb(SPLASHSCREEN_ALPHA, 0, 0, 0); @@ -125,7 +125,7 @@ public class DropZoneView extends FrameLayout { public void onThemeChange() { mCornerRadius = ScreenDecorationsUtils.getWindowCornerRadius(getContext()); - mMarginColor = getResources().getColor(R.color.taskbar_background); + mMarginColor = getResources().getColor(R.color.taskbar_background_dark); mHighlightColor = getResources().getColor(android.R.color.system_accent1_500); if (mMarginPercent > 0) {