[UI][Modifier key remapping] Use new color token.
Chnage materialColorPrimaryContainer to materialColorPrimary Change materialColorSurfaceContainerHigh to materialColorSurfaceContainerHighest Bug: 277712746 Test: manual Change-Id: I7b23850a24718d28020f6a7b13119c69f50861b1
This commit is contained in:
committed by
Daniel Huang
parent
5ae083b952
commit
077293b72d
@@ -150,14 +150,14 @@ public class ModifierKeysPreferenceController extends BasePreferenceController {
|
||||
private Spannable changeSummaryColor(String summary) {
|
||||
Spannable spannableSummary = new SpannableString(summary);
|
||||
spannableSummary.setSpan(
|
||||
new ForegroundColorSpan(getColorOfColorAccentPrimaryVariant()),
|
||||
new ForegroundColorSpan(getColorOfMaterialColorPrimary()),
|
||||
0, spannableSummary.length(), 0);
|
||||
return spannableSummary;
|
||||
}
|
||||
|
||||
private int getColorOfColorAccentPrimaryVariant() {
|
||||
private int getColorOfMaterialColorPrimary() {
|
||||
return Utils.getColorAttrDefaultColor(
|
||||
mContext, com.android.internal.R.attr.materialColorPrimaryContainer);
|
||||
mContext, com.android.internal.R.attr.materialColorPrimary);
|
||||
}
|
||||
|
||||
private static boolean isCtrl(int keyCode) {
|
||||
|
Reference in New Issue
Block a user