From 9e4c9485fdca70a325042d2c3b9cde10a45d097f Mon Sep 17 00:00:00 2001 From: Mac Young Date: Tue, 29 Mar 2022 04:46:14 +0000 Subject: Merge 'Adjust Button Toggle UI component according to UX reference spec' into tm-dev Bug: 226962008 Test: Manual Change-Id: I2bfea36f4299cde9746adb07b11a03ddd4406582 merging from https://googleplex-android-review.git.corp.google.com/c/platform/packages/apps/Car/libs/+/16765506 --- car-qc-lib/res/drawable/qc_row_action_divider.xml | 6 ++-- car-qc-lib/res/drawable/qc_toggle_background.xml | 17 +++++------ .../res/drawable/qc_toggle_rotary_background.xml | 28 +++++++----------- .../res/drawable/qc_toggle_rotary_highlight.xml | 34 ++++++++++++++++++++++ .../res/drawable/qc_toggle_rotary_shadow.xml | 25 ++++++++++++++++ .../drawable/qc_toggle_unavailable_background.xml | 16 +++++----- car-qc-lib/res/values/colors.xml | 3 +- car-qc-lib/res/values/dimens.xml | 12 ++++++-- 8 files changed, 102 insertions(+), 39 deletions(-) create mode 100644 car-qc-lib/res/drawable/qc_toggle_rotary_highlight.xml create mode 100644 car-qc-lib/res/drawable/qc_toggle_rotary_shadow.xml diff --git a/car-qc-lib/res/drawable/qc_row_action_divider.xml b/car-qc-lib/res/drawable/qc_row_action_divider.xml index 75ffd46..62a8fe5 100644 --- a/car-qc-lib/res/drawable/qc_row_action_divider.xml +++ b/car-qc-lib/res/drawable/qc_row_action_divider.xml @@ -1,5 +1,5 @@ - - - - + android:width="@dimen/qc_toggle_size" + android:height="@dimen/qc_toggle_size" + android:start="@dimen/qc_toggle_background_padding" + android:top="@dimen/qc_toggle_background_padding" + android:drawable="@drawable/qc_toggle_button_background"> - + \ No newline at end of file diff --git a/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml b/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml index 406c44c..c0eb106 100644 --- a/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml +++ b/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml @@ -14,21 +14,15 @@ ~ See the License for the specific language governing permissions and ~ limitations under the License. --> - - - - - - - + + - - - - - - - - \ No newline at end of file + + \ No newline at end of file diff --git a/car-qc-lib/res/drawable/qc_toggle_rotary_highlight.xml b/car-qc-lib/res/drawable/qc_toggle_rotary_highlight.xml new file mode 100644 index 0000000..5894a8f --- /dev/null +++ b/car-qc-lib/res/drawable/qc_toggle_rotary_highlight.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/car-qc-lib/res/drawable/qc_toggle_rotary_shadow.xml b/car-qc-lib/res/drawable/qc_toggle_rotary_shadow.xml new file mode 100644 index 0000000..2717321 --- /dev/null +++ b/car-qc-lib/res/drawable/qc_toggle_rotary_shadow.xml @@ -0,0 +1,25 @@ + + + + + + + + + + \ No newline at end of file diff --git a/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml b/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml index 98cbded..e9f2e12 100644 --- a/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml +++ b/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml @@ -16,16 +16,18 @@ --> + android:width="@dimen/qc_toggle_size" + android:height="@dimen/qc_toggle_size" + android:start="@dimen/qc_toggle_background_padding" + android:top="@dimen/qc_toggle_background_padding"> + android:width="@dimen/qc_toggle_unavailable_outline_width" /> - - + + \ No newline at end of file diff --git a/car-qc-lib/res/values/colors.xml b/car-qc-lib/res/values/colors.xml index e3fbd6f..62bcfdc 100644 --- a/car-qc-lib/res/values/colors.xml +++ b/car-qc-lib/res/values/colors.xml @@ -18,5 +18,6 @@ @android:color/white #626262 @android:color/transparent - #75FFFFFF + #37FFFFFF + #C7000000 \ No newline at end of file diff --git a/car-qc-lib/res/values/dimens.xml b/car-qc-lib/res/values/dimens.xml index 6247561..b973774 100644 --- a/car-qc-lib/res/values/dimens.xml +++ b/car-qc-lib/res/values/dimens.xml @@ -26,10 +26,18 @@ 32dp 72dp 12dp + 16dp 16dp - 11dp - 14dp + 4dp + 18dp 2dp + 80dp + 20dp + 64dp + 4dp + 16dp + 8dp + 16dp \ No newline at end of file -- cgit v1.2.3