Skip to content

Commit

Permalink
Layout tweaks (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes authored Jan 28, 2024
1 parent cd3f3ae commit f13c24f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Impedance Converter/Impedance Converter/CircuitView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct CircuitPickerView: View {
var body: some View {
HStack {
Spacer(minLength: 15)
HStack(spacing: -10) {
HStack(spacing: -5) {
Image("Series")
ToggleButtonView(isOn: Binding(
get: { viewModel.circuitMode == .series },
Expand Down
8 changes: 4 additions & 4 deletions Impedance Converter/Impedance Converter/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ struct ModePickerView: View {
HStack {
HStack {
Spacer(minLength: 15)
VStack(spacing: -2) {
VStack(alignment: .leading, spacing: -2) {
HStack(spacing: -15) {
Text("Z")
ToggleButtonView(isOn: Binding(
Expand All @@ -145,7 +145,7 @@ struct ModePickerView: View {
Text("Impedance")
}
Spacer()
VStack(spacing: -2) {
VStack(alignment: .leading, spacing: -2) {
HStack(spacing: -15) {
Text("Y")
ToggleButtonView(isOn: Binding(
Expand All @@ -157,7 +157,7 @@ struct ModePickerView: View {
Text("Admittance")
}
Spacer()
VStack(spacing: -2) {
VStack(alignment: .leading, spacing: -2) {
HStack(spacing: -15) {
Text("Γ")
ToggleButtonView(isOn: Binding(
Expand All @@ -171,7 +171,7 @@ struct ModePickerView: View {
Spacer()
}
.padding(.vertical, -10)
.frame(maxWidth: 300, maxHeight: 70)
.frame(maxWidth: 320, maxHeight: 70)
SettingsButtonView()
}
}
Expand Down
8 changes: 4 additions & 4 deletions Impedance Converter/Impedance Converter/CursorsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ struct CursorsView: View {
if (showCursorControls) {
HStack() {
Spacer(minLength: 15)
HStack(spacing: -5) {
HStack(spacing: -3) {
SmithChartIcon(type: .constantResistance)
ToggleButtonView(isOn: $viewModel.constantCircleCursor)
}
Spacer()
HStack(spacing: -5) {
HStack(spacing: -3) {
SmithChartIcon(type: .constantReactance)
ToggleButtonView(isOn: $viewModel.constantArcCursor)
}
Spacer()
HStack(spacing: -5) {
HStack(spacing: -3) {
SmithChartIcon(type: .constantMagnitude)
ToggleButtonView(isOn: $viewModel.constantMagnitudeCursor)
}
Spacer()
HStack(spacing: -5) {
HStack(spacing: -3) {
SmithChartIcon(type: .constantAngle)
ToggleButtonView(isOn: $viewModel.constantAngleCursor)
}
Expand Down

0 comments on commit f13c24f

Please # to comment.