Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

Richard Shiue39988f678526
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart
index 49d1f59014..67ba869ffe 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/header/field_editor.dart
@@ -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(),
);