Clarification needed: Material Design 3 styles in v21.18.0-alpha and missing Dialogs in v11.27.0-all

#403 · closed · 3 comments

View on GitHub ↗

tennisplatz924-prog

Hello. I am attempting to use this library for a small project but im having difficulty. I have read the documentation but seems like I'm still stuck. I am using the following implementation: io.github.palexdev:materialfx:21.18.0-alpha (tried 11.17.0 as well) ``` UserAgentBuilder.builder() .themes(JavaFXThemes.MODENA) .themes(MaterialFXStylesheets.forAssemble(true)) .setDeploy(true) .setResolveAssets(true) .build() .setGlobal(); ``` Even with this setup, the controls appear to follow the Material Design 2 guidelines rather than Material Design 3. Could you clarify if M3 is the default in the 21.x branch or if a specific theme/token set needs to be applied to see the M3 look? **Missing Dialogs in materialfx-all:11.27.0** When I switch to io.github.palexdev:materialfx-all:11.27.0, the design actually looks M3, but the all package does not seem to include the Dialogs. Are Dialogs intentionally excluded from the all bundle, or is there a specific registration required for them in the 11.x UserAgentBuilder? <img width="303" height="93" alt="Image" src="https://github.com/user-attachments/assets/5870df18-319f-4a4c-a2aa-4e23e8e39c5b" /> Note: The image shows how the buttons look using the materialfx non all package. Environment: Java Version: 25 OS: Windows 10 MaterialFX Versions tested: 21.18.0-alpha, 11.27.0, 11.17.0

Comments

palexdev

Hello @tennisplatz924-prog Version `21.x.x` is for Material Design 2 If you want to try Material Design 3 you want to grab version `25.x.x`, source is on the `rewrite` branch. **BUT!** Beware that this version is work in progress, it's incomplete and offers only a few components. Do you have any idea of which controls you may need? You can take a look at one of my side projects on how to import and use the newest versions. Here are the Gradle config files: [1](https://github.com/palexdev/FeedFX/blob/a4b9ccac898ba9f9681e967f496e271796c5fef4/gradle.properties#L25), [2](https://github.com/palexdev/FeedFX/blob/a4b9ccac898ba9f9681e967f496e271796c5fef4/build.gradle#L45) Check the versions on Maven though, they may be slightly outdated. Here's how to add the themes: [ThemeEngine](https://github.com/palexdev/FeedFX/blob/a4b9ccac898ba9f9681e967f496e271796c5fef4/src/main/java/io/github/palexdev/feedfx/ui/ThemeEngine.java#L102) As for the dialogs, I'm not sure what could be the problem, I actually don't remember how they are handled on v21. In v25 all kinds of popups (including dialogs) have been heavily reviewed. They are now part of the `MFXCore` module and they are generic, meaning that there are no pre-built recipes. Every popup has a `content` property, so you can set their view to whatever you want and of course style them however you want. Refs: [Package, src and docs](https://github.com/palexdev/MaterialFX/tree/rewrite/modules/core/src/main/java/io/github/palexdev/mfxcore/popups), [Examples](https://github.com/palexdev/FeedFX/tree/main/src/main/java/io/github/palexdev/feedfx/ui/popups)

stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot]

Closed for inactivity.