Skip to content

Commit 179f91a

Browse files
committed
Lighter colors for elevated elements
1 parent 350c450 commit 179f91a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/flyer_chat_reactions/lib/src/widgets/reactions_dialog.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import '../utils/typedef.dart';
1414
typedef _LocalTheme =
1515
({
1616
Color onSurface,
17-
Color surface,
17+
Color surfaceContainer,
1818
Color primary,
1919
BorderRadiusGeometry shape,
2020
});
@@ -109,7 +109,7 @@ class _ReactionsDialogWidgetState extends State<ReactionsDialogWidget> {
109109
final theme = context.select(
110110
(ChatTheme t) => (
111111
onSurface: t.colors.onSurface,
112-
surface: t.colors.surface,
112+
surfaceContainer: t.colors.surfaceContainerHigh,
113113
primary: t.colors.primary,
114114
shape: t.shape,
115115
),
@@ -146,7 +146,7 @@ class _ReactionsDialogWidgetState extends State<ReactionsDialogWidget> {
146146
MediaQuery.of(context).size.width *
147147
(widget.menuItemsWidthRatio ?? 0.45),
148148
decoration: BoxDecoration(
149-
color: widget.menuItemBackgroundColor ?? theme.surface,
149+
color: widget.menuItemBackgroundColor ?? theme.surfaceContainer,
150150
borderRadius: theme.shape,
151151
),
152152
child: Column(
@@ -248,7 +248,8 @@ class _ReactionsDialogWidgetState extends State<ReactionsDialogWidget> {
248248
child: Container(
249249
padding: const EdgeInsets.all(5),
250250
decoration: BoxDecoration(
251-
color: widget.reactionsPickerBackgroundColor ?? theme.surface,
251+
color:
252+
widget.reactionsPickerBackgroundColor ?? theme.surfaceContainer,
252253
borderRadius: theme.shape,
253254
),
254255
child: SingleChildScrollView(

packages/flyer_chat_reactions/lib/src/widgets/reactions_list.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class _ReactionsListState extends State<ReactionsList> {
8787
Widget build(BuildContext context) {
8888
final theme = context.select(
8989
(ChatTheme t) => (
90-
backgroundColor: widget.styleConfig.backgroundColor ?? t.colors.surface,
90+
backgroundColor:
91+
widget.styleConfig.backgroundColor ?? t.colors.surfaceContainerHigh,
9192
selectedFilterChipColor:
9293
widget.styleConfig.filterChipsSelectedColor ??
9394
t.colors.onPrimary.withValues(alpha: 0.2),

0 commit comments

Comments
 (0)