ADD::added style to friends table
This commit is contained in:
@@ -159,7 +159,8 @@ public class DashBoardController {
|
||||
public void displayUser(ActionEvent event) {
|
||||
System.out.println(userService.currentUser.getName());
|
||||
System.out.println(userService.getFootprint(userService.currentUser.getName()));
|
||||
footprintLabel.setText("" + userService.getFootprint(userService.currentUser.getName()));
|
||||
footprintLabel.setText("" + userService.getFootprint(userService.currentUser.getName())
|
||||
+ "\n tons CO2/year");
|
||||
usernameLabel.setText("" + userService.currentUser.getName());
|
||||
addFadeTransition(userPane);
|
||||
System.out.println("display user");
|
||||
|
||||
@@ -192,7 +192,12 @@
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Label fx:id="footprintLabel" alignment="CENTER" contentDisplay="CENTER" prefHeight="27.0" prefWidth="162.0" text="co2 footprint" textAlignment="CENTER">
|
||||
<Label fx:id="footprintLabel" alignment="CENTER" contentDisplay="CENTER" prefHeight="41.0" prefWidth="162.0" text="co2 footprint" textAlignment="CENTER">
|
||||
<font>
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Label alignment="CENTER" contentDisplay="CENTER" prefHeight="41.0" prefWidth="162.0" text="tons CO2 / year" textAlignment="CENTER">
|
||||
<font>
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
|
||||
@@ -62,9 +62,23 @@
|
||||
/*-fx-background-color: linear-gradient(#4b7a3d, #588c58);*/
|
||||
-fx-background-color: #5a635c;
|
||||
|
||||
|
||||
}
|
||||
#friendsTable .column-header .label {
|
||||
-fx-text-fill: #d4d6d4;
|
||||
-fx-font-size: 18px;
|
||||
}
|
||||
|
||||
#friendsTable .table-cell {
|
||||
-fx-font-size: 17px;
|
||||
}
|
||||
|
||||
.table-row-cell {
|
||||
-fx-background-color: #c4f2cb;
|
||||
}
|
||||
|
||||
.table-row-cell:odd {
|
||||
-fx-background-color: #b7e2c2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user