Skip to content

Commit

Permalink
Adjust disabled text in ComplexModificationsView
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Aug 5, 2024
1 parent 6902a69 commit 14c9cf7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,14 @@ struct ComplexModificationsView: View {

Spacer()

if !complexModificationRule.enabled {
Text("disabled")
.foregroundColor(.gray)
}

HStack(alignment: .center, spacing: 10) {
Toggle(isOn: $complexModificationRule.enabled) {
Text(complexModificationRule.enabled ? "" : "disabled")
Text("")
}
.switchToggleStyle()
.padding(.horizontal, 10.0)
Expand Down

0 comments on commit 14c9cf7

Please sign in to comment.