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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user