From 3dcd8ea9c7aa95b76711095f612dbc52958bf6a6 Mon Sep 17 00:00:00 2001 From: yueg Date: Wed, 22 Nov 2017 11:07:44 -0800 Subject: Bubble v2 UI changes. Including: - Use exit-to-app icon instead of fullscreen icon for back-to-call button - Use ripple for first button since it needs top-rounded background - Change red hang-up button color and grey icon and text color - Change some dimensions Bug: 67605985 Test: manual PiperOrigin-RevId: 176678427 Change-Id: I3f7836d832f7130f82d7f3764fb392807f3fab9a --- .../quantum_ic_exit_to_app_vd_theme_24.xml | 25 +++++++++++++++++++++ .../com/android/dialer/theme/res/values/colors.xml | 2 +- .../incallui/NewReturnToCallController.java | 2 +- .../newbubble/res/drawable/bubble_pill_up.xml | 23 +++++++++++++++++++ .../res/drawable/bubble_ripple_circle_small.xml | 26 ---------------------- .../res/drawable/bubble_ripple_pill_up.xml | 21 +++++++++++++++++ .../newbubble/res/layout/new_bubble_base.xml | 14 +++++------- java/com/android/newbubble/res/values/colors.xml | 3 ++- java/com/android/newbubble/res/values/styles.xml | 2 +- java/com/android/newbubble/res/values/values.xml | 4 ++-- 10 files changed, 82 insertions(+), 40 deletions(-) create mode 100644 assets/quantum/res/drawable/quantum_ic_exit_to_app_vd_theme_24.xml create mode 100644 java/com/android/newbubble/res/drawable/bubble_pill_up.xml delete mode 100644 java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml create mode 100644 java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml diff --git a/assets/quantum/res/drawable/quantum_ic_exit_to_app_vd_theme_24.xml b/assets/quantum/res/drawable/quantum_ic_exit_to_app_vd_theme_24.xml new file mode 100644 index 000000000..5279f0483 --- /dev/null +++ b/assets/quantum/res/drawable/quantum_ic_exit_to_app_vd_theme_24.xml @@ -0,0 +1,25 @@ + + + + \ No newline at end of file diff --git a/java/com/android/dialer/theme/res/values/colors.xml b/java/com/android/dialer/theme/res/values/colors.xml index a59fa6704..a43487416 100644 --- a/java/com/android/dialer/theme/res/values/colors.xml +++ b/java/com/android/dialer/theme/res/values/colors.xml @@ -72,5 +72,5 @@ #89000000 - #FFDF0000 + #BD2A2A diff --git a/java/com/android/incallui/NewReturnToCallController.java b/java/com/android/incallui/NewReturnToCallController.java index 8f2463e8b..399b18568 100644 --- a/java/com/android/incallui/NewReturnToCallController.java +++ b/java/com/android/incallui/NewReturnToCallController.java @@ -280,7 +280,7 @@ public class NewReturnToCallController implements InCallUiListener, Listener, Au // Return to call actions.add( Action.builder() - .setIconDrawable(context.getDrawable(R.drawable.quantum_ic_fullscreen_vd_theme_24)) + .setIconDrawable(context.getDrawable(R.drawable.quantum_ic_exit_to_app_vd_theme_24)) .setIntent(fullScreen) .setName(context.getText(R.string.bubble_return_to_call)) .build()); diff --git a/java/com/android/newbubble/res/drawable/bubble_pill_up.xml b/java/com/android/newbubble/res/drawable/bubble_pill_up.xml new file mode 100644 index 000000000..9dc0395f4 --- /dev/null +++ b/java/com/android/newbubble/res/drawable/bubble_pill_up.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml b/java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml deleted file mode 100644 index 109d1cec1..000000000 --- a/java/com/android/newbubble/res/drawable/bubble_ripple_circle_small.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - diff --git a/java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml b/java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml new file mode 100644 index 000000000..77147f828 --- /dev/null +++ b/java/com/android/newbubble/res/drawable/bubble_ripple_pill_up.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/java/com/android/newbubble/res/layout/new_bubble_base.xml b/java/com/android/newbubble/res/layout/new_bubble_base.xml index c90cabdf2..8cac982f4 100644 --- a/java/com/android/newbubble/res/layout/new_bubble_base.xml +++ b/java/com/android/newbubble/res/layout/new_bubble_base.xml @@ -88,10 +88,10 @@ tools:visibility="visible"> + style="@style/CheckableButton"/> #33000000 - @color/dialer_secondary_text_color + @color/bubble_primary_background_darken + @color/icon_color_grey @color/dialer_primary_text_color_white @color/dialer_theme_color diff --git a/java/com/android/newbubble/res/values/styles.xml b/java/com/android/newbubble/res/values/styles.xml index 274bd8704..6c138d645 100644 --- a/java/com/android/newbubble/res/values/styles.xml +++ b/java/com/android/newbubble/res/values/styles.xml @@ -28,7 +28,7 @@