mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
调整版本号样式
This commit is contained in:
parent
35580694fb
commit
1933a0cfdc
@ -3059,6 +3059,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"version" : {
|
||||||
|
"extractionState" : "manual",
|
||||||
|
"localizations" : {
|
||||||
|
"en" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Version"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tr" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "Sürüm"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zh-Hans" : {
|
||||||
|
"stringUnit" : {
|
||||||
|
"state" : "translated",
|
||||||
|
"value" : "版本"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"viewAllSounds" : {
|
"viewAllSounds" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|||||||
@ -36,16 +36,6 @@ class Client: NSObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let appVersion: String = {
|
|
||||||
var version = "0.0.0"
|
|
||||||
if let infoDict = Bundle.main.infoDictionary {
|
|
||||||
if let appVersion = infoDict["CFBundleVersion"] as? String {
|
|
||||||
version = appVersion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return version
|
|
||||||
}()
|
|
||||||
|
|
||||||
enum ClienState: Int, Codable {
|
enum ClienState: Int, Codable {
|
||||||
case ok
|
case ok
|
||||||
case unRegister
|
case unRegister
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class MessageSettingFooter: UITextView, UITextViewDelegate {
|
|||||||
// build号
|
// build号
|
||||||
let buildVersion = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? ""
|
let buildVersion = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? ""
|
||||||
|
|
||||||
let attr = NSMutableAttributedString(string: "Version \(appVersion) (Build \(buildVersion))\n", attributes: [.font: UIFont.preferredFont(ofSize: 12), .foregroundColor: BKColor.grey.darken1])
|
let attr = NSMutableAttributedString(string: "\(NSLocalizedString("version")) \(appVersion) (\(buildVersion))\n", attributes: [.font: UIFont.preferredFont(ofSize: 12), .foregroundColor: BKColor.grey.darken1])
|
||||||
attr.append(NSAttributedString(string: NSLocalizedString("privacyPolicy"), attributes: [.link: "privacyPolicy"]))
|
attr.append(NSAttributedString(string: NSLocalizedString("privacyPolicy"), attributes: [.link: "privacyPolicy"]))
|
||||||
attr.append(NSAttributedString(string: " · "))
|
attr.append(NSAttributedString(string: " · "))
|
||||||
attr.append(NSAttributedString(string: NSLocalizedString("userAgreement"), attributes: [.link: "userAgreement"]))
|
attr.append(NSAttributedString(string: NSLocalizedString("userAgreement"), attributes: [.link: "userAgreement"]))
|
||||||
@ -32,7 +32,7 @@ class MessageSettingFooter: UITextView, UITextViewDelegate {
|
|||||||
attr.addAttribute(.paragraphStyle, value: style, range: NSRange(location: 0, length: attr.length))
|
attr.addAttribute(.paragraphStyle, value: style, range: NSRange(location: 0, length: attr.length))
|
||||||
|
|
||||||
self.attributedText = attr
|
self.attributedText = attr
|
||||||
self.linkTextAttributes = [.foregroundColor: BKColor.grey.darken1, .underlineStyle: NSUnderlineStyle.single.rawValue]
|
self.linkTextAttributes = [.foregroundColor: BKColor.grey.darken1, .underlineStyle: NSUnderlineStyle.single.rawValue, .font: UIFont.preferredFont(ofSize: 12)]
|
||||||
self.textAlignment = .center
|
self.textAlignment = .center
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user