From bd266fef814922448a048107e9d13a2a22a5d957 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Wed, 22 Oct 2014 17:20:17 -0700 Subject: [PATCH] Lighten action bar on light theme, use secondary color for subtitle Also cleans up some code in ActionBarView. BUG: 17987639 Change-Id: I7dcdf18748d6da5792900ab9a78775a0511f982a --- .../internal/widget/ActionBarView.java | 12 ++---- core/res/res/values/colors_material.xml | 2 +- core/res/res/values/styles_material.xml | 42 +++++++++---------- 3 files changed, 25 insertions(+), 31 deletions(-) diff --git a/core/java/com/android/internal/widget/ActionBarView.java b/core/java/com/android/internal/widget/ActionBarView.java index 91e53307d997f..b9a85e59eb968 100644 --- a/core/java/com/android/internal/widget/ActionBarView.java +++ b/core/java/com/android/internal/widget/ActionBarView.java @@ -19,8 +19,6 @@ package com.android.internal.widget; import android.animation.LayoutTransition; import android.app.ActionBar; import android.content.Context; -import android.content.pm.ApplicationInfo; -import android.content.pm.PackageManager; import android.content.res.Configuration; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; @@ -29,9 +27,7 @@ import android.os.Parcelable; import android.text.Layout; import android.text.TextUtils; import android.util.AttributeSet; -import android.util.TypedValue; import android.view.CollapsibleActionView; -import android.view.ContextThemeWrapper; import android.view.Gravity; import android.view.LayoutInflater; import android.view.Menu; @@ -111,10 +107,10 @@ public class ActionBarView extends AbsActionBarView implements DecorToolbar { private int mProgressBarPadding; private int mItemPadding; - private int mTitleStyleRes; - private int mSubtitleStyleRes; - private int mProgressStyle; - private int mIndeterminateProgressStyle; + private final int mTitleStyleRes; + private final int mSubtitleStyleRes; + private final int mProgressStyle; + private final int mIndeterminateProgressStyle; private boolean mUserTitle; private boolean mIncludeTabs; diff --git a/core/res/res/values/colors_material.xml b/core/res/res/values/colors_material.xml index 5773b943abf0f..46ec83827e8b7 100644 --- a/core/res/res/values/colors_material.xml +++ b/core/res/res/values/colors_material.xml @@ -22,7 +22,7 @@ #ffeeeeee #ff212121 - #ffbdbdbd + #ffe0e0e0 #ff000000 #ff757575 diff --git a/core/res/res/values/styles_material.xml b/core/res/res/values/styles_material.xml index f9fca00d3ba4e..6e03b3d2696cd 100644 --- a/core/res/res/values/styles_material.xml +++ b/core/res/res/values/styles_material.xml @@ -320,49 +320,47 @@ please see styles_device_defaults.xml. ?attr/textColorPrimaryDisableOnly - - - - - + - +