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 --- .../dialer/theme/common/res/values/colors.xml | 33 ++++++++ .../dialer/theme/common/res/values/dimens.xml | 57 ++++++++++++++ .../dialer/theme/common/res/values/strings.xml | 47 ++++++++++++ .../dialer/theme/common/res/values/styles.xml | 34 +++++++++ .../dialer/theme/common/res/values/text_styles.xml | 87 ++++++++++++++++++++++ 5 files changed, 258 insertions(+) create mode 100644 java/com/android/dialer/theme/common/res/values/colors.xml create mode 100644 java/com/android/dialer/theme/common/res/values/dimens.xml create mode 100644 java/com/android/dialer/theme/common/res/values/strings.xml create mode 100644 java/com/android/dialer/theme/common/res/values/styles.xml create mode 100644 java/com/android/dialer/theme/common/res/values/text_styles.xml (limited to 'java/com/android/dialer/theme/common/res/values') diff --git a/java/com/android/dialer/theme/common/res/values/colors.xml b/java/com/android/dialer/theme/common/res/values/colors.xml new file mode 100644 index 000000000..8f5976703 --- /dev/null +++ b/java/com/android/dialer/theme/common/res/values/colors.xml @@ -0,0 +1,33 @@ + + + + + #00C853 + #BD2A2A + #D8D8D8 + #2A56C6 + + + #097138 + #A52714 + #097138 + + #C53929 + + + #CFD8DC + \ No newline at end of file diff --git a/java/com/android/dialer/theme/common/res/values/dimens.xml b/java/com/android/dialer/theme/common/res/values/dimens.xml new file mode 100644 index 000000000..88b8a0423 --- /dev/null +++ b/java/com/android/dialer/theme/common/res/values/dimens.xml @@ -0,0 +1,57 @@ + + + + 16dp + 24dp + 24dp + + 16sp + 12sp + 14sp + 14sp + + 48dp + 15dp + 9dp + + + 56dp + 64dp + 3dp + 48dp + + 72dp + + 2dp + + 1.0 + 0.54 + + + 56dp + + + 48dp + + + 72dp + + + 88dp + diff --git a/java/com/android/dialer/theme/common/res/values/strings.xml b/java/com/android/dialer/theme/common/res/values/strings.xml new file mode 100644 index 000000000..7d7209207 --- /dev/null +++ b/java/com/android/dialer/theme/common/res/values/strings.xml @@ -0,0 +1,47 @@ + + + + + Unknown + + + + %1$s %2$d + + + + Payphone + + + Emergency number + + + Phone + + + Call + + + Continuing call using Wi\u2011Fi\u2026 + + + + %1$s %2$s + + diff --git a/java/com/android/dialer/theme/common/res/values/styles.xml b/java/com/android/dialer/theme/common/res/values/styles.xml new file mode 100644 index 000000000..2c6446ca1 --- /dev/null +++ b/java/com/android/dialer/theme/common/res/values/styles.xml @@ -0,0 +1,34 @@ + + + + + + + + + + \ No newline at end of file diff --git a/java/com/android/dialer/theme/common/res/values/text_styles.xml b/java/com/android/dialer/theme/common/res/values/text_styles.xml new file mode 100644 index 000000000..9cf4a7689 --- /dev/null +++ b/java/com/android/dialer/theme/common/res/values/text_styles.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3