summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/main/impl/res/values
diff options
context:
space:
mode:
authorcalderwoodra <calderwoodra@google.com>2018-02-21 10:40:41 -0800
committerEric Erfanian <erfanian@google.com>2018-02-22 21:11:38 +0000
commit99606aa5368e1eea30730a899aacdfdd7a5fd61a (patch)
treef74a98770cd3a4412e02baf129d0ad4e95404aa0 /java/com/android/dialer/main/impl/res/values
parent9e3a39d9427525684d9c106587a5fa077b110812 (diff)
Fixed some Dialer theming bugs in NUI.
- URL links are now blue - Raised buttons are now blue w/ white text - android nav bar is white - call log actions/icons are the correct colors - search bar hint text is the correct color Bug: 72525324 Test: screenshot PiperOrigin-RevId: 186484088 Change-Id: I1863a28e1ea9bf16863f42299afca319a6bdcc97
Diffstat (limited to 'java/com/android/dialer/main/impl/res/values')
-rw-r--r--java/com/android/dialer/main/impl/res/values/styles.xml23
1 files changed, 22 insertions, 1 deletions
diff --git a/java/com/android/dialer/main/impl/res/values/styles.xml b/java/com/android/dialer/main/impl/res/values/styles.xml
index 2865f2587..47fdbac93 100644
--- a/java/com/android/dialer/main/impl/res/values/styles.xml
+++ b/java/com/android/dialer/main/impl/res/values/styles.xml
@@ -15,14 +15,35 @@
~ limitations under the License
-->
<resources>
- <style name="NuiMainActivityTheme" parent="Theme.AppCompat.Light.NoActionBar">
+
+ <!-- Activities should use this theme as their style -->
+ <style name="NuiActivityTheme" parent="NuiActivityThemeBase"/>
+
+ <!-- Used as a procy for values-v27/styles.xml -->
+ <style name="NuiActivityThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
+ <!-- App colors -->
<item name="android:colorPrimary">@color/dialtacts_theme_color</item>
<item name="android:colorPrimaryDark">@color/dialer_theme_color_dark</item>
<item name="android:colorAccent">@color/dialer_secondary_color</item>
+ <!-- TODO(calderwoodra): figure out what this is used for, but I think it's for checkboxes -->
+ <item name="android:colorControlActivated">@color/dialer_theme_color</item>
+
+ <!-- Text colors -->
+ <item name="android:textColorPrimary">@color/dialer_primary_text_color</item>
+ <item name="android:textColorSecondary">@color/dialer_secondary_text_color</item>
+ <item name="android:textColorLink">@color/dialer_theme_color</item>
+
+ <!-- Themeing for material buttons and widgets -->
+ <item name="android:colorButtonNormal">@color/dialer_theme_color</item>
+ <item name="android:textAppearanceButton">@style/DialerButtonTextStyle</item>
+
<!-- Theme needed for DialpadFragment -->
<item name="dialpad_style">@style/Dialpad.Light</item>
+ <!-- Custom theme for Alert Dialogs-->
+ <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
+
<!-- Required for actionmode/multiselect to render properly. -->
<!-- TODO(calderwoodra): Check to see if we can remove this after NewVoicemailFragment launches -->
<item name="actionModeStyle">@style/ActionModeStyle</item>