mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-02-20 13:02:36 +01:00
Merge pull request #117 from ruangustavo/master
Fix black border due to display theme switcher
This commit is contained in:
commit
f5217e636f
@ -89,10 +89,13 @@ 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);
|
||||
}
|
||||
|
||||
if (!config.displayThemePicker()) {
|
||||
((GridPane) controller.themeBtn.getParent()).getChildren().remove(controller.themeBtn);
|
||||
}
|
||||
});
|
||||
return controller;
|
||||
}
|
||||
@ -107,7 +110,6 @@ public class TitleBarController {
|
||||
Platform.runLater(() -> titleLabel.setText(title));
|
||||
}
|
||||
|
||||
|
||||
public void handleCloseAction(MouseEvent event) {
|
||||
config.onCloseClicked();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user