The JShelter UX review (https://lists.nongnu.org/archive/html/js-shield/2023-01/pdfCi7H0vUsN_.pdf) suggests to provide obvious and unambiguous on/off switches. The toggle switches and sliders are clear, but the buttons are not. On/Off toggle buttons have failed in UIs since they were first introduced because of ambiguity (Do you press On to turn it on or On to turn it off? Is it a command or a state indicator?). The toggle sliders are much better at indicating their current state visually.
to comment on this ticket.