Merge "Renew the highlight state color" into tm-dev am: 81ee2037ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17910935 Change-Id: Ia100a0ee19b88d603887cad11b1849d1a5b9d2cd Ignore-AOSP-First: this is an automerge Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -85,7 +85,6 @@ import android.text.TextUtils;
|
||||
import android.text.format.DateUtils;
|
||||
import android.text.style.TtsSpan;
|
||||
import android.util.ArraySet;
|
||||
import android.util.FeatureFlagUtils;
|
||||
import android.util.IconDrawableFactory;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -1220,7 +1219,7 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
*/
|
||||
@ColorInt
|
||||
public static int getHomepageIconColor(Context context) {
|
||||
return getColorAttrDefaultColor(context, android.R.attr.textColorSecondary);
|
||||
return getColorAttrDefaultColor(context, android.R.attr.textColorPrimary);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1228,6 +1227,6 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
*/
|
||||
@ColorInt
|
||||
public static int getHomepageIconColorHighlight(Context context) {
|
||||
return getColorAttrDefaultColor(context, android.R.attr.textColorSecondaryInverse);
|
||||
return context.getColor(R.color.accent_select_primary_text);
|
||||
}
|
||||
}
|
||||
|
@@ -78,12 +78,10 @@ public class HighlightableTopLevelPreferenceAdapter extends PreferenceGroupAdapt
|
||||
Context context = preferenceGroup.getContext();
|
||||
mTitleColorNormal = Utils.getColorAttrDefaultColor(context,
|
||||
android.R.attr.textColorPrimary);
|
||||
mTitleColorHighlight = Utils.getColorAttrDefaultColor(context,
|
||||
android.R.attr.textColorPrimaryInverse);
|
||||
mTitleColorHighlight = context.getColor(R.color.accent_select_primary_text);
|
||||
mSummaryColorNormal = Utils.getColorAttrDefaultColor(context,
|
||||
android.R.attr.textColorSecondary);
|
||||
mSummaryColorHighlight = Utils.getColorAttrDefaultColor(context,
|
||||
android.R.attr.textColorSecondaryInverse);
|
||||
mSummaryColorHighlight = context.getColor(R.color.accent_select_secondary_text);
|
||||
mIconColorNormal = Utils.getHomepageIconColor(context);
|
||||
mIconColorHighlight = Utils.getHomepageIconColorHighlight(context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user