Glass design: frosted panes over a soft gradient (WIP)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 23:21:05 +00:00
parent 9436067bf2
commit 8ca3d3e467
37 changed files with 1901 additions and 67 deletions
@@ -36,9 +36,12 @@ class ChatStackDisc extends StatelessWidget {
// A raised dark design lifts the disc a tone, as Material's dark
// elevation does, so the pile's layers read where a shadow cannot.
final dark = Theme.of(context).brightness == Brightness.dark;
final base = tokens.panelFill(
scheme,
dark ? scheme.surfaceContainerHighest : scheme.surface,
// Opaque under a glass design too, whose containers are translucent.
final base = tokens.solidFill(
tokens.panelFill(
scheme,
dark ? scheme.surfaceContainerHighest : scheme.surface,
),
);
final ring = this.ring;
final shape = chatStackShape(tokens);
@@ -112,7 +115,9 @@ class ChatStackLabel extends StatelessWidget {
final tokens = AppDesignTokens.of(context);
final theme = Theme.of(context);
final scheme = theme.colorScheme;
final base = tokens.panelFill(scheme, scheme.surfaceContainerHigh);
final base = tokens.solidFill(
tokens.panelFill(scheme, scheme.surfaceContainerHigh),
);
final color = this.color;
final dark = theme.brightness == Brightness.dark;
final fill = color == null