Skip to content

Commit

Permalink
Make buy me a coffee more clickable~
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaogdgenuine committed Jun 12, 2022
1 parent ea61c1a commit 3131cb2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion Doll/Views/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,22 @@ struct AboutView: View {
}

Text("Tip me")
Text("https://www.buymeacoffee.com/xiaogd")
HStack {
Image(systemName: "cup.and.saucer")
.resizable()
.foregroundColor(.black)
.frame(width: 32, height: 32)
Text("Buy me a coffee")
.foregroundColor(.black)
}
.contentShape(Rectangle())
.padding()
.padding(.horizontal, 24)
.background(Color.yellow)
.cornerRadius(12)
.onTapGesture {
NSWorkspace.shared.open(URL(string: "https://www.buymeacoffee.com/xiaogd")!)
}
}.padding()
}.frame(maxHeight: .infinity)
}
Expand Down
2 changes: 1 addition & 1 deletion Doll/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"About Doll" = "About Doll";
"Tip me" = "Buy me a coffee if you love this app! :)";

"Buy me a coffee" = "Buy me a coffee";
"Hold option key ⌥ and click to config" = "Hold option key ⌥ and click to config";

"About author" = "Made by **xiaogd**";
Expand Down
2 changes: 1 addition & 1 deletion Doll/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"About Doll" = "关于 Doll";
"Tip me" = "喜欢这个 App?那就支持一下吧 :)";

"Buy me a coffee" = "请我喝杯咖啡";
"Hold option key ⌥ and click to config" = "按住 Option(⌥) 键点击图标即可配置";

"About author" = "Made by **元气满满小广东**";
Expand Down

0 comments on commit 3131cb2

Please sign in to comment.