-
@Immutable() public final class StreamDesign.ColorScaleAn 11-stop color ramp for the brand (accent) palette.
Light themes use the natural order (s50 lightest, s900 darkest); dark themes invert the mapping so perceived intensity stays consistent on dark backgrounds.
Re-brand the whole UI from one color:
val purple = StreamDesign.ColorScale.from(brandColor = Color(0xFF6200EE)) VideoTheme(colors = StreamDesign.Colors.default(brand = purple))
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStreamDesign.ColorScale.CompanionFactories for the default brand scales and for a scale derived from one color.
-
Field Summary
Fields Modifier and Type Field Description private final Colors50private final Colors100private final Colors150private final Colors200private final Colors300private final Colors400private final Colors500private final Colors600private final Colors700private final Colors800private final Colors900
-
Constructor Summary
Constructors Constructor Description StreamDesign.ColorScale(Color s50, Color s100, Color s150, Color s200, Color s300, Color s400, Color s500, Color s600, Color s700, Color s800, Color s900)
-
Method Summary
Modifier and Type Method Description final ColorgetS50()final ColorgetS100()final ColorgetS150()final ColorgetS200()final ColorgetS300()final ColorgetS400()final ColorgetS500()final ColorgetS600()final ColorgetS700()final ColorgetS800()final ColorgetS900()final StreamDesign.ColorScaleinverted()Returns a new scale with the stops mirrored around the center (s50 with s900, s100 with s800, and so on). -
-
Constructor Detail
-
StreamDesign.ColorScale
StreamDesign.ColorScale(Color s50, Color s100, Color s150, Color s200, Color s300, Color s400, Color s500, Color s600, Color s700, Color s800, Color s900)
- Parameters:
s50- The lightest stop in the natural order.s100- The 100 stop.s150- The 150 stop.s200- The 200 stop.s300- The 300 stop.s400- The 400 stop.s500- The base stop.s600- The 600 stop.s700- The 700 stop.s800- The 800 stop.s900- The darkest stop in the natural order.
-
-
Method Detail
-
getS50
final Color getS50()
-
getS100
final Color getS100()
-
getS150
final Color getS150()
-
getS200
final Color getS200()
-
getS300
final Color getS300()
-
getS400
final Color getS400()
-
getS500
final Color getS500()
-
getS600
final Color getS600()
-
getS700
final Color getS700()
-
getS800
final Color getS800()
-
getS900
final Color getS900()
-
inverted
final StreamDesign.ColorScale inverted()
Returns a new scale with the stops mirrored around the center (s50 with s900, s100 with s800, and so on). Use it to derive a dark theme counterpart from a light brand ramp.
-
-
-
-