[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
@@ -139,7 +139,7 @@ public class ModifierKeysPickerDialogFragment extends DialogFragment {
|
||||
} else {
|
||||
itemSummary = new SpannableString(selectedItem);
|
||||
itemSummary.setSpan(
|
||||
new ForegroundColorSpan(getColorOfColorAccentPrimaryVariant()),
|
||||
new ForegroundColorSpan(getColorOfMaterialColorPrimary()),
|
||||
0, itemSummary.length(), 0);
|
||||
int[] fromKeys = mRemappableKeyMap.get(mKeyDefaultName);
|
||||
int[] toKeys = mRemappableKeyMap.get(selectedItem);
|
||||
@@ -222,7 +222,7 @@ public class ModifierKeysPickerDialogFragment extends DialogFragment {
|
||||
textView.setText(mList.get(i));
|
||||
if (mCurrentItem == i) {
|
||||
mKeyFocus = mList.get(i);
|
||||
textView.setTextColor(getColorOfColorAccentPrimaryVariant());
|
||||
textView.setTextColor(getColorOfMaterialColorPrimary());
|
||||
checkIcon.setImageAlpha(255);
|
||||
view.setBackground(
|
||||
mActivity.getDrawable(R.drawable.modifier_key_lisetview_background));
|
||||
@@ -251,8 +251,8 @@ public class ModifierKeysPickerDialogFragment extends DialogFragment {
|
||||
return Utils.getColorAttrDefaultColor(mActivity, android.R.attr.textColorSecondary);
|
||||
}
|
||||
|
||||
private int getColorOfColorAccentPrimaryVariant() {
|
||||
private int getColorOfMaterialColorPrimary() {
|
||||
return Utils.getColorAttrDefaultColor(
|
||||
mActivity, com.android.internal.R.attr.materialColorPrimaryContainer);
|
||||
mActivity, com.android.internal.R.attr.materialColorPrimary);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user