diff --git a/.classpath b/.classpath deleted file mode 100644 index f3a1f5f..0000000 --- a/.classpath +++ /dev/null @@ -1,420 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index dd47242..0000000 --- a/.project +++ /dev/null @@ -1,17 +0,0 @@ - - - OOPP - - - - org.eclipse.jdt.core.javanature - - - - org.eclipse.jdt.core.javabuilder - - - - - - diff --git a/CSE1105.checkstyle.xml b/CSE1105.checkstyle.xml deleted file mode 100644 index d0fe4b0..0000000 --- a/CSE1105.checkstyle.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/classes/production/OOPP/META-INF/OOPP.kotlin_module b/classes/production/OOPP/META-INF/OOPP.kotlin_module deleted file mode 100644 index 8fb6019..0000000 Binary files a/classes/production/OOPP/META-INF/OOPP.kotlin_module and /dev/null differ diff --git a/src/Client/src/main/java/greenify/client/Application.java b/src/Client/src/main/java/greenify/client/Application.java index a8e7d4f..f484329 100644 --- a/src/Client/src/main/java/greenify/client/Application.java +++ b/src/Client/src/main/java/greenify/client/Application.java @@ -53,10 +53,6 @@ public class Application extends javafx.application.Application { primaryStage.setTitle("Greenify"); //set the scene Scene scene = new Scene(rootNode); - //add the stylesheet - scene.getStylesheets() - .add(getClass().getClassLoader().getResource("stylesheets/LoginWindowStyle.css") - .toExternalForm()); primaryStage.setScene(scene); primaryStage.show(); } 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 f9e34fa..8113fb9 100644 --- a/src/Client/src/main/java/greenify/client/controller/DashBoardController.java +++ b/src/Client/src/main/java/greenify/client/controller/DashBoardController.java @@ -39,7 +39,7 @@ public class DashBoardController { @FXML private Label welcomebacktext; - FadeTransition fadeTrans; //transition for switching between the different panels + private FadeTransition fadeTrans; /** * loads the 'welcome back' text before anything else. @@ -60,7 +60,6 @@ public class DashBoardController { fadeTrans.play(); } - /** * displays the dashboard pane. * @param event the event (clicking the button) @@ -81,7 +80,6 @@ public class DashBoardController { */ public void displayActivities(ActionEvent event) { addFadeTransition(activitiesPane); - totalVeganMealCounter.setText("" + userService.currentUser.getVeganMeal()); System.out.println("display activities"); dashboardPane.setVisible(false); @@ -100,8 +98,6 @@ public class DashBoardController { dashboardPane.setVisible(false); userPane.setVisible(true); activitiesPane.setVisible(false); - - } /** @@ -109,8 +105,6 @@ public class DashBoardController { * @param event the event (clicking the button) */ public void addVeganMeal(ActionEvent event) { - FadeTransition updateTrans = new FadeTransition(Duration.millis(200), totalVeganMealCounter); - count++; int net = userService.currentUser.getVeganMeal() + count; totalVeganMealCounter.setText("" + net); @@ -120,4 +114,4 @@ public class DashBoardController { userService.currentUser.getName()); System.out.println("Vegetarian meal is added"); } -} \ No newline at end of file +} diff --git a/src/Client/src/main/resources/fxml/dashboard.fxml b/src/Client/src/main/resources/fxml/dashboard.fxml index d0ec88a..9c82caf 100644 --- a/src/Client/src/main/resources/fxml/dashboard.fxml +++ b/src/Client/src/main/resources/fxml/dashboard.fxml @@ -216,3 +216,4 @@ + diff --git a/src/Client/src/main/resources/fxml/sample.fxml b/src/Client/src/main/resources/fxml/sample.fxml index 9087fc3..ea80989 100644 --- a/src/Client/src/main/resources/fxml/sample.fxml +++ b/src/Client/src/main/resources/fxml/sample.fxml @@ -1,14 +1,10 @@ - - - - @@ -17,15 +13,15 @@ - +