mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-11-04 12:03:28 +00:00 
			
		
		
		
	chore: fix ui color issue after merge main (#5464)
This commit is contained in:
		
							parent
							
								
									1757570337
								
							
						
					
					
						commit
						1cecfae6f4
					
				@ -48,9 +48,8 @@ class ChatAIMessageBubble extends StatelessWidget {
 | 
				
			|||||||
            mainAxisSize: MainAxisSize.min,
 | 
					            mainAxisSize: MainAxisSize.min,
 | 
				
			||||||
            crossAxisAlignment: CrossAxisAlignment.start,
 | 
					            crossAxisAlignment: CrossAxisAlignment.start,
 | 
				
			||||||
            children: [
 | 
					            children: [
 | 
				
			||||||
              ChatBorderedCircleAvatar(
 | 
					              const ChatBorderedCircleAvatar(
 | 
				
			||||||
                backgroundColor: Theme.of(context).colorScheme.secondary,
 | 
					                child: FlowySvg(
 | 
				
			||||||
                child: const FlowySvg(
 | 
					 | 
				
			||||||
                  FlowySvgs.flowy_ai_chat_logo_s,
 | 
					                  FlowySvgs.flowy_ai_chat_logo_s,
 | 
				
			||||||
                  size: Size.square(24),
 | 
					                  size: Size.square(24),
 | 
				
			||||||
                ),
 | 
					                ),
 | 
				
			||||||
 | 
				
			|||||||
@ -24,13 +24,11 @@ class ChatBorderedCircleAvatar extends StatelessWidget {
 | 
				
			|||||||
    super.key,
 | 
					    super.key,
 | 
				
			||||||
    this.border = const BorderSide(),
 | 
					    this.border = const BorderSide(),
 | 
				
			||||||
    this.backgroundImage,
 | 
					    this.backgroundImage,
 | 
				
			||||||
    this.backgroundColor,
 | 
					 | 
				
			||||||
    this.child,
 | 
					    this.child,
 | 
				
			||||||
  });
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  final BorderSide border;
 | 
					  final BorderSide border;
 | 
				
			||||||
  final ImageProvider<Object>? backgroundImage;
 | 
					  final ImageProvider<Object>? backgroundImage;
 | 
				
			||||||
  final Color? backgroundColor;
 | 
					 | 
				
			||||||
  final Widget? child;
 | 
					  final Widget? child;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
@ -41,7 +39,8 @@ class ChatBorderedCircleAvatar extends StatelessWidget {
 | 
				
			|||||||
        constraints: const BoxConstraints.expand(),
 | 
					        constraints: const BoxConstraints.expand(),
 | 
				
			||||||
        child: CircleAvatar(
 | 
					        child: CircleAvatar(
 | 
				
			||||||
          backgroundImage: backgroundImage,
 | 
					          backgroundImage: backgroundImage,
 | 
				
			||||||
          backgroundColor: backgroundColor,
 | 
					          backgroundColor:
 | 
				
			||||||
 | 
					              Theme.of(context).colorScheme.surfaceContainerHighest,
 | 
				
			||||||
          child: child,
 | 
					          child: child,
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
@ -118,7 +117,7 @@ class ChatUserAvatar extends StatelessWidget {
 | 
				
			|||||||
          shape: BoxShape.circle,
 | 
					          shape: BoxShape.circle,
 | 
				
			||||||
          border: isHovering
 | 
					          border: isHovering
 | 
				
			||||||
              ? Border.all(
 | 
					              ? Border.all(
 | 
				
			||||||
                  color: Theme.of(context).colorScheme.primary,
 | 
					                  color: Theme.of(context).colorScheme.secondary,
 | 
				
			||||||
                  width: 4,
 | 
					                  width: 4,
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
              : null,
 | 
					              : null,
 | 
				
			||||||
 | 
				
			|||||||
@ -269,7 +269,8 @@ class SendButton extends StatelessWidget {
 | 
				
			|||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
    return FlowyIconButton(
 | 
					    return FlowyIconButton(
 | 
				
			||||||
      width: 36,
 | 
					      width: 36,
 | 
				
			||||||
      fillColor: Theme.of(context).colorScheme.secondary,
 | 
					      fillColor: AFThemeExtension.of(context).lightGreyHover,
 | 
				
			||||||
 | 
					      hoverColor: AFThemeExtension.of(context).lightGreyHover,
 | 
				
			||||||
      radius: BorderRadius.circular(18),
 | 
					      radius: BorderRadius.circular(18),
 | 
				
			||||||
      icon: FlowySvg(
 | 
					      icon: FlowySvg(
 | 
				
			||||||
        FlowySvgs.send_s,
 | 
					        FlowySvgs.send_s,
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,8 @@ class ChatUserMessageBubble extends StatelessWidget {
 | 
				
			|||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
    const borderRadius = BorderRadius.all(Radius.circular(6));
 | 
					    const borderRadius = BorderRadius.all(Radius.circular(6));
 | 
				
			||||||
    final backgroundColor = Theme.of(context).colorScheme.secondary;
 | 
					    final backgroundColor =
 | 
				
			||||||
 | 
					        Theme.of(context).colorScheme.surfaceContainerHighest;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return BlocProvider(
 | 
					    return BlocProvider(
 | 
				
			||||||
      create: (context) => ChatUserMessageBloc(message: message),
 | 
					      create: (context) => ChatUserMessageBloc(message: message),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user