fix: hover color for change icon button (#2447)

This commit is contained in:
Lucas.Xu 2023-05-03 16:18:05 +08:00 committed by GitHub
parent 75262c0683
commit c672a2a8ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,9 +412,9 @@ class _CoverImageState extends State<_CoverImage> {
setOverlayButtonsHidden(true); setOverlayButtonsHidden(true);
}, },
hoverColor: Theme.of(context).colorScheme.surface, hoverColor: Theme.of(context).colorScheme.surface,
textColor: Theme.of(context).colorScheme.onSurface, textColor: Theme.of(context).colorScheme.tertiary,
fillColor: fillColor:
Theme.of(context).colorScheme.surface.withOpacity(0.8), Theme.of(context).colorScheme.surface.withOpacity(0.5),
width: 120, width: 120,
height: 28, height: 28,
title: LocaleKeys.document_plugins_cover_changeCover.tr(), title: LocaleKeys.document_plugins_cover_changeCover.tr(),
@ -435,13 +435,13 @@ class _CoverImageState extends State<_CoverImage> {
maintainState: true, maintainState: true,
visible: !isOverlayButtonsHidden, visible: !isOverlayButtonsHidden,
child: FlowyIconButton( child: FlowyIconButton(
fillColor: Theme.of(context).colorScheme.surface.withOpacity(0.8),
hoverColor: Theme.of(context).colorScheme.surface, hoverColor: Theme.of(context).colorScheme.surface,
fillColor: Theme.of(context).colorScheme.surface.withOpacity(0.5),
iconPadding: const EdgeInsets.all(5), iconPadding: const EdgeInsets.all(5),
width: 28, width: 28,
icon: svgWidget( icon: svgWidget(
'editor/delete', 'editor/delete',
color: Theme.of(context).colorScheme.onSurface, color: Theme.of(context).colorScheme.tertiary,
), ),
onPressed: () { onPressed: () {
widget.onCoverChanged(CoverSelectionType.initial, null); widget.onCoverChanged(CoverSelectionType.initial, null);