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
@@ -37,7 +37,6 @@ import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.allapps.FloatingHeaderRow;
|
||||
import com.android.launcher3.allapps.FloatingHeaderView;
|
||||
import com.android.launcher3.util.Themes;
|
||||
|
||||
/**
|
||||
* A view which shows a horizontal divider
|
||||
@@ -85,9 +84,9 @@ public class AppsDividerView extends View implements FloatingHeaderRow {
|
||||
getResources().getDimensionPixelSize(R.dimen.all_apps_divider_height)
|
||||
};
|
||||
|
||||
mStrokeColor = Themes.getAttrColor(context, R.attr.materialColorOutlineVariant);
|
||||
mStrokeColor = context.getColor(R.color.materialColorOutlineVariant);
|
||||
|
||||
mAllAppsLabelTextColor = Themes.getAttrColor(context, R.attr.materialColorOnSurfaceVariant);
|
||||
mAllAppsLabelTextColor = context.getColor(R.color.materialColorOnSurfaceVariant);
|
||||
|
||||
mAccessibilityManager = AccessibilityManager.getInstance(context);
|
||||
setShowAllAppsLabel(!ALL_APPS_VISITED_COUNT.hasReachedMax(context));
|
||||
|
||||
Reference in new issue
Block a user