fix: notification actions lemonade darkmode (#3862)

This commit is contained in:
Mathias Mogensen 2023-11-02 17:17:30 +01:00 committed by GitHub
parent dc0af0f4c1
commit a93d325e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -244,6 +244,7 @@ class NotificationItemActions extends StatelessWidget {
tooltipText: tooltipText:
LocaleKeys.reminderNotification_tooltipMarkUnread.tr(), LocaleKeys.reminderNotification_tooltipMarkUnread.tr(),
icon: const FlowySvg(FlowySvgs.restore_s), icon: const FlowySvg(FlowySvgs.restore_s),
iconColorOnHover: Theme.of(context).colorScheme.onSurface,
onPressed: () => onReadChanged?.call(false), onPressed: () => onReadChanged?.call(false),
), ),
] else ...[ ] else ...[
@ -251,6 +252,7 @@ class NotificationItemActions extends StatelessWidget {
height: 28, height: 28,
tooltipText: tooltipText:
LocaleKeys.reminderNotification_tooltipMarkRead.tr(), LocaleKeys.reminderNotification_tooltipMarkRead.tr(),
iconColorOnHover: Theme.of(context).colorScheme.onSurface,
icon: const FlowySvg(FlowySvgs.messages_s), icon: const FlowySvg(FlowySvgs.messages_s),
onPressed: () => onReadChanged?.call(true), onPressed: () => onReadChanged?.call(true),
), ),
@ -266,6 +268,7 @@ class NotificationItemActions extends StatelessWidget {
height: 28, height: 28,
tooltipText: LocaleKeys.reminderNotification_tooltipDelete.tr(), tooltipText: LocaleKeys.reminderNotification_tooltipDelete.tr(),
icon: const FlowySvg(FlowySvgs.delete_s), icon: const FlowySvg(FlowySvgs.delete_s),
iconColorOnHover: Theme.of(context).colorScheme.onSurface,
onPressed: onDelete, onPressed: onDelete,
), ),
], ],

View File

@ -85,6 +85,7 @@ class FlowyIconButton extends StatelessWidget {
iconColorOnHover ?? Theme.of(context).iconTheme.color, iconColorOnHover ?? Theme.of(context).iconTheme.color,
//Do not set background here. Use [fillColor] instead. //Do not set background here. Use [fillColor] instead.
), ),
resetHoverOnRebuild: false,
child: Padding( child: Padding(
padding: iconPadding, padding: iconPadding,
child: Center( child: Center(