|
27 | 27 | <item name="badgeGravity">TOP_END</item> |
28 | 28 | <item name="offsetAlignmentMode">legacy</item> |
29 | 29 | <item name="badgeTextAppearance">@style/TextAppearance.MaterialComponents.Badge</item> |
30 | | - <item name="badgeShapeAppearance">@style/ShapeAppearance.Material3.Corner.Full</item> |
31 | | - <item name="badgeWithTextShapeAppearance">@style/ShapeAppearance.Material3.Corner.Full</item> |
| 30 | + <item name="badgeShapeAppearance">@style/ShapeAppearance.MaterialComponents.Badge</item> |
| 31 | + <item name="badgeWithTextShapeAppearance">@style/ShapeAppearance.MaterialComponents.Badge</item> |
32 | 32 | </style> |
33 | 33 |
|
34 | 34 | <style name="Base.TextAppearance.MaterialComponents.Badge" parent="TextAppearance.AppCompat"> |
|
44 | 44 |
|
45 | 45 | <style name="TextAppearance.MaterialComponents.Badge" parent="Base.TextAppearance.MaterialComponents.Badge"/> |
46 | 46 |
|
| 47 | + <style name="ShapeAppearance.MaterialComponents.Badge"> |
| 48 | + <item name="cornerFamily">?attr/shapeCornerFamily</item> |
| 49 | + <item name="cornerSize">50%</item> |
| 50 | + </style> |
| 51 | + |
47 | 52 | <!-- M3 Badge --> |
48 | 53 | <style name="Widget.Material3.Badge" parent="Widget.MaterialComponents.Badge"> |
49 | 54 | <item name="backgroundColor">@macro/m3_comp_badge_color</item> |
50 | | - <item name="badgeTextColor">?attr/colorOnError</item> |
| 55 | + <item name="badgeTextColor">@macro/m3_comp_badge_large_label_text_color</item> |
51 | 56 | <item name="offsetAlignmentMode">edge</item> |
52 | 57 | <!-- Badge "dot" without text --> |
53 | 58 | <item name="horizontalOffset">@dimen/m3_badge_offset</item> |
54 | 59 | <item name="verticalOffset">@dimen/m3_badge_offset</item> |
55 | 60 | <item name="badgeWidth">@dimen/m3_badge_size</item> |
56 | 61 | <item name="badgeHeight">@dimen/m3_badge_size</item> |
| 62 | + <item name="badgeShapeAppearance">@style/ShapeAppearance.M3.Comp.Badge.Shape</item> |
57 | 63 |
|
58 | 64 | <!-- Badge with text --> |
59 | 65 | <item name="badgeWithTextWidth">@dimen/m3_badge_with_text_size</item> |
60 | 66 | <item name="badgeWithTextHeight">@dimen/m3_badge_with_text_size</item> |
61 | 67 | <item name="horizontalOffsetWithText">@dimen/m3_badge_with_text_offset</item> |
62 | 68 | <item name="verticalOffsetWithText">@dimen/m3_badge_with_text_offset</item> |
63 | | - <item name="badgeTextAppearance">?attr/textAppearanceLabelSmall</item> |
| 69 | + <item name="badgeTextAppearance">@macro/m3_comp_badge_large_label_text_type</item> |
| 70 | + <item name="badgeWithTextShapeAppearance">@style/ShapeAppearance.M3.Comp.Badge.Shape</item> |
64 | 71 | </style> |
65 | 72 |
|
66 | 73 | </resources> |
0 commit comments