Fix black border due to display picker theme minimum width

This commit is contained in:
Ruan Gustavo 2022-02-17 17:21:04 -03:00
parent 5e30d24322
commit 067a214445

View File

@ -89,7 +89,6 @@ public class TitleBarController {
stage.getScene().setFill(Color.TRANSPARENT);
stage.getScene().getRoot().getStyleClass().add("root-node");
controller.themeBtn.setVisible(config.displayThemePicker());
if (!config.displayMinimizeButton()) {
((GridPane) controller.minimizeBtn.getParent()).getChildren().remove(controller.minimizeBtn);
}
@ -111,7 +110,6 @@ public class TitleBarController {
Platform.runLater(() -> titleLabel.setText(title));
}
public void handleCloseAction(MouseEvent event) {
config.onCloseClicked();
}