round border fix

This commit is contained in:
sirjonasxx 2022-02-16 04:21:26 +01:00
parent 77dfd67b3d
commit 3d7b1fa7dd
4 changed files with 13 additions and 0 deletions

View File

@ -79,6 +79,7 @@ public class TitleBarController {
controller.config = config; controller.config = config;
stage.initStyle(StageStyle.TRANSPARENT); stage.initStyle(StageStyle.TRANSPARENT);
stage.getScene().setFill(Color.TRANSPARENT); stage.getScene().setFill(Color.TRANSPARENT);
stage.getScene().getRoot().getStyleClass().add("root-node");
stage.titleProperty().addListener((i) -> controller.setTitle(stage.getTitle())); stage.titleProperty().addListener((i) -> controller.setTitle(stage.getTitle()));
controller.setTitle(stage.getTitle()); controller.setTitle(stage.getTitle());

View File

@ -954,6 +954,10 @@ VBox > .split-menu-button.last > .arrow-button {
-fx-background-radius: 0 0 10 10; -fx-background-radius: 0 0 10 10;
} }
.root-node {
-fx-background-radius: 0 0 10 10;
}
#icon { #icon {
/*-fx-image: url("logoSmall.png");*/ /*-fx-image: url("logoSmall.png");*/
} }

View File

@ -996,6 +996,10 @@ VBox > .split-menu-button.last > .arrow-button {
-fx-background-radius: 0 0 10 10; -fx-background-radius: 0 0 10 10;
} }
.root-node {
-fx-background-radius: 0 0 10 10;
}
#icon { #icon {
/*-fx-image: url("logoSmall.png");*/ /*-fx-image: url("logoSmall.png");*/
} }

View File

@ -953,6 +953,10 @@ VBox > .split-menu-button.last > .arrow-button {
-fx-background-radius: 0 0 10 10; -fx-background-radius: 0 0 10 10;
} }
.root-node {
-fx-background-radius: 0 0 10 10;
}
#icon { #icon {
/*-fx-image: url("logoSmall.png");*/ /*-fx-image: url("logoSmall.png");*/
} }