mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Make names of the code contributes in the About window selectable
This commit is contained in:
parent
a2a94bb839
commit
8995df9d71
@ -16,6 +16,7 @@
|
||||
- Improve VoiceOver support in the Quick Action bar.
|
||||
- Remove Solarized themes from the bundle.
|
||||
- Update all the bundled themes to have a 70% opacity in the current line highlight.
|
||||
- [trivial] Make names of code contributes in the About window selectable.
|
||||
- [dev] Migrate the navigation bar to SwiftUI.
|
||||
|
||||
|
||||
|
@ -50,7 +50,7 @@ struct AboutView: View {
|
||||
|
||||
var body: some View {
|
||||
|
||||
HStack {
|
||||
HStack(spacing: 0) {
|
||||
VStack(spacing: 6) {
|
||||
Image(nsImage: NSApp.applicationIconImage)
|
||||
Text(Bundle.main.bundleName)
|
||||
@ -74,6 +74,8 @@ struct AboutView: View {
|
||||
.padding(.trailing)
|
||||
.frame(minWidth: 200)
|
||||
|
||||
Divider()
|
||||
|
||||
VStack(spacing: 0) {
|
||||
HStack {
|
||||
ForEach(Pane.allCases, id: \.self) { pane in
|
||||
@ -96,11 +98,11 @@ struct AboutView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
.ignoresSafeArea()
|
||||
.background()
|
||||
}
|
||||
.accessibilityLabel(String(localized: "About \(Bundle.main.bundleName)", table: "About", comment: "accessibility label (%@ is app name)"))
|
||||
.controlSize(.small)
|
||||
.ignoresSafeArea()
|
||||
.frame(width: 540, height: 300)
|
||||
}
|
||||
}
|
||||
@ -204,6 +206,7 @@ private struct CreditsView: View {
|
||||
|
||||
SectionView(String(localized: "Code Contributors", table: "About", comment: "section heading")) {
|
||||
Text(self.credits.contributors.map(\.name).sorted(options: [.caseInsensitive, .localized]), format: .list(type: .and))
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
|
||||
SectionView(String(localized: "Special Thanks", table: "About", comment: "section heading")) {
|
||||
@ -226,6 +229,7 @@ private struct CreditsView: View {
|
||||
.foregroundStyle(.tertiary)
|
||||
|
||||
Text("CotEditor is an open source program\nlicensed under the Apache License, Version 2.0.", tableName: "About")
|
||||
.textSelection(.enabled)
|
||||
Link(String("https://github.com/coteditor"),
|
||||
destination: URL(string: "https://github.com/coteditor")!)
|
||||
.foregroundStyle(.tint)
|
||||
|
Loading…
Reference in New Issue
Block a user