@@ -114,17 +114,16 @@ extension SettingsView {
114114 label: NSLocalizedString ( " Therapy Settings " , comment: " Title text for button to Therapy Settings " ) ,
115115 descriptiveText: NSLocalizedString ( " Diabetes Treatment " , comment: " Descriptive text for Therapy Settings " ) )
116116 . sheet ( isPresented: $therapySettingsIsPresented) {
117- TherapySettingsView (
118- viewModel: TherapySettingsViewModel ( mode: . settings,
119- therapySettings: self . viewModel. therapySettings ( ) ,
120- supportedInsulinModelSettings: self . viewModel. supportedInsulinModelSettings,
121- pumpSupportedIncrements: self . viewModel. pumpSupportedIncrements,
122- syncPumpSchedule: self . viewModel. syncPumpSchedule,
123- chartColors: . primary,
124- didSave: self . viewModel. didSave) )
117+ TherapySettingsView ( mode: . settings,
118+ viewModel: TherapySettingsViewModel ( therapySettings: self . viewModel. therapySettings ( ) ,
119+ supportedInsulinModelSettings: self . viewModel. supportedInsulinModelSettings,
120+ pumpSupportedIncrements: self . viewModel. pumpSupportedIncrements,
121+ syncPumpSchedule: self . viewModel. syncPumpSchedule,
122+ didSave: self . viewModel. didSave) )
125123 . environmentObject ( displayGlucoseUnitObservable)
126124 . environment ( \. dismiss, self . dismiss)
127125 . environment ( \. appName, self . appName)
126+ . environment ( \. chartColorPalette, . primary)
128127 . environment ( \. carbTintColor, self . carbTintColor)
129128 . environment ( \. glucoseTintColor, self . glucoseTintColor)
130129 . environment ( \. guidanceColors, self . guidanceColors)
0 commit comments