@@ -49,74 +49,46 @@ contrast levels. The functionality of `Scheme` is fully replicated by
49
49
50
50
| Instead of … | Use … |
51
51
| ---------------------------- | ----------------------------------- |
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)` :
52
+ | ` Scheme.light(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
53
+ | ` Scheme.dark(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
54
+ | ` Scheme.lightContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
55
+ | ` Scheme.darkContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
64
56
65
57
###### Java
66
58
67
59
| Instead of … | Use … |
68
60
| ---------------------------- | --------------------------------------------- |
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)` :
61
+ | ` Scheme.light(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), false, 0.0) ` |
62
+ | ` Scheme.dark(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), true, 0.0) ` |
63
+ | ` Scheme.lightContent(color) ` | ` new SchemeContent(Hct.fromInt(color), false, 0.0) ` |
64
+ | ` Scheme.darkContent(color) ` | ` new SchemeContent(Hct.fromInt(color), true, 0.0) ` |
77
65
78
66
###### TypeScript
79
67
80
68
| Instead of … | Use … |
81
69
| ---------------------------- | --------------------------------------------- |
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)` :
70
+ | ` Scheme.light(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), false, 0.0) ` |
71
+ | ` Scheme.dark(color) ` | ` new SchemeTonalSpot(Hct.fromInt(color), true, 0.0) ` |
72
+ | ` Scheme.lightContent(color) ` | ` new SchemeContent(Hct.fromInt(color), false, 0.0) ` |
73
+ | ` Scheme.darkContent(color) ` | ` new SchemeContent(Hct.fromInt(color), true, 0.0) ` |
90
74
91
75
###### C++
92
76
93
77
| Instead of … | Use … |
94
78
| ---------------------------------------- | --------------------------------- |
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)` :
79
+ | ` MaterialLightColorScheme(color) ` | ` SchemeTonalSpot(Hct(color), false, 0.0) ` |
80
+ | ` MaterialDarkColorScheme(color) ` | ` SchemeTonalSpot(Hct(color), true, 0.0) ` |
81
+ | ` MaterialLightContentColorScheme(color) ` | ` SchemeContent(Hct(color), false, 0.0) ` |
82
+ | ` MaterialDarkContentColorScheme(color) ` | ` SchemeContent(Hct(color), true, 0.0) ` |
103
83
104
84
###### Swift
105
85
106
86
| Instead of … | Use … |
107
87
| ---------------------------- | ----------------------------------- |
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)` :
88
+ | ` Scheme.light(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
89
+ | ` Scheme.dark(color) ` | ` SchemeTonalSpot(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
90
+ | ` Scheme.lightContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: false, contrastLevel: 0.0) ` |
91
+ | ` Scheme.darkContent(color) ` | ` SchemeContent(sourceColorHct: Hct.fromInt(color), isDark: true, contrastLevel: 0.0) ` |
120
92
121
93
</section >
122
94
0 commit comments