From 926d532fded2f5b12d3407e66e87f8f64acb5e9e Mon Sep 17 00:00:00 2001 From: chihtinglo Date: Tue, 20 Dec 2022 00:26:30 +0800 Subject: 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 --- ...ccessibility_window_magnification_button_bg.xml | 26 ---------------------- ...ibility_window_magnification_button_done_bg.xml | 26 ++++++++++++++++++++++ .../layout/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 +++++++++++++ .../accessibility/WindowMagnificationSettings.java | 14 ++++++------ 8 files changed, 71 insertions(+), 48 deletions(-) delete mode 100644 packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml create mode 100644 packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml diff --git a/packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml b/packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml deleted file mode 100644 index eefe36459f9c..000000000000 --- a/packages/SystemUI/res/drawable/accessibility_window_magnification_button_bg.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml b/packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml new file mode 100644 index 000000000000..5c2bf3efae21 --- /dev/null +++ b/packages/SystemUI/res/drawable/accessibility_window_magnification_button_done_bg.xml @@ -0,0 +1,26 @@ + + + + + + \ 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 cf2acdc463c2..714d551f31ea 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 @@