From c3e0c25dcfe0da2c08d29556ef45df545958ef87 Mon Sep 17 00:00:00 2001 From: DongQing Date: Tue, 16 Dec 2025 14:00:55 +0800 Subject: [PATCH] Make delete button yellow --- IdeaNote/IdeaNote/ContentView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IdeaNote/IdeaNote/ContentView.swift b/IdeaNote/IdeaNote/ContentView.swift index 14e71b6..af134f5 100644 --- a/IdeaNote/IdeaNote/ContentView.swift +++ b/IdeaNote/IdeaNote/ContentView.swift @@ -168,7 +168,7 @@ struct NoteListRow: View { title: Text("你确定要删除此项吗?"), message: nil, buttons: [ - .destructive(Text("删除"), action: { + .default(Text("删除").foregroundColor(.yellow), action: { self.viewModel.deleteItem(item: noteModel) }), .cancel(Text("取消")),