summaryrefslogtreecommitdiff
path: root/Sora
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-23 11:59:03 -0800
committerFuwn <[email protected]>2026-02-23 13:33:43 -0800
commit382ab5439a45785997b058f5fb6662150e95e9cc (patch)
treea3b2f5863b2e1716befb7f59c251077cce922320 /Sora
parentfeat: mark context menu delete actions as destructive (diff)
downloadsora-testing-382ab5439a45785997b058f5fb6662150e95e9cc.tar.xz
sora-testing-382ab5439a45785997b058f5fb6662150e95e9cc.zip
feat: mark remove-all alert actions as destructive
Diffstat (limited to 'Sora')
-rw-r--r--Sora/Views/FavoritesView.swift2
-rw-r--r--Sora/Views/Generic/GenericListView.swift2
2 files changed, 2 insertions, 2 deletions
diff --git a/Sora/Views/FavoritesView.swift b/Sora/Views/FavoritesView.swift
index 1ca41d0..3f12639 100644
--- a/Sora/Views/FavoritesView.swift
+++ b/Sora/Views/FavoritesView.swift
@@ -424,7 +424,7 @@ struct FavoritesView: View { // swiftlint:disable:this type_body_length
"Are you sure you want to remove all favorites? This action cannot be undone.",
isPresented: $isShowingRemoveAllConfirmation
) {
- Button("Remove All Favorites") {
+ Button("Remove All Favorites", role: .destructive) {
settings.favorites.removeAll()
}
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift
index 476bbc1..accd816 100644
--- a/Sora/Views/Generic/GenericListView.swift
+++ b/Sora/Views/Generic/GenericListView.swift
@@ -432,7 +432,7 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View {
removeAllMessage,
isPresented: $isShowingRemoveAllConfirmation
) {
- Button(removeAllButtonText) {
+ Button(removeAllButtonText, role: .destructive) {
removeAllAction()
}