Glass design: frosted panes over a soft gradient (WIP)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -177,12 +177,23 @@ class ChatCodeCopyRegion extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
);
|
||||
final glass = AppDesignTokens.of(context).glass;
|
||||
return DecoratedBox(
|
||||
position: DecorationPosition.foreground,
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(color: scheme.outlineVariant),
|
||||
borderRadius: corners,
|
||||
),
|
||||
// A glass design's code block is an inset glass card: a light top
|
||||
// edge falling off into a faint hairline.
|
||||
decoration: glass == null
|
||||
? BoxDecoration(
|
||||
border: Border.all(color: scheme.outlineVariant),
|
||||
borderRadius: corners,
|
||||
)
|
||||
: ShapeDecoration(
|
||||
shape: GlassBorder(
|
||||
borderRadius: corners,
|
||||
highlight: glass.highlight,
|
||||
edge: glass.edge,
|
||||
),
|
||||
),
|
||||
child: ClipRRect(
|
||||
borderRadius: corners,
|
||||
child: ColoredBox(
|
||||
|
||||
Reference in New Issue
Block a user