Skip to content

Commit 6e0f5e1

Browse files
Material Engcopybara-github
authored andcommitted
Fix table issue in make_schemes.md
PiperOrigin-RevId: 576521676
1 parent d5ed01e commit 6e0f5e1

File tree

1 file changed

+20
-48
lines changed

1 file changed

+20
-48
lines changed

make_schemes.md

Lines changed: 20 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -49,74 +49,46 @@ contrast levels. The functionality of `Scheme` is fully replicated by
4949

5050
| Instead of … | Use … |
5151
| ---------------------------- | ----------------------------------- |
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)` |
6456

6557
###### Java
6658

6759
| Instead of … | Use … |
6860
| ---------------------------- | --------------------------------------------- |
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)` |
7765

7866
###### TypeScript
7967

8068
| Instead of … | Use … |
8169
| ---------------------------- | --------------------------------------------- |
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)` |
9074

9175
###### C++
9276

9377
| Instead of … | Use … |
9478
| ---------------------------------------- | --------------------------------- |
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)` |
10383

10484
###### Swift
10585

10686
| Instead of … | Use … |
10787
| ---------------------------- | ----------------------------------- |
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)` |
12092

12193
</section>
12294

0 commit comments

Comments
 (0)