mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
tor status windows visual fixes
This commit is contained in:
parent
e12f7a634a
commit
c55b19af0f
1 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ import javafx.scene.control.Label;
|
||||||
import javafx.scene.control.Tooltip;
|
import javafx.scene.control.Tooltip;
|
||||||
import javafx.util.Duration;
|
import javafx.util.Duration;
|
||||||
import org.controlsfx.glyphfont.Glyph;
|
import org.controlsfx.glyphfont.Glyph;
|
||||||
|
import org.controlsfx.tools.Platform;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ public class TorStatusLabel extends Label {
|
||||||
|
|
||||||
public TorStatusLabel() {
|
public TorStatusLabel() {
|
||||||
getStyleClass().add("tor-status");
|
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());
|
setGraphic(getIcon());
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
@ -59,7 +60,7 @@ public class TorStatusLabel extends Label {
|
||||||
|
|
||||||
private Node getIcon() {
|
private Node getIcon() {
|
||||||
Glyph adjust = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.ADJUST);
|
Glyph adjust = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.ADJUST);
|
||||||
adjust.setFontSize(15);
|
adjust.setFontSize(Platform.getCurrent() == Platform.WINDOWS ? 14 : 15);
|
||||||
adjust.setRotate(180);
|
adjust.setRotate(180);
|
||||||
|
|
||||||
Glyph bullseye = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.BULLSEYE);
|
Glyph bullseye = new Glyph(FontAwesome5.FONT_NAME, FontAwesome5.Glyph.BULLSEYE);
|
||||||
|
|
Loading…
Reference in a new issue