From cbddabbe929c612efb9c3a5dfbfa92523544a2b4 Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Mon, 19 Oct 2026 18:06:09 -0700 Subject: [PATCH] Simplify and enlarge remote agent delete action Signed-off-by: Tom Brow --- mobile/lib/prototype/delete_agent_action.dart | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/mobile/lib/prototype/delete_agent_action.dart b/mobile/lib/prototype/delete_agent_action.dart index 2c8b4f430b..46731b4895 100644 --- a/mobile/lib/prototype/delete_agent_action.dart +++ b/mobile/lib/prototype/delete_agent_action.dart @@ -86,13 +86,22 @@ class DeleteAgentAction extends HookConsumerWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - OutlinedButton.icon( + FilledButton( onPressed: controller.busy ? null : remove, - style: OutlinedButton.styleFrom( + style: FilledButton.styleFrom( + minimumSize: const Size(double.infinity, Grid.xxl), + padding: const EdgeInsets.symmetric( + horizontal: Grid.gutter, + vertical: Grid.xs, + ), + backgroundColor: context.colors.surfaceContainerHighest, foregroundColor: context.colors.error, + textStyle: context.textTheme.titleSmall, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(Radii.dialog), + ), ), - icon: const Icon(Icons.delete_outline), - label: Text(controller.busy ? 'Working…' : 'Delete agent'), + child: Text(controller.busy ? 'Working…' : 'Delete agent'), ), if (error.value != null) Text(error.value!, style: TextStyle(color: context.colors.error)),