FelixBaensch / MORTAR

MOlecule fRagmenTAtion fRamework
MIT License
18 stars 3 forks source link

Implement a toogle switch for the boolean settings? #66

Open JonasSchaub opened 6 months ago

JonasSchaub commented 6 months ago

The current combo boxes containing "true" and "false" are not very nice. Maybe a nice toggle switch like you see in most mobile apps these days could be implemented? In a very brief research, I found this StackOverflow post: https://stackoverflow.com/questions/30593193/creating-sliding-on-off-switch-button-in-javafx

There seems to be no JavaFx-native control like that but one could be implemented.

Maybe a nice student project.

FelixBaensch commented 6 months ago

Sounds good for a "Laborpraxis" or as a short side project for a bachelor student

JonasSchaub commented 5 months ago

Look into code of controls fx, they have a toggle switch

FelixBaensch commented 5 months ago

Yes, but it is a library

JonasSchaub commented 5 months ago

Exactly, and I don't want to add it as a dependency. I just wanted to mention the code of the library as another source of "inspiration".

JonasSchaub commented 5 months ago

ControlsFx Code: https://github.com/controlsfx/controlsfx/tree/master