Closed rydmike closed 1 year ago
Patch coverage: 100.00
% and no project coverage change.
Comparison is base (
11add1f
) 100.00% compared to head (8ee14e5
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
1.4.0
July 2, 2023
NEW FEATURES
paletteType
ofFlexPaletteType
and set it toFlexPaletteType.extended
, by default its valuesFlexPaletteType.common
resulting in the 15 tones[0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100]
being produced as before.[0, 4, 5, 6, 10, 12, 17, 20, 22, 30, 40, 50, 60, 70, 80, 87, 90, 92, 94, 95, 96, 97, 98, 99, 100]
.paletteType
ofFlexPaletteType
are:FlexTonalPalette.of
FlexTonalPalette.fromList
FlexCorePalette.of
FlexCorePalette.fromHueChroma
FlexCorePalette.fromList
FlexCorePalette.fromSeeds
FlexTones
ColorScheme
, but since they are in the Material 3 spec, they will arrive at some later point.FlexTonalPalette
, like MCUTonalPalette
, caps chroma for tones higher than or equal to 90, to maximum chroma value of 40. InFlexTonalPalette
this still applies when usingFlexPaletteType.common
, when you use theFlexPaletteType.extended
, there is no chroma max cap on high tones, it uses fidelity mode for high tones. When using typeFlexPaletteType.common
the chroma of high tones (>= 90), is limited to maximum 40. This keeps the chromacity of tones 90 to 100, lower than 40. If the source uses has more chromacity than 40, there may be a sudden jump in chroma reduction at tone 90. This is the standard behavior for the original Material-3 tonal palette computation. TheFlexPaletteType.common
type is intended to be used when there is a need to follow strict M3's original palette design.FlexPaletteType.extended
type tones, there are not only the new tones, but the chroma limit of tones >= 90 is also removed. This increases fidelity of higher tone when high chromacity is used.FlexTones
s,candyPop
andchroma
, they use the newFlexPaletteType.extended
tonal palette.FlexTones
modifiersurfacesUseBW()
. It can be used as a modifier to force anyFlexTones
seed strategy to use tone 100 (white) or tone 0 (black) asbackground
andsurface
colors, depending on if they are dark or lightCHANGE
primaryContainerTone
andsecondaryContainerTone
for light modeFlexTones.highContrast
andFlexTones.ultraContrast
were both changed from 95 to 90. This produces brighter and more punchy themes for these two high-contrast themes in light mode.CHORE
EXAMPLE