palexdev/MaterialFX

Controls not showing well

infinite-dev22 opened this issue · 4 comments

Something wrong with controls from package io.github.palexdev.mfxcomponents.controls.buttons, These differ from what is seen in SceneBuilder when the App is run.

SceneBuilder
Screenshot from 2023-04-20 02-39-06

App
Screenshot from 2023-04-20 02-42-37

You need to add the Theme on the Scene with MFXThemeManager, for SceneBuilder it is done automaticall

This was added, am following the demo app. I have tried adding a Theme on the very Screen too but nothing is working. Could you show how this can be done best please.

This was added, am following the demo app. I have tried adding a Theme on the very Screen too but nothing is working. Could you show how this can be done best please.

Scene scene = ...;
MFXThemeManager.PURPLE_LIGHT.addOn(scene);

P.S: Beware modules present on the rewrite branch are work in progress (especially components). APIs and behaviors are likely to change.

Thank you for the help, I would want to contribute to this Library in the near by time.
Though am not well vast with creating JavaFX Libraries.