Skip to content

Commit

Permalink
Merge pull request #124 from Yufannnn/update-user-guide
Browse files Browse the repository at this point in the history
Update user guide GUI Section
  • Loading branch information
szejiancheng authored Mar 30, 2023
2 parents 12064df + 44eca33 commit 7f20c71
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 78 deletions.
183 changes: 115 additions & 68 deletions docs/UserGuide.md

Large diffs are not rendered by default.

Binary file added docs/images/Exams.jpg
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/GUI.jpg
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/Homework.jpg
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/Lessons.jpg
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/Profile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package seedu.address.logic.commands.exceptions;

import seedu.address.logic.commands.Command;

/**
* Represents an error which occurs during execution of a {@link Command}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public FilledExamsContent(Student student) {
studentName = student.getName();

name.setText(String.format("First Name: %s", student.getName().getFirstName()));
pastExamsListName.setText("All Exams: ");
pastExamsListName.setText(PAST_EXAMS_LIST_NAME);

// Set the past exams list panel to display the past exams of the student
ObservableList<Exam> pastExamsList = student.getPastExamsList();
Expand Down
21 changes: 13 additions & 8 deletions src/main/resources/view/ProfileContent.fxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.geometry.Insets?>
Expand All @@ -9,12 +10,16 @@
<padding>
<Insets top="10" right="10" bottom="10" left="10" />
</padding>
<VBox fx:id="profileContent" spacing="10">
<Label fx:id="name" alignment="TOP_LEFT" styleClass="studentNameLabel" text="Name" />
<Label fx:id="phone" alignment="TOP_LEFT" text="Phone" />
<Label fx:id="address" alignment="TOP_LEFT" text="Address"/>
<Label fx:id="email" alignment="TOP_LEFT" text="Email" />

<VBox fx:id="tagsContainer" spacing="5" />
</VBox>
<ScrollPane fx:id="detailedContentScroll" hbarPolicy="ALWAYS">
<padding>
<Insets top="10" right="10" bottom="10" left="10" />
</padding>
<VBox fx:id="profileContent" spacing="10">
<Label fx:id="name" alignment="TOP_LEFT" styleClass="studentNameLabel" text="Name" />
<Label fx:id="phone" alignment="TOP_LEFT" text="Phone" />
<Label fx:id="address" alignment="TOP_LEFT" text="Address" />
<Label fx:id="email" alignment="TOP_LEFT" text="Email" />
<VBox fx:id="tagsContainer" spacing="5" />
</VBox>
</ScrollPane>
</StackPane>
9 changes: 8 additions & 1 deletion src/main/resources/view/stylesheet/DetailedInfoRegion.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

#welcomeMessage {
-fx-font-size: 12pt;
-fx-font-size: 13pt;
-fx-font-family: "Comic Sans MS";
-fx-text-fill: #1d1d1d;
}
Expand Down Expand Up @@ -52,3 +52,10 @@

#homeworkPieChart.default-color0.chart-pie { -fx-pie-color: #ffd700; }
#homeworkPieChart.default-color1.chart-pie { -fx-pie-color: #ffa500; }

#detailedContentScroll {
-fx-background-color: #f5f5f5;
-fx-border-width: 2;
-fx-border-color: black;
-fx-border-radius: 5;
}

0 comments on commit 7f20c71

Please sign in to comment.