claymorphismDisplayFaceFor function
DisplayFace?
claymorphismDisplayFaceFor(
- ThemeSpec spec, {
- GlassRendering rendering = GlassRendering.standard,
The display face for a ThemeFamily.claymorphism spec: the pillow card in the surface colour (a foreign surface darker than the body is drawn as a pillow too; the recessed tray is retired).
Implementation
DisplayFace? claymorphismDisplayFaceFor(
ThemeSpec spec, {
GlassRendering rendering = GlassRendering.standard,
}) {
final p = spec.palette;
final surface = p.surface | 0xFF000000;
return ClayDisplayFace(
panel: Color(surface),
shade: Color(clayInnerShade(surface, clayPanelShadePermille)),
highlight: Color(p.highlight),
shadow: Color(p.shadow),
weight: spec.type.displayWeight,
lite: rendering.tier == EffectsTier.lite,
);
}