HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
688 stars 129 forks source link

SpaceX skin visual glitches #168

Closed QuigonJohnn closed 5 years ago

QuigonJohnn commented 5 years ago

When using the SpaceX skin, certain combinations of min, threshold and max values cause the gauge to lose its shape and grow beyond its bounds.

head temp

min: 0 threshold: 80 max: 150

HanSolo commented 5 years ago

Could you provide a short snippet that shows the effect please?

QuigonJohnn commented 5 years ago

This is how I made this one, but using the same values in scene builder leads to the same result

    GaugeBuilder builder = GaugeBuilder.create().skinType(Gauge.SkinType.SPACE_X);

    Gauge gauge = builder.minValue(0).maxValue(150).unit("\u2103").valueVisible(true).build();
    gauge.setTitleColor(Color.BLACK);
    gauge.setBarBackgroundColor(Color.rgb(217, 217, 217));
    gauge.setValueColor(Color.BLACK);
    gauge.setUnitColor(Color.BLACK);
    gauge.setAnimated(true);
    gauge.setThreshold(80);
HanSolo commented 5 years ago

Should hopefully be fixed with commit: #1321e4925dcde659028d4b296e49e316494c114c