Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521)
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:) 
This commit is contained in:
@@ -25,7 +25,7 @@ void main() {
|
||||
TextButton thirdButton = findButton('Orange');
|
||||
|
||||
const Color selectedColor = Color(0xffef9a9a);
|
||||
const Color unselectedColor = Color(0x00fffbfe);
|
||||
const Color unselectedColor = Color(0x00fef7ff);
|
||||
|
||||
/// First button is selected.
|
||||
expect(firstButton.style!.backgroundColor!.resolve(enabled), selectedColor);
|
||||
@@ -63,7 +63,7 @@ void main() {
|
||||
TextButton thirdButton = findButton('Carrots');
|
||||
|
||||
const Color selectedColor = Color(0xffa5d6a7);
|
||||
const Color unselectedColor = Color(0x00fffbfe);
|
||||
const Color unselectedColor = Color(0x00fef7ff);
|
||||
|
||||
/// Second button is selected.
|
||||
expect(firstButton.style!.backgroundColor!.resolve(enabled), unselectedColor);
|
||||
@@ -102,7 +102,7 @@ void main() {
|
||||
TextButton thirdButton = findButton(Icons.ac_unit);
|
||||
|
||||
const Color selectedColor = Color(0xff90caf9);
|
||||
const Color unselectedColor = Color(0x00fffbfe);
|
||||
const Color unselectedColor = Color(0x00fef7ff);
|
||||
|
||||
|
||||
/// Third button is selected.
|
||||
|
||||
Reference in New Issue
Block a user