HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
694 stars 131 forks source link

Zero not showing in scale when minvalue below zero #196

Closed Higgins328 closed 4 years ago

Higgins328 commented 4 years ago

Using the gauges since a few weeks back and think they are great. Found an issue thow and this is when using minvalues below zero. In this case the zero in the scale wont show, except for in the Modern skin. See screenshot below. I'm using Java 11.0.3 with OpenJFX

zero

HanSolo commented 4 years ago

Ok...thx for reporting...will take a look at it.

HanSolo commented 4 years ago

Hmm...checked with the following code:

gauge = GaugeBuilder.create()
                    .skinType(SkinType.MODERN)
                    .prefSize(400, 400)
                    .minValue(-50)
                    .maxValue(250)
                    .minorTickSpace(10)
                    .majorTickSpace(50)
                    .animated(true)
                    .build();

So you might want to provide the code you used to create the issue.

I've quickly tested with MODERN, GAUGE and DIGITAL and all of them show the "0" as you can see on the screenshots. Test 2020-07-24 12-31-43 Test 2020-07-24 12-32-04 Test 2020-07-24 12-32-24

Higgins328 commented 4 years ago

Found it! I was using .foregroundBaseColor(Color.BLACK) at same time as I use a black colored background, so the zero was there all the time but could not be seen. Changed the .foregroundBaseColor and now it all looks fine

HanSolo commented 4 years ago

Okidoki... 👍🏻