ADD::Added hover effects
This commit is contained in:
@@ -71,6 +71,7 @@ public class DashBoardController {
|
|||||||
*/
|
*/
|
||||||
public void displayActivities(ActionEvent event) {
|
public void displayActivities(ActionEvent event) {
|
||||||
addFadeTransition(activitiesPane);
|
addFadeTransition(activitiesPane);
|
||||||
|
|
||||||
totalVeganMealCounter.setText("" + userService.currentUser.getVeganMeal());
|
totalVeganMealCounter.setText("" + userService.currentUser.getVeganMeal());
|
||||||
System.out.println("display activities");
|
System.out.println("display activities");
|
||||||
dashboardPane.setVisible(false);
|
dashboardPane.setVisible(false);
|
||||||
@@ -98,6 +99,8 @@ public class DashBoardController {
|
|||||||
* @param event the event (clicking the button)
|
* @param event the event (clicking the button)
|
||||||
*/
|
*/
|
||||||
public void addVeganMeal(ActionEvent event) {
|
public void addVeganMeal(ActionEvent event) {
|
||||||
|
FadeTransition updateTrans = new FadeTransition(Duration.millis(200), totalVeganMealCounter);
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
int net = userService.currentUser.getVeganMeal() + count;
|
int net = userService.currentUser.getVeganMeal() + count;
|
||||||
totalVeganMealCounter.setText("" + net);
|
totalVeganMealCounter.setText("" + net);
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
#dashboardButton {
|
#dashboardButton {
|
||||||
-fx-background-color: #5a635c;
|
-fx-background-color: #5a635c;
|
||||||
}
|
}
|
||||||
|
#dashboardButton:hover {
|
||||||
|
-fx-background-color: #677069;
|
||||||
|
}
|
||||||
#dashboardButton:pressed {
|
#dashboardButton:pressed {
|
||||||
-fx-background-color: #b7e2c2;
|
-fx-background-color: #b7e2c2;
|
||||||
}
|
}
|
||||||
@@ -19,6 +22,9 @@
|
|||||||
#userButton {
|
#userButton {
|
||||||
-fx-background-color: #5a635c;
|
-fx-background-color: #5a635c;
|
||||||
}
|
}
|
||||||
|
#userButton:hover {
|
||||||
|
-fx-background-color: #677069;
|
||||||
|
}
|
||||||
#userButton:pressed {
|
#userButton:pressed {
|
||||||
-fx-background-color: #b7e2c2;
|
-fx-background-color: #b7e2c2;
|
||||||
}
|
}
|
||||||
@@ -26,6 +32,9 @@
|
|||||||
#activitiesButton {
|
#activitiesButton {
|
||||||
-fx-background-color: #5a635c;
|
-fx-background-color: #5a635c;
|
||||||
}
|
}
|
||||||
|
#activitiesButton:hover {
|
||||||
|
-fx-background-color: #677069;
|
||||||
|
}
|
||||||
#activitiesButton:pressed {
|
#activitiesButton:pressed {
|
||||||
-fx-background-color: #b7e2c2;
|
-fx-background-color: #b7e2c2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user