From 2ba829dbebb7afcee5097dfc9063934cf5dfa336 Mon Sep 17 00:00:00 2001 From: Miranda Kephart Date: Tue, 1 Feb 2022 12:39:07 -0500 Subject: [PATCH] Fix clipboard overlay in dark mode and RTL Uses the correct themed colors in dark mode (including clipboard text preview) and dismisses to the right when in RTL Bug: 195554988 Test: manual Change-Id: I221089d142c35ba74f8ecd9299f9162abe8a0cee --- .../res/layout/overlay_action_chip.xml | 4 +-- packages/SystemUI/res/values-night/styles.xml | 2 +- packages/SystemUI/res/values/attrs.xml | 2 ++ packages/SystemUI/res/values/styles.xml | 4 ++- .../ClipboardOverlayController.java | 24 +------------ .../DraggableConstraintLayout.java | 13 +++++++ .../systemui/screenshot/ScreenshotView.java | 34 +------------------ .../screenshot/SwipeDismissHandler.java | 21 ++++++++++-- 8 files changed, 42 insertions(+), 62 deletions(-) diff --git a/packages/SystemUI/res/layout/overlay_action_chip.xml b/packages/SystemUI/res/layout/overlay_action_chip.xml index 13b16124f419e..6d2d93124234c 100644 --- a/packages/SystemUI/res/layout/overlay_action_chip.xml +++ b/packages/SystemUI/res/layout/overlay_action_chip.xml @@ -32,7 +32,7 @@ android:gravity="center"> + android:textColor="?attr/overlayButtonTextColor"/> diff --git a/packages/SystemUI/res/values-night/styles.xml b/packages/SystemUI/res/values-night/styles.xml index 6cef8035f10b5..f7261e70a6105 100644 --- a/packages/SystemUI/res/values-night/styles.xml +++ b/packages/SystemUI/res/values-night/styles.xml @@ -48,7 +48,7 @@ -