Skip to content

Commit

Permalink
Merge branch 'master' into branch-removeUnusedDevGuide
Browse files Browse the repository at this point in the history
  • Loading branch information
SwaminathanViswa authored Nov 6, 2024
2 parents 8f2bbec + 70c7db8 commit 9ff7a7e
Show file tree
Hide file tree
Showing 22 changed files with 90 additions and 51 deletions.
95 changes: 57 additions & 38 deletions docs/UserGuide.md

Large diffs are not rendered by default.

Binary file added docs/images/excelKnownIssue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/filterFriendsTagByFilter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/findAlexCharlotte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/findFriendsTagByFilter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/githubUsage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/helpMessage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/loadingPageOfUi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/markAlexAbsent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/markAlexPresent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/markPresent.png
Binary file not shown.
Binary file added docs/images/sortByNameDesc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/sortExample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/sortReset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/unmarkStudent.png
Binary file not shown.
Binary file modified docs/images/validCSV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/validCSV1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/viewWindowScreenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/main/java/seedu/address/ui/PersonCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.logic.parser.ParserUtil;
import seedu.address.model.person.Person;

/**
Expand Down Expand Up @@ -38,6 +39,8 @@ public class PersonCard extends UiPart<Region> {
private Label telegram;
@FXML
private Label github;
@FXML
private FlowPane weekLabel;

/**
* Creates a {@code PersonCode} with the given {@code Person} and index to display.
Expand All @@ -56,6 +59,27 @@ public PersonCard(Person person, int displayedIndex) {
} else {
github.setText("GitHub username unspecified");
}

Label labelOfWeek = new Label("Weeks attended: ");
if (!person.getWeeksPresent().isEmpty()) {
labelOfWeek.getStyleClass().add("information-label");
weekLabel.getChildren().add(labelOfWeek);

for (int week = 0; week <= ParserUtil.MAX_WEEK; week++) {
Label weekLabelNode = new Label(String.valueOf(week));

if (person.getWeeksPresent().contains(week)) {
weekLabelNode.getStyleClass().add("week-number-marked");
} else {
weekLabelNode.getStyleClass().add("week-number-unmarked");
}
weekLabel.getChildren().add(weekLabelNode);
}
} else {
labelOfWeek = new Label("No weeks attended");
labelOfWeek.getStyleClass().add("information-label");
weekLabel.getChildren().add(labelOfWeek);
}
}

}
18 changes: 7 additions & 11 deletions src/main/resources/view/DarkTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,6 @@
-fx-text-fill: #010504;
}

.hyperlink {
-fx-font-family: "Segoe UI"; /* Inherit font-family */
-fx-font-size: 13px; /* Inherit font-size */
-fx-text-fill: #E2F1E7; /* Change to a lighter color for hyperlinks */
-fx-underline: true; /* Ensure hyperlink is underlined */
}

.hyperlink:hover {
-fx-text-fill: #2b4274; /* Change color on hover */
}

.stack-pane {
-fx-background-color: derive(#1d1d1d, 20%);
}
Expand Down Expand Up @@ -372,6 +361,12 @@
-fx-font-size: 20;
}

#weekLabel .information-label {
-fx-font-family: "Segoe UI";
-fx-text-fill: D6BD98;
-fx-font-size: 12;
}

#weekLabel .week-number-marked {
-fx-text-fill: white;
-fx-background-color: green;
Expand All @@ -391,6 +386,7 @@
}

#fieldLabel {
-fx-font-family: "Segoe UI";
-fx-text-fill: D6BD98;
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/view/PersonListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
<Label id="fieldLabel" styleClass="cell_small_label" text="Github: " />
<Label fx:id="github" styleClass="cell_small_label" text="\$github" />
</HBox>
<!--Align to the right -->

<FlowPane fx:id="weekLabel" />
</VBox>
</GridPane>
</HBox>
1 change: 0 additions & 1 deletion src/main/resources/view/ViewWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.GridPane?>

<?import javafx.scene.layout.VBox?>

Expand Down

0 comments on commit 9ff7a7e

Please sign in to comment.