@@ -45,78 +45,54 @@ contrast levels. The functionality of `Scheme` is fully replicated by
4545
4646<section >
4747
48+
49+
4850###### Dart
4951
5052| Instead of … | Use … |
5153| ---------------------------- | ----------------------------------- |
52- | ` Scheme.light(color) ` | `SchemeTonalSpot(sourceColorHct: |
53- : : Hct.fromInt(color), isDark\: false, :
54- : : contrastLevel\: 0.0)` :
55- | ` Scheme.dark(color) ` | `SchemeTonalSpot(sourceColorHct: |
56- : : Hct.fromInt(color), isDark\: true, :
57- : : contrastLevel\: 0.0)` :
58- | ` Scheme.lightContent(color) ` | `SchemeContent(sourceColorHct: |
59- : : Hct.fromInt(color), isDark\: false, :
60- : : contrastLevel\: 0.0)` :
61- | ` Scheme.darkContent(color) ` | `SchemeContent(sourceColorHct: |
62- : : Hct.fromInt(color), isDark\: true, :
63- : : contrastLevel\: 0.0)` :
54+ | ` Scheme.light(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
55+ | ` Scheme.dark(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
56+ | ` Scheme.lightContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
57+ | ` Scheme.darkContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
6458
6559###### Java
6660
6761| Instead of … | Use … |
6862| ---------------------------- | --------------------------------------------- |
69- | ` Scheme.light(color) ` | `new SchemeTonalSpot(Hct.fromInt(color), |
70- : : false, 0.0)` :
71- | ` Scheme.dark(color) ` | `new SchemeTonalSpot(Hct.fromInt(color), |
72- : : true, 0.0)` :
73- | ` Scheme.lightContent(color) ` | `new SchemeContent(Hct.fromInt(color), false, |
74- : : 0.0)` :
75- | ` Scheme.darkContent(color) ` | `new SchemeContent(Hct.fromInt(color), true, |
76- : : 0.0)` :
63+ | ` Scheme.light(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), false, 0.0) ` |
64+ | ` Scheme.dark(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), true, 0.0) ` |
65+ | ` Scheme.lightContent(color) ` | ` new SchemeContent(Hct.fromInt(color), false, 0.0) ` |
66+ | ` Scheme.darkContent(color) ` | ` new SchemeContent(Hct.fromInt(color), true, 0.0) ` |
7767
7868###### TypeScript
7969
8070| Instead of … | Use … |
8171| ---------------------------- | --------------------------------------------- |
82- | ` Scheme.light(color) ` | `new SchemeTonalSpot(Hct.fromInt(color), |
83- : : false, 0.0)` :
84- | ` Scheme.dark(color) ` | `new SchemeTonalSpot(Hct.fromInt(color), |
85- : : true, 0.0)` :
86- | ` Scheme.lightContent(color) ` | `new SchemeContent(Hct.fromInt(color), false, |
87- : : 0.0)` :
88- | ` Scheme.darkContent(color) ` | `new SchemeContent(Hct.fromInt(color), true, |
89- : : 0.0)` :
72+ | ` Scheme.light(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), false, 0.0) ` |
73+ | ` Scheme.dark(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), true, 0.0) ` |
74+ | ` Scheme.lightContent(color) ` | ` new SchemeContent(Hct.fromInt(color), false, 0.0) ` |
75+ | ` Scheme.darkContent(color) ` | ` new SchemeContent(Hct.fromInt(color), true, 0.0) ` |
9076
9177###### C++
9278
9379| Instead of … | Use … |
9480| ---------------------------------------- | --------------------------------- |
95- | ` MaterialLightColorScheme(color) ` | `SchemeTonalSpot(Hct(color), |
96- : : false, 0.0)` :
97- | ` MaterialDarkColorScheme(color) ` | `SchemeTonalSpot(Hct(color), |
98- : : true, 0.0)` :
99- | ` MaterialLightContentColorScheme(color) ` | `SchemeContent(Hct(color), false, |
100- : : 0.0)` :
101- | ` MaterialDarkContentColorScheme(color) ` | `SchemeContent(Hct(color), true, |
102- : : 0.0)` :
81+ | ` MaterialLightColorScheme(color) ` | ` SchemeTonalSpot(Hct(color), false, 0.0) ` |
82+ | ` MaterialDarkColorScheme(color) ` | ` SchemeTonalSpot(Hct(color), true, 0.0) ` |
83+ | ` MaterialLightContentColorScheme(color) ` | ` SchemeContent(Hct(color), false, 0.0) ` |
84+ | ` MaterialDarkContentColorScheme(color) ` | ` SchemeContent(Hct(color), true, 0.0) ` |
10385
10486###### Swift
10587
10688| Instead of … | Use … |
10789| ---------------------------- | ----------------------------------- |
108- | ` Scheme.light(color) ` | `SchemeTonalSpot(sourceColorHct: |
109- : : Hct.fromInt(color), isDark\: false, :
110- : : contrastLevel\: 0.0)` :
111- | ` Scheme.dark(color) ` | `SchemeTonalSpot(sourceColorHct: |
112- : : Hct.fromInt(color), isDark\: true, :
113- : : contrastLevel\: 0.0)` :
114- | ` Scheme.lightContent(color) ` | `SchemeContent(sourceColorHct: |
115- : : Hct.fromInt(color), isDark\: false, :
116- : : contrastLevel\: 0.0)` :
117- | ` Scheme.darkContent(color) ` | `SchemeContent(sourceColorHct: |
118- : : Hct.fromInt(color), isDark\: true, :
119- : : contrastLevel\: 0.0)` :
90+ | ` Scheme.light(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
91+ | ` Scheme.dark(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
92+ | ` Scheme.lightContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
93+ | ` Scheme.darkContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
94+
95+
12096
12197</section >
12298
0 commit comments