auto background

This commit is contained in:
sirjonasxx 2022-02-16 17:32:54 +01:00
parent 64dea6fc0f
commit f5e99924de
4 changed files with 19 additions and 7 deletions

View File

@ -78,8 +78,6 @@ public class TitleBarController {
controller.stage = stage;
controller.config = config;
stage.initStyle(StageStyle.TRANSPARENT);
stage.getScene().setFill(Color.TRANSPARENT);
stage.getScene().getRoot().getStyleClass().add("root-node");
stage.titleProperty().addListener((i) -> controller.setTitle(stage.getTitle()));
controller.setTitle(stage.getTitle());
@ -88,6 +86,9 @@ public class TitleBarController {
controller.updateIcon();
Platform.runLater(() -> {
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);

View File

@ -9,7 +9,11 @@
.themed-background {
-fx-background-color: white;
-fx-background-radius: 4;
}
.root-node > * {
-fx-background-color: white;
-fx-background-radius: 0 0 10 10;
}
.button,.menu-button,.toggle-button,.split-menu-button {

View File

@ -10,7 +10,11 @@
.themed-background {
-fx-background-color: #363636;
-fx-background-radius: 4;
}
.root-node > * {
-fx-background-color: #363636;
-fx-background-radius: 0 0 10 10;
}
.button,.menu-button,.toggle-button,.split-menu-button {
@ -1011,7 +1015,6 @@ VBox > .split-menu-button.last > .arrow-button {
/* Error window */
.dialog-pane {
-fx-background-color: #333333;
-fx-background-radius: 0;
}
.dialog-pane:header .header-panel {

View File

@ -7,9 +7,13 @@
-fx-border-width: 0 1 1 1;
}
.themed-background {
.themed-background{
-fx-background-color: white;
-fx-background-radius: 4;
}
.root-node > * {
-fx-background-color: white;
-fx-background-radius: 0 0 10 10;
}
.button,.menu-button,.toggle-button,.split-menu-button {