|
|
@ -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); |
|
|
|