chore: fix ui color issue after merge main (#5464)

This commit is contained in:
Nathan.fooo 2024-06-04 17:12:49 +08:00 committed by GitHub
parent 1757570337
commit 1cecfae6f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View File

@ -48,9 +48,8 @@ class ChatAIMessageBubble extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ChatBorderedCircleAvatar(
backgroundColor: Theme.of(context).colorScheme.secondary,
child: const FlowySvg(
const ChatBorderedCircleAvatar(
child: FlowySvg(
FlowySvgs.flowy_ai_chat_logo_s,
size: Size.square(24),
),

View File

@ -24,13 +24,11 @@ class ChatBorderedCircleAvatar extends StatelessWidget {
super.key,
this.border = const BorderSide(),
this.backgroundImage,
this.backgroundColor,
this.child,
});
final BorderSide border;
final ImageProvider<Object>? backgroundImage;
final Color? backgroundColor;
final Widget? child;
@override
@ -41,7 +39,8 @@ class ChatBorderedCircleAvatar extends StatelessWidget {
constraints: const BoxConstraints.expand(),
child: CircleAvatar(
backgroundImage: backgroundImage,
backgroundColor: backgroundColor,
backgroundColor:
Theme.of(context).colorScheme.surfaceContainerHighest,
child: child,
),
),
@ -118,7 +117,7 @@ class ChatUserAvatar extends StatelessWidget {
shape: BoxShape.circle,
border: isHovering
? Border.all(
color: Theme.of(context).colorScheme.primary,
color: Theme.of(context).colorScheme.secondary,
width: 4,
)
: null,

View File

@ -269,7 +269,8 @@ class SendButton extends StatelessWidget {
Widget build(BuildContext context) {
return FlowyIconButton(
width: 36,
fillColor: Theme.of(context).colorScheme.secondary,
fillColor: AFThemeExtension.of(context).lightGreyHover,
hoverColor: AFThemeExtension.of(context).lightGreyHover,
radius: BorderRadius.circular(18),
icon: FlowySvg(
FlowySvgs.send_s,

View File

@ -25,7 +25,8 @@ class ChatUserMessageBubble extends StatelessWidget {
@override
Widget build(BuildContext context) {
const borderRadius = BorderRadius.all(Radius.circular(6));
final backgroundColor = Theme.of(context).colorScheme.secondary;
final backgroundColor =
Theme.of(context).colorScheme.surfaceContainerHighest;
return BlocProvider(
create: (context) => ChatUserMessageBloc(message: message),