Fix issue with badge icon and increased spacing of main menu items

This commit is contained in:
Christoph Atteneder 2018-02-07 15:49:23 +01:00
parent 0690fc1a18
commit ae10cb6c4e
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B

View file

@ -233,8 +233,8 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
root.widthProperty().addListener((observable, oldValue, newValue) -> { root.widthProperty().addListener((observable, oldValue, newValue) -> {
double w = (double) newValue; double w = (double) newValue;
if (w > 0) { if (w > 0) {
leftNavPane.setSpacing(w >= 1080 ? 10 : 5); leftNavPane.setSpacing(w >= 1080 ? 12 : 6);
rightNavPane.setSpacing(w >= 1080 ? 10 : 5); rightNavPane.setSpacing(w >= 1080 ? 12 : 6);
} }
}); });
@ -675,7 +675,6 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
label.setId("nav-alert-label"); label.setId("nav-alert-label");
ImageView icon = new ImageView(); ImageView icon = new ImageView();
icon.setLayoutX(0.5);
icon.setId("image-alert-round"); icon.setId("image-alert-round");
Pane notification = new Pane(); Pane notification = new Pane();
@ -694,7 +693,6 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
label.setId("nav-alert-label"); label.setId("nav-alert-label");
ImageView icon = new ImageView(); ImageView icon = new ImageView();
icon.setLayoutX(0.5);
icon.setId("image-alert-round"); icon.setId("image-alert-round");
Pane notification = new Pane(); Pane notification = new Pane();