Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a GaugeSkin removes Color Settings #217

Open
Pureandy opened this issue Jan 12, 2022 · 2 comments
Open

Setting a GaugeSkin removes Color Settings #217

Pureandy opened this issue Jan 12, 2022 · 2 comments

Comments

@Pureandy
Copy link

Hello Gerrit,

When I change the GaugeSkin with: gauge.setSkinType(...); it removes all my Color Settings that I did before.
If I set the Skin when Creating the Gauge: Gauge gauge = GaugeBuilder.create().skinType(curve.getSkinType()).build(); It works perfectly, without changing the Colors.

Any Idea how to fix this error?

@HanSolo
Copy link
Owner

HanSolo commented Jan 12, 2022

Yep the reason for this is the fact that each skin comes with some default settings which might overwrite custom settings. So you might want to apply the color settings after you have changed the skin type.

@Pureandy
Copy link
Author

Sadly that doesnt work for me.
I tried it as my first statement then changed the Color to something else and it just ignores the color change.
It could be a Problem from my Side since its a fairly large project.
I will see if I can try it in a new simple project today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants