Skip to content

Commit

Permalink
Merge pull request #482 from megabitsenmzq/main
Browse files Browse the repository at this point in the history
Update zh_Hans Localizations. And more.
  • Loading branch information
MattKiazyk authored Feb 16, 2024
2 parents ab1ebe0 + 49eb2f4 commit 6f0cdc7
Show file tree
Hide file tree
Showing 7 changed files with 231 additions and 787 deletions.
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("[email protected]", text: $username)
TextField(text: $username) {
Text(verbatim: "[email protected]")
}
}
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

0 comments on commit 6f0cdc7

Please sign in to comment.