fix: field hide/delete icon color in dark mode (#2998)

This commit is contained in:
Richard Shiue 2023-07-14 17:07:57 +08:00 committed by GitHub
parent e69e72e3bd
commit 39988f6785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,10 +233,7 @@ class _DeleteFieldButton extends StatelessWidget {
LocaleKeys.grid_field_delete.tr(),
color: enable ? null : Theme.of(context).disabledColor,
),
leftIcon: svgWidget(
'grid/delete',
color: enable ? null : Theme.of(context).disabledColor,
),
leftIcon: const FlowySvg(name: 'grid/delete'),
onTap: () {
if (enable) onDeleted?.call();
},
@ -267,7 +264,7 @@ class _HideFieldButton extends StatelessWidget {
text: FlowyText.medium(
LocaleKeys.grid_field_hide.tr(),
),
leftIcon: svgWidget('grid/hide'),
leftIcon: const FlowySvg(name: 'grid/hide'),
onTap: () => onHidden?.call(),
onHover: (_) => popoverMutex.close(),
);