From c5c42189eeab0389a94717de9a66c6d00068e8bf Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Tue, 22 May 2018 15:30:39 -0700 Subject: Began implementation of Dialer dark theme. - README on how to properly theme Dialer going forward. - Migrated all widgets to use global colors. - Removed all activity and application themes where it wasn't necessary. - Added themeing test rule for Espresso tests. Bug: 79883035 Test: tap PiperOrigin-RevId: 197634256 Change-Id: I4b7d94d45aeeb59d484b0069fdd1e200a654910b --- .../com/android/incallui/incall/impl/res/color/incall_button_icon.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/com/android/incallui/incall') diff --git a/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml b/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml index 8e9120b09..c6ed6e72f 100644 --- a/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml +++ b/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml @@ -16,6 +16,6 @@ --> - - + + -- cgit v1.2.3 From 0fe130fed43cd295d4ef852d52b9dd102350016f Mon Sep 17 00:00:00 2001 From: uabdullah Date: Wed, 23 May 2018 17:54:29 -0700 Subject: Use Dialer Light Theme for SpeakEasyFragment Bug: 79523664,80195371 Test: Need to add Scuba tests (http://b/80194939) PiperOrigin-RevId: 197821095 Change-Id: I92ea1e6b95d264ea69f7d30eea12f547ee60eeac --- java/com/android/incallui/incall/impl/InCallFragment.java | 1 + java/com/android/incallui/theme/res/values/styles.xml | 13 +++++++++++++ 2 files changed, 14 insertions(+) (limited to 'java/com/android/incallui/incall') diff --git a/java/com/android/incallui/incall/impl/InCallFragment.java b/java/com/android/incallui/incall/impl/InCallFragment.java index 85ae0bbb6..7f20b407f 100644 --- a/java/com/android/incallui/incall/impl/InCallFragment.java +++ b/java/com/android/incallui/incall/impl/InCallFragment.java @@ -148,6 +148,7 @@ public class InCallFragment extends Fragment @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) { LogUtil.i("InCallFragment.onCreateView", null); + getActivity().setTheme(R.style.Theme_InCallScreen); // Bypass to avoid StrictModeResourceMismatchViolation final View view = StrictModeUtils.bypass( diff --git a/java/com/android/incallui/theme/res/values/styles.xml b/java/com/android/incallui/theme/res/values/styles.xml index f396559c8..f4b55c3e6 100644 --- a/java/com/android/incallui/theme/res/values/styles.xml +++ b/java/com/android/incallui/theme/res/values/styles.xml @@ -20,6 +20,19 @@ circular reveal animation for a new outgoing call to work correctly. We don't just use Theme.Black.NoTitleBar directly, since we want any popups or dialogs from the InCallActivity to have the correct Material style. --> + + - \ No newline at end of file + diff --git a/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml b/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml index c6ed6e72f..68b34c89d 100644 --- a/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml +++ b/java/com/android/incallui/incall/impl/res/color/incall_button_icon.xml @@ -16,6 +16,6 @@ --> - + diff --git a/java/com/android/incallui/theme/res/values/styles.xml b/java/com/android/incallui/theme/res/values/styles.xml index f4b55c3e6..3475e3548 100644 --- a/java/com/android/incallui/theme/res/values/styles.xml +++ b/java/com/android/incallui/theme/res/values/styles.xml @@ -72,6 +72,7 @@ @dimen/incall_end_call_spacing 10dp + ?android:attr/textColorPrimaryInverse ?android:attr/textColorSecondaryInverse -- cgit v1.2.3