Fix the colors of the delete buttons

This commit is contained in:
Micah Morrison
2026-02-13 20:07:07 -05:00
parent fd615c237d
commit 336da4c110
2 changed files with 5 additions and 7 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ Future<bool> showConfirmDialog(
),
FilledButton(
onPressed: () => Navigator.pop(dialogContext, true),
style: isDestructive ? FilledButton.styleFrom(backgroundColor: colorScheme.error) : null,
style: isDestructive
? FilledButton.styleFrom(backgroundColor: colorScheme.error, foregroundColor: colorScheme.onError)
: null,
child: Text(confirmText),
),
],
+2 -6
View File
@@ -269,7 +269,7 @@ class MediaContextMenuState extends State<MediaContextMenu> {
value: 'delete_media',
icon: Symbols.delete_rounded,
label: t.common.delete,
hoverColor: Colors.red,
hoverColor: Theme.of(context).colorScheme.error,
),
);
}
@@ -1002,11 +1002,7 @@ class MediaContextMenuState extends State<MediaContextMenu> {
final metadata = widget.item as PlexMetadata;
final client = _getClientForItem();
await ExternalPlayerService.launch(
context: context,
metadata: metadata,
client: client,
);
await ExternalPlayerService.launch(context: context, metadata: metadata, client: client);
}
/// Handle download action