-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change link from #mlemapp to #mlemappspace (#462)
- Loading branch information
1 parent
c561efa
commit ff5d8f7
Showing
3 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,47 +9,47 @@ import SwiftUI | |
|
||
struct AboutView: View { | ||
@EnvironmentObject var appState: AppState | ||
|
||
@Binding var navigationPath: NavigationPath | ||
|
||
var body: some View { | ||
Group { | ||
List { | ||
Section { | ||
appHeaderView | ||
.listRowBackground(Color(.systemGroupedBackground)) | ||
} | ||
|
||
Section { | ||
Link(destination: URL(string: "https://mlem.group/")!) { | ||
Label("Website", systemImage: "globe").labelStyle(SquircleLabelStyle(color: .blue)) | ||
} | ||
.buttonStyle(SettingsButtonStyle()) | ||
|
||
Link(destination: URL(string: "https://lemmy.world/c/[email protected]")!) { | ||
Label("Official Community", systemImage: "house.fill").labelStyle(SquircleLabelStyle(color: .green, fontSize: 15)) | ||
} | ||
.buttonStyle(SettingsButtonStyle()) | ||
Link(destination: URL(string: "https://matrix.to/#/%23mlemapp:matrix.org")!) { | ||
|
||
Link(destination: URL(string: "https://matrix.to/#/%23mlemappspace:matrix.org")!) { | ||
Label("Matrix Room", systemImage: "chart.bar.doc.horizontal").labelStyle(SquircleLabelStyle(color: .teal)) | ||
} | ||
.buttonStyle(SettingsButtonStyle()) | ||
} | ||
|
||
Section { | ||
Link(destination: URL(string: "https://github.com/mlemgroup/mlem")!) { | ||
Label("Github Repository", image: "logo.github").labelStyle(SquircleLabelStyle(color: .black)) | ||
} | ||
.buttonStyle(SettingsButtonStyle()) | ||
|
||
NavigationLink { | ||
ContributorsView() | ||
} label: { | ||
Label("Contributors", systemImage: "person.2.fill").labelStyle(SquircleLabelStyle(color: .teal)) | ||
} | ||
} | ||
|
||
Section { | ||
NavigationLink { | ||
DocumentView(text: privacyPolicy.body) | ||
|
@@ -72,7 +72,7 @@ struct AboutView: View { | |
} | ||
.navigationTitle("About") | ||
} | ||
|
||
var versionString: String { | ||
var result = "n/a" | ||
|
||
|
@@ -86,7 +86,7 @@ struct AboutView: View { | |
|
||
return result | ||
} | ||
|
||
@ViewBuilder | ||
private var appHeaderView: some View { | ||
VStack(spacing: AppConstants.postAndCommentSpacing) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters