|
|
@@ -429,16 +429,16 @@ extension Adjustments {
|
|
|
// Cancel ALL active Override
|
|
|
await state.disableAllActiveOverrides(createOverrideRunEntry: true)
|
|
|
}
|
|
|
- }) {
|
|
|
+ }, label: {
|
|
|
Text("Stop Override")
|
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
|
.padding(10)
|
|
|
- }
|
|
|
- .frame(width: UIScreen.main.bounds.width * 0.9, height: 40)
|
|
|
- .background(state.isEnabled ? Color(.systemRed) : Color(.systemGray4))
|
|
|
- .clipShape(RoundedRectangle(cornerRadius: 8))
|
|
|
- .disabled(!state.isEnabled)
|
|
|
- .tint(.white)
|
|
|
+ })
|
|
|
+ .frame(width: UIScreen.main.bounds.width * 0.9, height: 40, alignment: .center)
|
|
|
+ .disabled(!state.isEnabled)
|
|
|
+ .background(!state.isEnabled ? Color(.systemGray4) : Color(.systemRed))
|
|
|
+ .tint(.white)
|
|
|
+ .clipShape(RoundedRectangle(cornerRadius: 8))
|
|
|
case .tempTargets:
|
|
|
Button(action: {
|
|
|
Task {
|
|
|
@@ -448,16 +448,16 @@ extension Adjustments {
|
|
|
// Update View
|
|
|
state.updateLatestTempTargetConfiguration()
|
|
|
}
|
|
|
- }) {
|
|
|
+ }, label: {
|
|
|
Text("Stop Temp Target")
|
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
|
.padding(10)
|
|
|
- }
|
|
|
- .frame(width: UIScreen.main.bounds.width * 0.9, height: 40)
|
|
|
- .background(state.isTempTargetEnabled ? Color(.systemRed) : Color(.systemGray4))
|
|
|
- .clipShape(RoundedRectangle(cornerRadius: 8))
|
|
|
- .disabled(!state.isTempTargetEnabled)
|
|
|
- .tint(.white)
|
|
|
+ })
|
|
|
+ .frame(width: UIScreen.main.bounds.width * 0.9, height: 40, alignment: .center)
|
|
|
+ .disabled(!state.isTempTargetEnabled)
|
|
|
+ .background(!state.isTempTargetEnabled ? Color(.systemGray4) : Color(.systemRed))
|
|
|
+ .tint(.white)
|
|
|
+ .clipShape(RoundedRectangle(cornerRadius: 8))
|
|
|
}
|
|
|
}
|
|
|
.padding(5)
|