ADD::added stylesheet for login window

added style to the buttons, the same as in the register window
changed the font of the title
changed the font and color of the 'forgot password' link

ADD::added display of name on dashboard

added initialize method to set the 'welcome back' text to include the username of the user
This commit is contained in:
Sem van der Hoeven
2019-03-18 14:43:15 +01:00
parent baa681833e
commit 6a71823885
5 changed files with 32 additions and 6 deletions

View File

@@ -43,6 +43,8 @@ public class Application extends javafx.application.Application {
Parent rootNode = load(this.getClass().getClassLoader().getResource("fxml/sample.fxml"));
primaryStage.setTitle("Greenify");
Scene scene = new Scene(rootNode);
scene.getStylesheets()
.add(getClass().getClassLoader().getResource("stylesheets/LoginWindowStyle.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.show();
}

View File

@@ -30,6 +30,14 @@ public class DashBoardController {
@FXML
private Label totalVeganMealCounter;
@FXML
private Label welcomebacktext;
public void initialize() {
welcomebacktext.setText("Welcome back " + userService.currentUser.getName() + "!");
}
/**
* displays the dashboard pane.
* @param event the event (clicking the button)
@@ -39,6 +47,7 @@ public class DashBoardController {
dashboardPane.setVisible(true);
userPane.setVisible(false);
activitiesPane.setVisible(false);
}
/**