From 926d532fded2f5b12d3407e66e87f8f64acb5e9e Mon Sep 17 00:00:00 2001 From: chihtinglo Date: Tue, 20 Dec 2022 00:26:30 +0800 Subject: [PATCH] Style panel with Material designs (2/n) The following components are styled to follow Material designs in this modification: 1. The "Edit" button - Modifying the text appearance 2. The "Done" button - Modifying the origin "Close" button to the "Done" button without changing the logic of the button - Adding a styled stroke to the button Bug: 257272333 Test: manual - attach screenshots with the bug Change-Id: Idd55458231c9fbceaf1bec36c34de5bc184a8ce3 --- ...y_window_magnification_button_done_bg.xml} | 12 +++++----- .../window_magnification_settings_view.xml | 23 +++++++++++-------- packages/SystemUI/res/values/colors.xml | 2 -- packages/SystemUI/res/values/dimens.xml | 6 +++++ packages/SystemUI/res/values/strings.xml | 6 ++--- packages/SystemUI/res/values/styles.xml | 16 +++++++++++++ .../WindowMagnificationSettings.java | 14 +++++------ 7 files changed, 51 insertions(+), 28 deletions(-) rename packages/SystemUI/res/drawable/{accessibility_window_magnification_button_bg.xml => accessibility_window_magnification_button_done_bg.xml} (63%) diff --git a/packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml b/packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml similarity index 63% rename from packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml rename to packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml index eefe36459f9cd..5c2bf3efae21d 100644 --- a/packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml +++ b/packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml @@ -14,13 +14,13 @@ limitations under the License. --> - + xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" + android:shape="rectangle"> - + android:width="@dimen/magnification_setting_button_done_width" + android:height="@dimen/magnification_setting_button_done_height"/> + \ No newline at end of file diff --git a/packages/SystemUI/res/layout/window_magnification_settings_view.xml b/packages/SystemUI/res/layout/window_magnification_settings_view.xml index cf2acdc463c2e..714d551f31ea9 100644 --- a/packages/SystemUI/res/layout/window_magnification_settings_view.xml +++ b/packages/SystemUI/res/layout/window_magnification_settings_view.xml @@ -36,12 +36,11 @@