@@ -45,78 +45,54 @@ contrast levels. The functionality of `Scheme` is fully replicated by
45
45
46
46
<section >
47
47
48
+
49
+
48
50
###### Dart
49
51
50
52
| Instead of … | Use … |
51
53
| ---------------------------- | ----------------------------------- |
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) ` |
64
58
65
59
###### Java
66
60
67
61
| Instead of … | Use … |
68
62
| ---------------------------- | --------------------------------------------- |
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) ` |
77
67
78
68
###### TypeScript
79
69
80
70
| Instead of … | Use … |
81
71
| ---------------------------- | --------------------------------------------- |
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) ` |
90
76
91
77
###### C++
92
78
93
79
| Instead of … | Use … |
94
80
| ---------------------------------------- | --------------------------------- |
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) ` |
103
85
104
86
###### Swift
105
87
106
88
| Instead of … | Use … |
107
89
| ---------------------------- | ----------------------------------- |
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
+
120
96
121
97
</section >
122
98
0 commit comments