mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-07-02 22:35:33 +02:00
auto background
This commit is contained in:
parent
64dea6fc0f
commit
f5e99924de
|
@ -78,8 +78,6 @@ public class TitleBarController {
|
||||||
controller.stage = stage;
|
controller.stage = stage;
|
||||||
controller.config = config;
|
controller.config = config;
|
||||||
stage.initStyle(StageStyle.TRANSPARENT);
|
stage.initStyle(StageStyle.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());
|
||||||
|
@ -88,6 +86,9 @@ public class TitleBarController {
|
||||||
controller.updateIcon();
|
controller.updateIcon();
|
||||||
|
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
|
stage.getScene().setFill(Color.TRANSPARENT);
|
||||||
|
stage.getScene().getRoot().getStyleClass().add("root-node");
|
||||||
|
|
||||||
controller.themeBtn.setVisible(config.displayThemePicker());
|
controller.themeBtn.setVisible(config.displayThemePicker());
|
||||||
if (!config.displayMinimizeButton()) {
|
if (!config.displayMinimizeButton()) {
|
||||||
((GridPane) controller.minimizeBtn.getParent()).getChildren().remove(controller.minimizeBtn);
|
((GridPane) controller.minimizeBtn.getParent()).getChildren().remove(controller.minimizeBtn);
|
||||||
|
|
|
@ -9,7 +9,11 @@
|
||||||
|
|
||||||
.themed-background {
|
.themed-background {
|
||||||
-fx-background-color: white;
|
-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 {
|
.button,.menu-button,.toggle-button,.split-menu-button {
|
||||||
|
|
|
@ -10,7 +10,11 @@
|
||||||
|
|
||||||
.themed-background {
|
.themed-background {
|
||||||
-fx-background-color: #363636;
|
-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 {
|
.button,.menu-button,.toggle-button,.split-menu-button {
|
||||||
|
@ -1011,7 +1015,6 @@ VBox > .split-menu-button.last > .arrow-button {
|
||||||
/* Error window */
|
/* Error window */
|
||||||
.dialog-pane {
|
.dialog-pane {
|
||||||
-fx-background-color: #333333;
|
-fx-background-color: #333333;
|
||||||
-fx-background-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog-pane:header .header-panel {
|
.dialog-pane:header .header-panel {
|
||||||
|
|
|
@ -7,9 +7,13 @@
|
||||||
-fx-border-width: 0 1 1 1;
|
-fx-border-width: 0 1 1 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.themed-background {
|
.themed-background{
|
||||||
-fx-background-color: white;
|
-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 {
|
.button,.menu-button,.toggle-button,.split-menu-button {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user