|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <!-- EVSuite - component styles. See DESIGN.md section Components. |
3 | | - Generated by tools/sync-tokens.mjs: identical in all five apps, edit only |
| 3 | + Generated by tools/sync-tokens.mjs: identical in all six apps, edit only |
4 | 4 | tools/tokens/styles.xml. The application theme itself stays in values/themes.xml, |
5 | 5 | because its name changes from one app to the next. |
6 | 6 |
|
|
24 | 24 | away. This is the minimum used everywhere in the suite, including where |
25 | 25 | Material offers something much smaller. --> |
26 | 26 | <style name="Widget.EV.Button" parent="Widget.Material3.Button"> |
| 27 | + <item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.EV.Button</item> |
27 | 28 | <item name="android:minHeight">@dimen/touch_target</item> |
28 | 29 | <item name="android:textSize">@dimen/text_body</item> |
29 | 30 | <item name="android:paddingStart">@dimen/spacing_lg</item> |
30 | 31 | <item name="android:paddingEnd">@dimen/spacing_lg</item> |
31 | 32 | </style> |
32 | 33 |
|
33 | 34 | <style name="Widget.EV.Button.Outlined" parent="Widget.Material3.Button.OutlinedButton"> |
| 35 | + <item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.EV.Button</item> |
34 | 36 | <item name="android:minHeight">@dimen/touch_target</item> |
35 | 37 | <item name="android:textSize">@dimen/text_body</item> |
36 | 38 | <item name="android:paddingStart">@dimen/spacing_lg</item> |
|
40 | 42 | <!-- Dialog buttons are the smallest thing in any app and the easiest to miss: |
41 | 43 | pulled up to the same target as the rest. --> |
42 | 44 | <style name="Widget.EV.DialogButton" parent="Widget.Material3.Button.TextButton.Dialog"> |
| 45 | + <item name="shapeAppearanceOverlay">@style/ShapeAppearanceOverlay.EV.Button</item> |
43 | 46 | <item name="android:minHeight">@dimen/touch_target</item> |
44 | 47 | <item name="android:minWidth">140dp</item> |
45 | 48 | <item name="android:textSize">@dimen/text_body</item> |
|
82 | 85 | <item name="android:textSize">@dimen/text_secondary</item> |
83 | 86 | <item name="android:textColor">@color/ev_text_secondary</item> |
84 | 87 | </style> |
| 88 | + |
| 89 | + <!-- The suite radius applied to buttons. Material3 buttons are fully rounded by |
| 90 | + default, which reads as a different design language from every card and dialog |
| 91 | + around them. This lived in EVSwipe only, in a generated file, so the first sync |
| 92 | + deleted it — one radius across the suite has to be a token, not a local edit. --> |
| 93 | + <style name="ShapeAppearanceOverlay.EV.Button" parent=""> |
| 94 | + <item name="cornerSize">@dimen/ev_corner</item> |
| 95 | + </style> |
85 | 96 | </resources> |
0 commit comments