Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zh_Hans Localizations. And more. #482

Merged
merged 6 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Xcodes/Frontend/InfoPane/CornerRadiusModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension View {
struct Previews_CornerRadius_Previews: PreviewProvider {
static var previews: some View {
HStack {
Text("XCODES RULES!")
Text(verbatim: "XCODES RULES!")
}.xcodesBackground()
}
}
2 changes: 1 addition & 1 deletion Xcodes/Frontend/InfoPane/IdenticalBuildView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct IdenticalBuildsView: View {
.font(.headline)

ForEach(builds, id: \.description) { version in
Text("• \(version.appleDescription)")
Text(verbatim: "• \(version.appleDescription)")
.font(.subheadline)
}
}
Expand Down
4 changes: 3 additions & 1 deletion Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ struct AdvancedPreferencePane: View {

GroupBox(label: Text("Active/Select")) {
VStack(alignment: .leading) {
Picker("OnSelect", selection: $appState.onSelectActionType) {
Picker(selection: $appState.onSelectActionType) {

Text(SelectedActionType.none.description)
.tag(SelectedActionType.none)
Text(SelectedActionType.rename.description)
.tag(SelectedActionType.rename)
} label: {
Text(verbatim: "OnSelect")
}
.labelsHidden()
.pickerStyle(.inline)
Expand Down
4 changes: 3 additions & 1 deletion Xcodes/Frontend/SignIn/SignInCredentialsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ struct SignInCredentialsView: View {
HStack {
Text("AppleID")
.frame(minWidth: 100, alignment: .trailing)
TextField("example@icloud.com", text: $username)
TextField(text: $username) {
Text(verbatim: "example@icloud.com")
}
}
HStack {
Text("Password")
Expand Down
4 changes: 2 additions & 2 deletions Xcodes/Frontend/View+IsHidden.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ extension View {
struct View_IsHidden_Previews: PreviewProvider {
static var previews: some View {
Group {
Text("Not Hidden")
Text(verbatim: "Not Hidden")
.isHidden(false)

Text("Hidden")
Text(verbatim: "Hidden")
.isHidden(true)
}
}
Expand Down
24 changes: 18 additions & 6 deletions Xcodes/Frontend/XcodeList/AppStoreButtonStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,33 +97,45 @@ struct AppStoreButtonStyle_Previews: PreviewProvider {
Group {
ForEach([ColorScheme.light, .dark], id: \.self) { colorScheme in
Group {
Button("OPEN", action: {})
Button{ } label: {
Text(verbatim: "OPEN")
}
.buttonStyle(AppStoreButtonStyle(primary: true, highlighted: false))
.padding()
.background(Color(.textBackgroundColor))
.previewDisplayName("Primary")
Button("OPEN", action: {})
Button{ } label: {
Text(verbatim: "OPEN")
}
.buttonStyle(AppStoreButtonStyle(primary: true, highlighted: true))
.padding()
.background(Color(.controlAccentColor))
.previewDisplayName("Primary, Highlighted")
Button("OPEN", action: {})
Button{ } label: {
Text(verbatim: "OPEN")
}
.buttonStyle(AppStoreButtonStyle(primary: true, highlighted: false))
.padding()
.disabled(true)
.background(Color(.textBackgroundColor))
.previewDisplayName("Primary, Disabled")
Button("INSTALL", action: {})
Button{ } label: {
Text(verbatim: "INSTALL")
}
.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false))
.padding()
.background(Color(.textBackgroundColor))
.previewDisplayName("Secondary")
Button("INSTALL", action: {})
Button{ } label: {
Text(verbatim: "INSTALL")
}
.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: true))
.padding()
.background(Color(.controlAccentColor))
.previewDisplayName("Secondary, Highlighted")
Button("INSTALL", action: {})
Button{ } label: {
Text(verbatim: "INSTALL")
}
.buttonStyle(AppStoreButtonStyle(primary: false, highlighted: false))
.padding()
.disabled(true)
Expand Down
Loading