mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 00:40:51 +01:00
auto background
This commit is contained in:
parent
64dea6fc0f
commit
f5e99924de
@ -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);
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user