mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-01-27 18:51:11 +00:00
minor ui tweaks
This commit is contained in:
parent
ad44fe2335
commit
cc202ce4ca
3 changed files with 11 additions and 16 deletions
|
@ -225,19 +225,15 @@ public class QRDisplayDialog extends Dialog<UR> {
|
||||||
|
|
||||||
private void setLegacyGraphic(ToggleButton legacy, boolean useLegacyEncoding) {
|
private void setLegacyGraphic(ToggleButton legacy, boolean useLegacyEncoding) {
|
||||||
if(useLegacyEncoding) {
|
if(useLegacyEncoding) {
|
||||||
legacy.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE, "success"));
|
legacy.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE));
|
||||||
} else {
|
} 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 glyph = new Glyph(FontAwesome5.FONT_NAME, glyphName);
|
||||||
glyph.setFontSize(12);
|
glyph.setFontSize(11);
|
||||||
if(styleClass != null) {
|
|
||||||
glyph.getStyleClass().add(styleClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
return glyph;
|
return glyph;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -505,19 +505,15 @@ public class QRScanDialog extends Dialog<QRScanDialog.Result> {
|
||||||
|
|
||||||
private void setHdGraphic(ToggleButton hd, boolean isHd) {
|
private void setHdGraphic(ToggleButton hd, boolean isHd) {
|
||||||
if(isHd) {
|
if(isHd) {
|
||||||
hd.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE, "success"));
|
hd.setGraphic(getGlyph(FontAwesome5.Glyph.CHECK_CIRCLE));
|
||||||
} else {
|
} 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 glyph = new Glyph(FontAwesome5.FONT_NAME, glyphName);
|
||||||
glyph.setFontSize(12);
|
glyph.setFontSize(11);
|
||||||
if(styleClass != null) {
|
|
||||||
glyph.getStyleClass().add(styleClass);
|
|
||||||
}
|
|
||||||
|
|
||||||
return glyph;
|
return glyph;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,10 @@ public class FontAwesome5 extends GlyphFont {
|
||||||
SATELLITE_DISH('\uf7c0'),
|
SATELLITE_DISH('\uf7c0'),
|
||||||
SD_CARD('\uf7c2'),
|
SD_CARD('\uf7c2'),
|
||||||
SEARCH('\uf002'),
|
SEARCH('\uf002'),
|
||||||
|
SQUARE('\uf0c8'),
|
||||||
TIMES_CIRCLE('\uf057'),
|
TIMES_CIRCLE('\uf057'),
|
||||||
|
TOGGLE_OFF('\uf204'),
|
||||||
|
TOGGLE_ON('\uf205'),
|
||||||
TOOLS('\uf7d9'),
|
TOOLS('\uf7d9'),
|
||||||
UNDO('\uf0e2'),
|
UNDO('\uf0e2'),
|
||||||
WALLET('\uf555');
|
WALLET('\uf555');
|
||||||
|
|
Loading…
Reference in a new issue