ADD::Added hover effects
This commit is contained in:
@@ -71,6 +71,7 @@ public class DashBoardController {
|
||||
*/
|
||||
public void displayActivities(ActionEvent event) {
|
||||
addFadeTransition(activitiesPane);
|
||||
|
||||
totalVeganMealCounter.setText("" + userService.currentUser.getVeganMeal());
|
||||
System.out.println("display activities");
|
||||
dashboardPane.setVisible(false);
|
||||
@@ -98,6 +99,8 @@ 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);
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
#dashboardButton {
|
||||
-fx-background-color: #5a635c;
|
||||
}
|
||||
#dashboardButton:hover {
|
||||
-fx-background-color: #677069;
|
||||
}
|
||||
#dashboardButton:pressed {
|
||||
-fx-background-color: #b7e2c2;
|
||||
}
|
||||
@@ -19,6 +22,9 @@
|
||||
#userButton {
|
||||
-fx-background-color: #5a635c;
|
||||
}
|
||||
#userButton:hover {
|
||||
-fx-background-color: #677069;
|
||||
}
|
||||
#userButton:pressed {
|
||||
-fx-background-color: #b7e2c2;
|
||||
}
|
||||
@@ -26,6 +32,9 @@
|
||||
#activitiesButton {
|
||||
-fx-background-color: #5a635c;
|
||||
}
|
||||
#activitiesButton:hover {
|
||||
-fx-background-color: #677069;
|
||||
}
|
||||
#activitiesButton:pressed {
|
||||
-fx-background-color: #b7e2c2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user