From c55b19af0fd251688a57881cbe55684bc3cf8bcf Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 21 Sep 2021 11:55:23 +0200 Subject: [PATCH] tor status windows visual fixes --- .../com/sparrowwallet/sparrow/control/TorStatusLabel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TorStatusLabel.java b/src/main/java/com/sparrowwallet/sparrow/control/TorStatusLabel.java index 4511b6f0..f4eb5a54 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TorStatusLabel.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TorStatusLabel.java @@ -13,6 +13,7 @@ import javafx.scene.control.Label; import javafx.scene.control.Tooltip; import javafx.util.Duration; import org.controlsfx.glyphfont.Glyph; +import org.controlsfx.tools.Platform; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -26,7 +27,7 @@ public class TorStatusLabel extends Label { public TorStatusLabel() { getStyleClass().add("tor-status"); - setPadding(new Insets(1, 0, 0, 3)); + setPadding(Platform.getCurrent() == Platform.WINDOWS ? new Insets(0, 0, 1, 3) : new Insets(1, 0, 0, 3)); setGraphic(getIcon()); update(); } @@ -59,7 +60,7 @@ public class TorStatusLabel extends Label { private Node getIcon() { Glyph adjust = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.ADJUST); - adjust.setFontSize(15); + adjust.setFontSize(Platform.getCurrent() == Platform.WINDOWS ? 14 : 15); adjust.setRotate(180); Glyph bullseye = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.BULLSEYE);