Tewak What’s New panel

This commit is contained in:
1024jp 2024-06-05 21:45:53 +09:00
parent 196b272811
commit 2ea220a465

View File

@ -33,7 +33,7 @@ struct WhatsNewView: View {
var body: some View {
VStack {
VStack(spacing: 16) {
Text("Whats New in **CotEditor \(NewFeature.version)**", tableName: "WhatsNew", comment: "%@ is version number")
.font(.title)
.fontWeight(.medium)
@ -42,7 +42,7 @@ struct WhatsNewView: View {
HStack(alignment: .top, spacing: 20) {
ForEach(NewFeature.allCases, id: \.self) { feature in
VStack {
VStack(spacing: 8) {
feature.image
.font(.system(size: 56, weight: .thin))
.foregroundStyle(.tint)
@ -53,20 +53,16 @@ struct WhatsNewView: View {
.fontWeight(.semibold)
.accessibilityAddTraits(.isHeader)
.accessibilityHeading(.h2)
.padding(.vertical, 2)
Text(feature.description)
.foregroundStyle(.secondary)
.fixedSize(horizontal: false, vertical: true)
feature.supplementalView
.padding(.top, 4)
}
.frame(maxWidth: .infinity)
}
}.padding(.vertical)
Spacer()
}
Button {
NSHelpManager.shared.openHelpAnchor("releasenotes", inBook: Bundle.main.helpBookName)
@ -88,7 +84,6 @@ struct WhatsNewView: View {
}
.keyboardShortcut(.cancelAction)
.buttonStyle(.borderedProminent)
.padding(.top, 6)
}
.scenePadding()
.frame(width: 640, height: 300)