mirror of
https://github.com/flutter/flutter.git
synced 2026-01-29 23:02:44 +08:00
This PR is to * Update the Material Design tokens to 4.0.0 Since the last token update(#145356), only `Slider` tokens have been updated. The M3 `Slider` has significant visual changes, compared to the original M3 Slider, so a separate PR would be needed. I commented out `SliderTemplate` and added a TODO when we are ready to add new widgets again.
30 lines
1.7 KiB
JSON
30 lines
1.7 KiB
JSON
{
|
|
"version": "4_0_0",
|
|
|
|
"md.comp.text-button.container.height": 40.0,
|
|
"md.comp.text-button.container.shape": "md.sys.shape.corner.full",
|
|
"md.comp.text-button.disabled.label-text.color": "onSurface",
|
|
"md.comp.text-button.disabled.label-text.opacity": 0.38,
|
|
"md.comp.text-button.focus.indicator.color": "secondary",
|
|
"md.comp.text-button.focus.indicator.outline.offset": "md.sys.state.focus-indicator.outer-offset",
|
|
"md.comp.text-button.focus.indicator.thickness": "md.sys.state.focus-indicator.thickness",
|
|
"md.comp.text-button.focus.label-text.color": "primary",
|
|
"md.comp.text-button.focus.state-layer.color": "primary",
|
|
"md.comp.text-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity",
|
|
"md.comp.text-button.hover.label-text.color": "primary",
|
|
"md.comp.text-button.hover.state-layer.color": "primary",
|
|
"md.comp.text-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity",
|
|
"md.comp.text-button.label-text.color": "primary",
|
|
"md.comp.text-button.label-text.text-style": "labelLarge",
|
|
"md.comp.text-button.pressed.label-text.color": "primary",
|
|
"md.comp.text-button.pressed.state-layer.color": "primary",
|
|
"md.comp.text-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity",
|
|
"md.comp.text-button.with-icon.disabled.icon.color": "onSurface",
|
|
"md.comp.text-button.with-icon.disabled.icon.opacity": 0.38,
|
|
"md.comp.text-button.with-icon.focus.icon.color": "primary",
|
|
"md.comp.text-button.with-icon.hover.icon.color": "primary",
|
|
"md.comp.text-button.with-icon.icon.color": "primary",
|
|
"md.comp.text-button.with-icon.icon.size": 18.0,
|
|
"md.comp.text-button.with-icon.pressed.icon.color": "primary"
|
|
}
|