mkpaz / atlantafx

Modern JavaFX CSS theme collection with additional controls.
https://mkpaz.github.io/atlantafx
MIT License
791 stars 64 forks source link

Add Theme+FontSize Changer as a Control #73

Open hoggatt opened 1 year ago

hoggatt commented 1 year ago

First off, I really like the project, it looks amazing. I have an idea for an enhancement I think would be very helpful: some sort of 'accessibility/theme' dialog (as a control or import) based on stuff you already have in your sampler project.

Not everyone likes either dark or light themes and not everyone is a fan of the same font size. I've been digging around your sampler project and it looks like you have a ThemeDialog window (using ThemeManager) when clicking the 'sun' icon. It would be really nice if your library exposed a dialog box that could be used (like this) to allow any person to change the theme or font size. It could be just a copy of your existing ThemeDialog with a font size box embedded (which also uses the ThemeManager) and it could be either an imported dialog (like the sampler), or added as a 'control' which is really just a nice-looking button that has a pre-set action. The latter would probably be the easiest to integrate with the existing library since it would just be 'one more control'.

I think exposing a simple modal box that allows changing themes and font size makes it very convenient for anyone looking to make their JavaFX app more accessible without having to do much extra work.