From 3cc01e4f4a22144c03dfd66aafcd9ba91389feff Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 8 Apr 2019 15:02:15 +0200 Subject: [PATCH] EDIT::added style to logout button --- .../client/controller/DashBoardController.java | 6 +++--- src/Client/src/main/resources/fxml/dashboard.fxml | 11 +++++++++-- .../src/main/resources/stylesheets/dashboardStyle.css | 11 +++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/Client/src/main/java/greenify/client/controller/DashBoardController.java b/src/Client/src/main/java/greenify/client/controller/DashBoardController.java index 8e3fae3..7ec63ec 100644 --- a/src/Client/src/main/java/greenify/client/controller/DashBoardController.java +++ b/src/Client/src/main/java/greenify/client/controller/DashBoardController.java @@ -317,7 +317,7 @@ public class DashBoardController { * Sorts the scores of users. * @param users the list of users */ - public void sortScores(List users) throws InterruptedException { + private void sortScores(List users) { for (int i = 0; i < users.size(); i++) { for (int j = 0; j < users.size(); j++) { Double first = userService.getFootprint(users.get(i)); @@ -340,7 +340,7 @@ public class DashBoardController { * Sorts the scores of users. * @param users the list of users */ - public List sortDiffScores(List users) throws InterruptedException { + private List sortDiffScores(List users) throws InterruptedException { for (int i = 0; i < users.size(); i++) { for (int j = 0; j < users.size(); j++) { Double firstDiff = userService.getFirstFootprint(users.get(i)) - userService @@ -366,7 +366,7 @@ public class DashBoardController { * Adds a fade transition for switching between the different panes. * @param node the node on which the transition needs to act */ - public void addFadeTransition(Node node) { + private void addFadeTransition(Node node) { fadeTrans = new FadeTransition(Duration.millis(400), node); fadeTrans.setFromValue(0); fadeTrans.setToValue(1.0); diff --git a/src/Client/src/main/resources/fxml/dashboard.fxml b/src/Client/src/main/resources/fxml/dashboard.fxml index 98d7c34..715220f 100644 --- a/src/Client/src/main/resources/fxml/dashboard.fxml +++ b/src/Client/src/main/resources/fxml/dashboard.fxml @@ -1,5 +1,12 @@ + + + + + + + @@ -18,7 +25,7 @@ - + @@ -47,7 +54,7 @@ -