From a93d325e6a08bc29ae2cedb0884c1b0d994801bc Mon Sep 17 00:00:00 2001 From: Mathias Mogensen <42929161+Xazin@users.noreply.github.com> Date: Thu, 2 Nov 2023 17:17:30 +0100 Subject: [PATCH] fix: notification actions lemonade darkmode (#3862) --- .../presentation/notifications/widgets/notification_item.dart | 3 +++ .../packages/flowy_infra_ui/lib/style_widget/icon_button.dart | 1 + 2 files changed, 4 insertions(+) diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/notifications/widgets/notification_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/notifications/widgets/notification_item.dart index 3562b614d3..87ac72ed9f 100644 --- a/frontend/appflowy_flutter/lib/workspace/presentation/notifications/widgets/notification_item.dart +++ b/frontend/appflowy_flutter/lib/workspace/presentation/notifications/widgets/notification_item.dart @@ -244,6 +244,7 @@ class NotificationItemActions extends StatelessWidget { tooltipText: LocaleKeys.reminderNotification_tooltipMarkUnread.tr(), icon: const FlowySvg(FlowySvgs.restore_s), + iconColorOnHover: Theme.of(context).colorScheme.onSurface, onPressed: () => onReadChanged?.call(false), ), ] else ...[ @@ -251,6 +252,7 @@ class NotificationItemActions extends StatelessWidget { height: 28, tooltipText: LocaleKeys.reminderNotification_tooltipMarkRead.tr(), + iconColorOnHover: Theme.of(context).colorScheme.onSurface, icon: const FlowySvg(FlowySvgs.messages_s), onPressed: () => onReadChanged?.call(true), ), @@ -266,6 +268,7 @@ class NotificationItemActions extends StatelessWidget { height: 28, tooltipText: LocaleKeys.reminderNotification_tooltipDelete.tr(), icon: const FlowySvg(FlowySvgs.delete_s), + iconColorOnHover: Theme.of(context).colorScheme.onSurface, onPressed: onDelete, ), ], diff --git a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/icon_button.dart b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/icon_button.dart index 2f8ce2aaf5..fd65bb9436 100644 --- a/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/icon_button.dart +++ b/frontend/appflowy_flutter/packages/flowy_infra_ui/lib/style_widget/icon_button.dart @@ -85,6 +85,7 @@ class FlowyIconButton extends StatelessWidget { iconColorOnHover ?? Theme.of(context).iconTheme.color, //Do not set background here. Use [fillColor] instead. ), + resetHoverOnRebuild: false, child: Padding( padding: iconPadding, child: Center(