Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Show the Reset sheet's problems with a red symbol and secondary words

Țugui Dragoș691a1a4358e1
diff --git a/Peel/Views/ResetSheet.swift b/Peel/Views/ResetSheet.swift
index c0b1c23f..acf6cea4 100644
--- a/Peel/Views/ResetSheet.swift
+++ b/Peel/Views/ResetSheet.swift
@@ -334,22 +334,21 @@ struct ResetSheet: View {
.foregroundStyle(.secondary)
case .incomplete(let clearedSome):
VStack(alignment: .leading, spacing: 2) {
- Text("Not all of the saved settings could be put back.")
- .foregroundStyle(.red)
+ StatusLabel(title: Text("Not all of the saved settings could be put back."), tint: .red)
if clearedSome {
Text("The settings that didn’t go back were cleared first, so the app starts them from scratch. The copy is still here to try again.")
- .foregroundStyle(.secondary)
}
}
.font(.callout)
+ .foregroundStyle(.secondary)
case .notSaved:
- Text("Peel couldn’t save the settings \(plan.app.name) has now, so it put nothing back.")
+ StatusLabel(title: Text("Peel couldn’t save the settings \(plan.app.name) has now, so it put nothing back."), tint: .red)
.font(.callout)
- .foregroundStyle(.red)
+ .foregroundStyle(.secondary)
case .appIsOpen:
- Text("Quit \(plan.app.name) first, or it can write its own settings over these.")
+ StatusLabel(title: Text("Quit \(plan.app.name) first, or it can write its own settings over these."), tint: .red)
.font(.callout)
- .foregroundStyle(.red)
+ .foregroundStyle(.secondary)
}
}