Skip to content

Commit

Permalink
harmonize NS button layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mountrcg committed May 19, 2024
1 parent 07cc042 commit 94cf469
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions FreeAPS/Sources/Modules/CGM/View/CGMRootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ extension CGM {
}
}
}

label: {
Label(state.displayNameOfApp() ?? "-", systemImage: "waveform.path.ecg.rectangle").font(.title3) }
.frame(maxWidth: .infinity, alignment: .center)
.buttonStyle(.bordered)
Label(state.displayNameOfApp() ?? "-", systemImage: "waveform.path.ecg.rectangle") }
}
.listRowBackground(Color.clear)
} else if state.cgmCurrent.type == .nightscout {
Expand All @@ -75,23 +72,17 @@ extension CGM {
}
}
}
label: { Label("Open URL", systemImage: "waveform.path.ecg.rectangle").font(.title3) }
.frame(maxWidth: .infinity, alignment: .center)
.buttonStyle(.bordered)
label: { Label("Open URL", systemImage: "waveform.path.ecg.rectangle") }
}
.listRowBackground(Color.clear)
} else {
Section {
Button {
state.showModal(for: .nighscoutConfigDirect)
// router.mainSecondaryModalView.send(router.view(for: .nighscoutConfigDirect))
}
label: { Label("Config Nightscout", systemImage: "waveform.path.ecg.rectangle").font(.title3)
label: { Label("Configure Nightscout", systemImage: "waveform.path.ecg.rectangle")
}
.frame(maxWidth: .infinity, alignment: .center)
.buttonStyle(.bordered)
}
.listRowBackground(Color.clear)
}
}

Expand Down Expand Up @@ -121,7 +112,7 @@ extension CGM {
}
}

// }
// }

Section(header: Text("Calendar")) {
Toggle("Create Events in Calendar", isOn: $state.createCalendarEvents)
Expand Down

0 comments on commit 94cf469

Please sign in to comment.