Skip to content

Commit

Permalink
Merge pull request #98 from zxisatree/list-title
Browse files Browse the repository at this point in the history
Add labels for patient and appointment lists
  • Loading branch information
zxisatree authored Mar 30, 2023
2 parents f38bf3a + dbb0a81 commit f30010f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ The delete appointment command allows the user to delete an existing appointment

**Design considerations**

We originally wanted to identify Appointments by their `AppointmentId` instead of their index as we expect to identify each appointment by their own unique IDs. However,
We originally wanted to identify Appointments by their `AppointmentId` instead of their index as we expect to identify each appointment by their own unique IDs. However, we chose to use indexes in a similar fashion to patients so that users would not need to confuse themselves with two different types of commands.

### \[Proposed\] Undo/redo feature

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/view/AppointmentListPanel.fxml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.VBox?>

<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<ListView fx:id="appointmentListView" VBox.vgrow="ALWAYS" />
<Label fx:id="patientListLabel" styleClass="list_label" text="Appointments"/>
<ListView fx:id="appointmentListView" VBox.vgrow="ALWAYS"/>
</VBox>
7 changes: 7 additions & 0 deletions src/main/resources/view/DarkTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,10 @@
-fx-background-radius: 2;
-fx-font-size: 11;
}

.list_label {
-fx-font-size: 32;
-fx-text-fill: white;
-fx-alignment: CENTER;
-fx-max-width: 1000px;
}
4 changes: 3 additions & 1 deletion src/main/resources/view/PatientListPanel.fxml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.VBox?>

<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
<ListView fx:id="patientListView" VBox.vgrow="ALWAYS" />
<Label fx:id="patientListLabel" styleClass="list_label" text="Patients"/>
<ListView fx:id="patientListView" VBox.vgrow="ALWAYS"/>
</VBox>

0 comments on commit f30010f

Please # to comment.