支持重置日志字体 (#5182)
This commit is contained in:
@@ -238,7 +238,14 @@ public class PersonalizationPage extends StackPane {
|
|||||||
.fallbackTo(12.0)
|
.fallbackTo(12.0)
|
||||||
.asPredicate(Validator.addTo(txtLogFontSize)));
|
.asPredicate(Validator.addTo(txtLogFontSize)));
|
||||||
|
|
||||||
hBox.getChildren().setAll(cboLogFont, txtLogFontSize);
|
JFXButton clearButton = new JFXButton();
|
||||||
|
clearButton.getStyleClass().add("toggle-icon4");
|
||||||
|
clearButton.setGraphic(SVG.RESTORE.createIcon());
|
||||||
|
clearButton.setOnAction(e -> cboLogFont.setValue(null));
|
||||||
|
|
||||||
|
FXUtils.installFastTooltip(clearButton, i18n("button.reset"));
|
||||||
|
|
||||||
|
hBox.getChildren().setAll(cboLogFont, txtLogFontSize, clearButton);
|
||||||
|
|
||||||
borderPane.setRight(hBox);
|
borderPane.setRight(hBox);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user