update about page
This commit is contained in:
1 parent
282b3d6545
commit
5759c122ed
3 files changed
+34
-3
No files matched your search
@@ -56,7 +56,7 @@ public struct AboutView: View {
|
|||||||
}
|
}
|
||||||
// 链接按钮
|
// 链接按钮
|
||||||
if #available(iOS 14.0, *) {
|
if #available(iOS 14.0, *) {
|
||||||
Link(SwiftLocalizationHelper.localizedString(forKey: "Join us"), destination: URL(string: "https://example.com")!)
|
Link(SwiftLocalizationHelper.localizedString(forKey: "Join us"), destination: URL(string: SwiftLocalizationHelper.localizedString(forKey: "supportLink"))!)
|
||||||
.padding(.top, 10)
|
.padding(.top, 10)
|
||||||
Spacer()
|
Spacer()
|
||||||
// OK 按钮
|
// OK 按钮
|
||||||
@@ -73,7 +73,7 @@ public struct AboutView: View {
|
|||||||
HStack(spacing: 20) {
|
HStack(spacing: 20) {
|
||||||
Button(SwiftLocalizationHelper.localizedString(forKey: "Join us")) {
|
Button(SwiftLocalizationHelper.localizedString(forKey: "Join us")) {
|
||||||
// 打开链接
|
// 打开链接
|
||||||
if let url = URL(string: "https://example.com") {
|
if let url = URL(string: SwiftLocalizationHelper.localizedString(forKey: "supportLink")) {
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,6 +81,7 @@ public struct AboutView: View {
|
|||||||
.background(Color.blue)
|
.background(Color.blue)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.cornerRadius(12)
|
.cornerRadius(12)
|
||||||
|
.frame(height: 33)
|
||||||
.frame(minWidth: 100)
|
.frame(minWidth: 100)
|
||||||
|
|
||||||
Button("OK") {
|
Button("OK") {
|
||||||
@@ -90,6 +91,7 @@ public struct AboutView: View {
|
|||||||
.background(Color.blue)
|
.background(Color.blue)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.cornerRadius(12)
|
.cornerRadius(12)
|
||||||
|
.frame(height: 33)
|
||||||
.frame(minWidth: 100)
|
.frame(minWidth: 100)
|
||||||
}
|
}
|
||||||
.padding(.top, 10)
|
.padding(.top, 10)
|
||||||
|
|||||||
@@ -3851,6 +3851,35 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"supportLink" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "https://voidlink.yuque.com/org-wiki-voidlink-znirha/fa3tgr/dhmg3h27ls8mwt4a?singleDoc# 《About VoidLink》"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zh-Hans" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "https://voidlink.yuque.com/org-wiki-voidlink-znirha/fa3tgr/fdi4rxkxykhl5zpp?singleDoc# 《关于 VoidLink》"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zh-Hant" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "https://voidlink.yuque.com/org-wiki-voidlink-znirha/fa3tgr/fdi4rxkxykhl5zpp?singleDoc# 《关于 VoidLink》"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zh-HK" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "https://voidlink.yuque.com/org-wiki-voidlink-znirha/fa3tgr/fdi4rxkxykhl5zpp?singleDoc# 《关于 VoidLink》"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Tap %d Fingers to Change OSC Layout in Stream View" : {
|
"Tap %d Fingers to Change OSC Layout in Stream View" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|||||||
@@ -1348,7 +1348,7 @@ static NSMutableSet* hostList;
|
|||||||
button.tintColor = [ThemeManager appPrimaryColor];
|
button.tintColor = [ThemeManager appPrimaryColor];
|
||||||
[button setTitleColor:button.tintColor forState:UIControlStateNormal];
|
[button setTitleColor:button.tintColor forState:UIControlStateNormal];
|
||||||
|
|
||||||
button.frame = CGRectMake(0, 0, buttonHeight, buttonHeight);
|
button.frame = CGRectMake(0, 0, buttonHeight*1.3, buttonHeight*1.05);
|
||||||
|
|
||||||
// 添加点击事件
|
// 添加点击事件
|
||||||
[button addTarget:self action:@selector(helpButtonTapped) forControlEvents:UIControlEventTouchUpInside];
|
[button addTarget:self action:@selector(helpButtonTapped) forControlEvents:UIControlEventTouchUpInside];
|
||||||
|
|||||||
Reference in new issue
Block a user