diff --git a/src/main/java/com/sparrowwallet/sparrow/control/QRDisplayDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/QRDisplayDialog.java index 632f013f..69feff22 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/QRDisplayDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/QRDisplayDialog.java @@ -225,19 +225,15 @@ public class QRDisplayDialog extends Dialog { private void setLegacyGraphic(ToggleButton legacy, boolean useLegacyEncoding) { if(useLegacyEncoding) { - legacy.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE, "success")); + legacy.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE)); } else { - legacy.setGraphic(getGlyph(FontAwesome5.Glyph.QUESTION_CIRCLE, null)); + legacy.setGraphic(getGlyph(FontAwesome5.Glyph.QUESTION_CIRCLE)); } } - private Glyph getGlyph(FontAwesome5.Glyph glyphName, String styleClass) { + private Glyph getGlyph(FontAwesome5.Glyph glyphName) { Glyph glyph = new Glyph(FontAwesome5.FONT_NAME, glyphName); - glyph.setFontSize(12); - if(styleClass != null) { - glyph.getStyleClass().add(styleClass); - } - + glyph.setFontSize(11); return glyph; } } diff --git a/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java b/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java index 06cffa35..0ebfce5d 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/QRScanDialog.java @@ -505,19 +505,15 @@ public class QRScanDialog extends Dialog { private void setHdGraphic(ToggleButton hd, boolean isHd) { if(isHd) { - hd.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE, "success")); + hd.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE)); } else { - hd.setGraphic(getGlyph(FontAwesome5.Glyph.QUESTION_CIRCLE, null)); + hd.setGraphic(getGlyph(FontAwesome5.Glyph.QUESTION_CIRCLE)); } } - private Glyph getGlyph(FontAwesome5.Glyph glyphName, String styleClass) { + private Glyph getGlyph(FontAwesome5.Glyph glyphName) { Glyph glyph = new Glyph(FontAwesome5.FONT_NAME, glyphName); - glyph.setFontSize(12); - if(styleClass != null) { - glyph.getStyleClass().add(styleClass); - } - + glyph.setFontSize(11); return glyph; } } diff --git a/src/main/java/com/sparrowwallet/sparrow/glyphfont/FontAwesome5.java b/src/main/java/com/sparrowwallet/sparrow/glyphfont/FontAwesome5.java index fad35703..cf9fd058 100644 --- a/src/main/java/com/sparrowwallet/sparrow/glyphfont/FontAwesome5.java +++ b/src/main/java/com/sparrowwallet/sparrow/glyphfont/FontAwesome5.java @@ -45,7 +45,10 @@ public class FontAwesome5 extends GlyphFont { SATELLITE_DISH('\uf7c0'), SD_CARD('\uf7c2'), SEARCH('\uf002'), + SQUARE('\uf0c8'), TIMES_CIRCLE('\uf057'), + TOGGLE_OFF('\uf204'), + TOGGLE_ON('\uf205'), TOOLS('\uf7d9'), UNDO('\uf0e2'), WALLET('\uf555');