mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This PR is to introduce 19 new color roles and deprecate 3 color roles in `ColorScheme`. **Tone-based surface colors** (7 colors): * surfaceBright * surfaceDim * surfaceContainer * surfaceContainerLowest * surfaceContainerLow * surfaceContainerHigh * surfaceContainerHighest **Accent color add-ons** (12 colors): * primary/secondary/tertiary-Fixed * primary/secondary/tertiary-FixedDim * onPrimary/onSecondary/onTertiary-Fixed * onPrimary/onSecondary/onTertiary-FixedVariant **Deprecated colors**: * background -> replaced with surface * onBackground -> replaced with onSurface * surfaceVariant -> replaced with surfaceContainerHighest Please checkout this [design doc](https://docs.google.com/document/d/1ODqivpM_6c490T4j5XIiWCDKo5YqHy78YEFqDm4S8h4/edit?usp=sharing) for more information:) 
9 lines
229 B
JSON
9 lines
229 B
JSON
{
|
|
"version": "v0_206",
|
|
|
|
"md.sys.state.dragged.state-layer-opacity": 0.16,
|
|
"md.sys.state.focus.state-layer-opacity": 0.1,
|
|
"md.sys.state.hover.state-layer-opacity": 0.08,
|
|
"md.sys.state.pressed.state-layer-opacity": 0.1
|
|
}
|