Migrate materialColor* attributes into colors
TLDR: * This change should not break anything or change any color. * Simplifies theming and styling while improving developer experience. * With this developers can often skip styling for color entirely, while ensuring consistency and preventing accidental overrides. Bug: 374273611 Test: presubmit Flag: EXEMPT bugfix Change-Id: Id19038078e83c73847b1a7c686c3a3df1ecccac2
This commit is contained in:
1 parent
ad43c3dbc9
commit
bc02103a6a
87 files changed
+245
-314
No files matched your search
@@ -31,7 +31,6 @@ import androidx.core.graphics.ColorUtils;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.util.Themes;
|
||||
|
||||
/**
|
||||
* A TextView that is used to display the letter list in the fast scroller.
|
||||
@@ -56,7 +55,7 @@ public class LetterListTextView extends TextView {
|
||||
mLetterBackground = context.getDrawable(R.drawable.bg_letter_list_text);
|
||||
mLetterListTextWidthAndHeight = context.getResources().getDimensionPixelSize(
|
||||
R.dimen.fastscroll_list_letter_size);
|
||||
mTextColor = Themes.getAttrColor(context, R.attr.materialColorOnSurface);
|
||||
mTextColor = context.getColor(R.color.materialColorOnSurface);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user