feat: Styles views for macos
This commit is contained in:
@@ -284,9 +284,10 @@ public struct EquipmentMeasurementFormView: View {
|
||||
if store.allowEquipmentTypeSelection {
|
||||
Section {
|
||||
} header: {
|
||||
Text("Equipment Type")
|
||||
SectionHeaderLabel("Equipment Type")
|
||||
} footer: {
|
||||
EquipmentTypePicker(selection: $store.equipmentType)
|
||||
.dynamicBottomPadding()
|
||||
.pickerStyle(.segmented)
|
||||
.labelsHidden()
|
||||
}
|
||||
@@ -295,9 +296,10 @@ public struct EquipmentMeasurementFormView: View {
|
||||
Grid(alignment: .leading, horizontalSpacing: 40) {
|
||||
ForEach(store.pressureFields, content: gridRow(for:))
|
||||
}
|
||||
.dynamicBottomPadding()
|
||||
} header: {
|
||||
HStack {
|
||||
Text("Static Measurements")
|
||||
SectionHeaderLabel("Static Measurements")
|
||||
Spacer()
|
||||
InfoButton { send(.infoButtonTapped) }
|
||||
}
|
||||
@@ -310,7 +312,7 @@ public struct EquipmentMeasurementFormView: View {
|
||||
} header: {
|
||||
HStack {
|
||||
Spacer()
|
||||
Text(store.sharedSettings.equipmentMetadata.coolingCapacity.description)
|
||||
SectionHeaderLabel(store.sharedSettings.equipmentMetadata.coolingCapacity.description)
|
||||
}
|
||||
} footer: {
|
||||
HStack {
|
||||
@@ -348,7 +350,8 @@ public struct EquipmentMeasurementFormView: View {
|
||||
}
|
||||
|
||||
private func gridRow(for field: EquipmentMeasurementForm.State.Field) -> some View {
|
||||
TextLabeledContent(store.label(field: field)) {
|
||||
GridRow {
|
||||
TextLabel(store.label(field: field))
|
||||
textField(for: field)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user