Skip to content

Commit

Permalink
Imply use of binary units
Browse files Browse the repository at this point in the history
  • Loading branch information
logkos committed Jul 22, 2024
1 parent e0d0232 commit b23b615
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Platform/Shared/RAMSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct RAMSlider: View {
}
NumberTextField("", number: $systemMemory, prompt: "Size", onEditingChanged: validateMemorySize)
.frame(width: 80)
Text("MB")
Text("MiB")
}
}.frame(height: 30)
}
Expand Down
4 changes: 2 additions & 2 deletions Platform/Shared/SizeTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ struct SizeTextField: View {
Button(action: { isGiB.toggle() }, label: {
Group {
if isGiB {
Text("GB")
Text("GiB")
} else {
Text("MB")
Text("MiB")
}
}.foregroundColor(.blue)
}).buttonStyle(.plain)
Expand Down
2 changes: 1 addition & 1 deletion Platform/Shared/VMConfigSystemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct VMConfigSystemView: View {
HStack {
NumberTextField("", number: $config.jitCacheSize, prompt: "Default", onEditingChanged: validateMemorySize)
.multilineTextAlignment(.trailing)
Text("MB")
Text("MiB")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Platform/Shared/VMWizardDrivesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct VMWizardDrivesView: View {
NumberTextField("", number: $wizardState.storageSizeGib)
.textFieldStyle(.roundedBorder)
.frame(maxWidth: 50)
Text("GB")
Text("GiB")
}
} header: {
Text("Size")
Expand Down

0 comments on commit b23b615

Please sign in to comment.