diff options
Diffstat (limited to 'java/com/android/dialer/main/impl/res')
3 files changed, 51 insertions, 2 deletions
diff --git a/java/com/android/dialer/main/impl/res/layout/main_activity.xml b/java/com/android/dialer/main/impl/res/layout/main_activity.xml index d8b13a6c2..4f0284126 100644 --- a/java/com/android/dialer/main/impl/res/layout/main_activity.xml +++ b/java/com/android/dialer/main/impl/res/layout/main_activity.xml @@ -68,11 +68,13 @@ layout="@layout/toolbar_layout"/> <ImageView + android:id="@+id/toolbar_shadow" android:layout_width="match_parent" android:layout_height="2dp" android:scaleType="fitXY" android:src="@drawable/search_shadow" - android:layout_below="@+id/toolbar"/> + android:layout_below="@+id/toolbar" + android:visibility="gone"/> <!-- TODO(calderwoodra): investigate what this is for and why we want it. --> <!-- Host container for the contact tile drag shadow --> diff --git a/java/com/android/dialer/main/impl/res/values-v27/styles.xml b/java/com/android/dialer/main/impl/res/values-v27/styles.xml new file mode 100644 index 000000000..c91cba245 --- /dev/null +++ b/java/com/android/dialer/main/impl/res/values-v27/styles.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2018 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> +<resources> + + <!-- Used on sdk 27 and above --> + <style name="NuiActivityTheme" parent="NuiActivityThemeBase"> + <!-- Used to change the navigation bar color --> + <item name="android:windowLightNavigationBar">true</item> + <item name="android:navigationBarColor">?android:windowBackground</item> + <item name="android:navigationBarDividerColor">#E0E0E0</item> + </style> +</resources>
\ No newline at end of file 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> |