HanSolo / medusa

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

Turn off shadow text on Gauge with SkinType.DIGITAL #148

Closed DJViking closed 6 years ago

DJViking commented 6 years ago

There is shadow text under title, subtitle, unit and value on Gauge SkinType.DIGITAL Is this intended feature of this skin or a bug?

screenshot_20180613_202832

I managed to remove the shadow text from the textValue by removing

backgroundCtx.fillText(new String(bkgTitleChrs), center, size * 0.35, size * 0.55);
backgroundCtx.fillText(new String(bkgSubTitleChrs), center, size * 0.66);
backgroundCtx.fillText(new String(bkgUnitChrs), center, size * 0.88);
valueBkgText.setText(valueBkg.toString());

screenshot_20180613_222951

I didn't like the shadow text. Trying to mimic the real thing digital displays of old. Perhaps have a property to allow turning off the shadow text.

Just to point out: I have two monitors. This shadow text is not visible on the older 1080p monitor, but shows clearly on my newer 1440p monitor.

HanSolo commented 6 years ago

Fixed with commit #2a8be2aa603cfd3781b538c0a995. Now you can make use of shadowsEnabled property to switch of the background.

DJViking commented 6 years ago

Great thanks