macos: show release notes link

This commit is contained in:
Mitchell Hashimoto
2025-10-08 21:51:21 -07:00
parent abab6899f9
commit 49eb65df77
3 changed files with 222 additions and 0 deletions

View File

@@ -191,6 +191,28 @@ fileprivate struct UpdateAvailableView: View {
}
}
.padding(16)
if let notes = update.releaseNotes {
Divider()
Link(destination: notes.url) {
HStack {
Image(systemName: "doc.text")
.font(.system(size: 11))
Text(notes.label)
.font(.system(size: 11, weight: .medium))
Spacer()
Image(systemName: "arrow.up.right")
.font(.system(size: 10))
}
.foregroundColor(.primary)
.padding(12)
.frame(maxWidth: .infinity)
.background(Color(nsColor: .controlBackgroundColor))
.contentShape(Rectangle())
}
.buttonStyle(.plain)
}
}
}
}