فهرست منبع

Imply use of binary units

Logkos 1 سال پیش
والد
کامیت
b23b615043

+ 1 - 1
Platform/Shared/RAMSlider.swift

@@ -60,7 +60,7 @@ struct RAMSlider: View {
                 }
                 NumberTextField("", number: $systemMemory, prompt: "Size", onEditingChanged: validateMemorySize)
                     .frame(width: 80)
-                Text("MB")
+                Text("MiB")
             }
         }.frame(height: 30)
     }

+ 2 - 2
Platform/Shared/SizeTextField.swift

@@ -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)

+ 1 - 1
Platform/Shared/VMConfigSystemView.swift

@@ -55,7 +55,7 @@ struct VMConfigSystemView: View {
                     HStack {
                         NumberTextField("", number: $config.jitCacheSize, prompt: "Default", onEditingChanged: validateMemorySize)
                             .multilineTextAlignment(.trailing)
-                        Text("MB")
+                        Text("MiB")
                     }
                 }
             }

+ 1 - 1
Platform/Shared/VMWizardDrivesView.swift

@@ -28,7 +28,7 @@ struct VMWizardDrivesView: View {
                     NumberTextField("", number: $wizardState.storageSizeGib)
                         .textFieldStyle(.roundedBorder)
                         .frame(maxWidth: 50)
-                    Text("GB")
+                    Text("GiB")
                 }
             } header: {
                 Text("Size")