mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	fix: restore banner theme issues (#3299)
This commit is contained in:
		
							parent
							
								
									16adacac38
								
							
						
					
					
						commit
						fe55452c79
					
				| @ -17,11 +17,12 @@ class DocumentBanner extends StatelessWidget { | |||||||
| 
 | 
 | ||||||
|   @override |   @override | ||||||
|   Widget build(BuildContext context) { |   Widget build(BuildContext context) { | ||||||
|  |     final colorScheme = Theme.of(context).colorScheme; | ||||||
|     return ConstrainedBox( |     return ConstrainedBox( | ||||||
|       constraints: const BoxConstraints(minHeight: 60), |       constraints: const BoxConstraints(minHeight: 60), | ||||||
|       child: Container( |       child: Container( | ||||||
|         width: double.infinity, |         width: double.infinity, | ||||||
|         color: Theme.of(context).colorScheme.primary, |         color: colorScheme.error, | ||||||
|         child: FittedBox( |         child: FittedBox( | ||||||
|           alignment: Alignment.center, |           alignment: Alignment.center, | ||||||
|           fit: BoxFit.scaleDown, |           fit: BoxFit.scaleDown, | ||||||
| @ -29,7 +30,8 @@ class DocumentBanner extends StatelessWidget { | |||||||
|             children: [ |             children: [ | ||||||
|               FlowyText.medium( |               FlowyText.medium( | ||||||
|                 LocaleKeys.deletePagePrompt_text.tr(), |                 LocaleKeys.deletePagePrompt_text.tr(), | ||||||
|                 color: Colors.white, |                 color: colorScheme.onError, | ||||||
|  |                 fontSize: 14, | ||||||
|               ), |               ), | ||||||
|               const HSpace(20), |               const HSpace(20), | ||||||
|               BaseStyledButton( |               BaseStyledButton( | ||||||
| @ -37,15 +39,14 @@ class DocumentBanner extends StatelessWidget { | |||||||
|                 minHeight: 40, |                 minHeight: 40, | ||||||
|                 contentPadding: EdgeInsets.zero, |                 contentPadding: EdgeInsets.zero, | ||||||
|                 bgColor: Colors.transparent, |                 bgColor: Colors.transparent, | ||||||
|                 hoverColor: Theme.of(context).colorScheme.primary, |  | ||||||
|                 highlightColor: Theme.of(context).colorScheme.primaryContainer, |                 highlightColor: Theme.of(context).colorScheme.primaryContainer, | ||||||
|                 outlineColor: Colors.white, |                 outlineColor: colorScheme.onError, | ||||||
|                 borderRadius: Corners.s8Border, |                 borderRadius: Corners.s8Border, | ||||||
|                 onPressed: onRestore, |                 onPressed: onRestore, | ||||||
|                 child: FlowyText.medium( |                 child: FlowyText.medium( | ||||||
|                   LocaleKeys.deletePagePrompt_restore.tr(), |                   LocaleKeys.deletePagePrompt_restore.tr(), | ||||||
|                   color: Theme.of(context).colorScheme.onPrimary, |                   color: colorScheme.onError, | ||||||
|                   fontSize: 14, |                   fontSize: 13, | ||||||
|                 ), |                 ), | ||||||
|               ), |               ), | ||||||
|               const HSpace(20), |               const HSpace(20), | ||||||
| @ -54,15 +55,14 @@ class DocumentBanner extends StatelessWidget { | |||||||
|                 minHeight: 40, |                 minHeight: 40, | ||||||
|                 contentPadding: EdgeInsets.zero, |                 contentPadding: EdgeInsets.zero, | ||||||
|                 bgColor: Colors.transparent, |                 bgColor: Colors.transparent, | ||||||
|                 hoverColor: Theme.of(context).colorScheme.primaryContainer, |  | ||||||
|                 highlightColor: Theme.of(context).colorScheme.primary, |                 highlightColor: Theme.of(context).colorScheme.primary, | ||||||
|                 outlineColor: Colors.white, |                 outlineColor: colorScheme.onError, | ||||||
|                 borderRadius: Corners.s8Border, |                 borderRadius: Corners.s8Border, | ||||||
|                 onPressed: onDelete, |                 onPressed: onDelete, | ||||||
|                 child: FlowyText.medium( |                 child: FlowyText.medium( | ||||||
|                   LocaleKeys.deletePagePrompt_deletePermanent.tr(), |                   LocaleKeys.deletePagePrompt_deletePermanent.tr(), | ||||||
|                   color: Theme.of(context).colorScheme.onPrimary, |                   color: colorScheme.onError, | ||||||
|                   fontSize: 14, |                   fontSize: 13, | ||||||
|                 ), |                 ), | ||||||
|               ), |               ), | ||||||
|             ], |             ], | ||||||
|  | |||||||
| @ -341,7 +341,7 @@ class AppearanceSettingsState with _$AppearanceSettingsState { | |||||||
|       onSurface: theme.hoverFG, |       onSurface: theme.hoverFG, | ||||||
|       // grey hover color |       // grey hover color | ||||||
|       inverseSurface: theme.hoverBG3, |       inverseSurface: theme.hoverBG3, | ||||||
|       onError: theme.shader7, |       onError: theme.onPrimary, | ||||||
|       error: theme.red, |       error: theme.red, | ||||||
|       outline: theme.shader4, |       outline: theme.shader4, | ||||||
|       surfaceVariant: theme.sidebarBg, |       surfaceVariant: theme.sidebarBg, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Aman Negi
						Aman Negi