Skip to content

Commit

Permalink
Merge pull request #248 from althea28/Fix-Command-Box-Visibility
Browse files Browse the repository at this point in the history
Fix command box visibility
  • Loading branch information
althea28 authored Nov 6, 2024
2 parents 646274a + d20d0cd commit d4d9d4e
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 26 deletions.
6 changes: 6 additions & 0 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ Format: `mark si/INDEX ai/INDEX`
Examples:
* `list` followed by `mark si/3 ai/1` marks the 1st assignment of the 3rd student in the app.
* `mark si/1 ai/1`

![result for 'mark si/1 ai/1'](images/mark.png)

### Unmarking an assignment: `unmark`

Expand All @@ -274,6 +276,8 @@ Format: `unmark si/INDEX ai/INDEX`
Examples:
* `unmark si/1 ai/1`

![result for 'unmark si/1 ai/1'](images/unmark.png)

### Grading an assignment: `grade`

Edits the score of an assignment belonging to a student and marks it as submitted.
Expand All @@ -300,6 +304,8 @@ Format: `remark si/INDEX r/REMARK`

Examples:
* `remark si/1 r/Weak in Math`

![result for 'remark si/1 r/Weak in Math'](images/remark.png)

### Clearing all entries : `clear`

Expand Down
Binary file added docs/images/mark.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/remark.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/unmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 20 additions & 19 deletions src/main/resources/view/DarkTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
-status-unsubmitted: #d55050;
}

.background { /*?*/
.background {
-fx-background-color: derive(-blue-dark, 20%);
background-color: #383838; /* Used in the default.html file */
background-color: #383838;
}

.label {
Expand Down Expand Up @@ -52,7 +52,7 @@
-fx-max-height: 0;
}

.table-view { /* ?*/
.table-view {
-fx-base: -blue-dark;
-fx-control-inner-background: -blue-dark;
-fx-background-color: -blue-dark;
Expand Down Expand Up @@ -89,12 +89,12 @@
-fx-background-color: -fx-focus-color;
}

.split-pane:horizontal .split-pane-divider { /*middle bar btwn 2 planes*/
.split-pane:horizontal .split-pane-divider {
-fx-background-color: derive(-white-dark, 20%);
-fx-border-color: transparent;
}

.split-pane { /*border arnd list and details panel*/
.split-pane {
-fx-border-radius: 1;
-fx-border-width: 1;
-fx-background-color: derive(-white-dark, 1%);
Expand All @@ -110,7 +110,7 @@
-fx-label-padding: 0 0 0 0;
-fx-graphic-text-gap : 0;
-fx-padding: 0 0 0 0;
-fx-background-color: derive(-white-blue,10%);
-fx-background-color: derive(-white-dark,30%);
}

.list-cell:filled:even {
Expand Down Expand Up @@ -160,45 +160,46 @@

.details_field_headers {
-fx-font-family: "Segoe UI";
-fx-font-size: 15px;
-fx-font-size: 20px;
-fx-text-fill: -text-dark;
}

.details-pane {
-fx-background-color: -white-light;
-fx-border-color: derive(-white-dark, 10%);
-fx-border-top-width: 1px;
-fx-alignment: top-left;
}

.details-pane .viewport {
-fx-background-color: -white-light;
}

.stack-pane { /*enter command bar*/
.stack-pane {
-fx-background-color: derive(-blue-dark, 20%);
}

.pane-with-border { /*border arnd command bar and feedback box*/
.pane-with-border {
-fx-background-color: derive(-blue-dark, 20%);
-fx-border-color: derive(-blue-dark, 10%);
-fx-border-top-width: 1px;
}

.results-pane { /*border arnd command bar and feedback box*/
.results-pane {
-fx-background-color: derive(-blue-dark, 20%);
-fx-border-color: derive(-white-dark, 10%);
-fx-border-top-width: 1px;
}

.status-bar { /*last bar addressbook.json*/
.status-bar {
-fx-background-color: derive(-blue-dark, 30%);
}

.result-display { /*bg color=border arnd feedback box*/
.result-display {
-fx-background-color: transparent;
-fx-font-family: "Segoe UI Light";
-fx-font-size: 13pt;
-fx-text-fill: white; /*feedback text*/
-fx-text-fill: white;
}

.result-display .label {
Expand All @@ -222,25 +223,25 @@
-fx-text-fill: white;
}

.grid-pane { /*?*/
.grid-pane {
-fx-background-color: derive(-blue-dark, 30%);
-fx-border-color: derive(-white-dark, 30%);
-fx-border-width: 1px;
}

.grid-pane .stack-pane { /*?*/
.grid-pane .stack-pane {
-fx-background-color: derive(-blue-dark, 30%);
}

.context-menu { /* file and help popup*/
.context-menu {
-fx-background-color: derive(-blue-dark, 50%);
}

.context-menu .label {
-fx-text-fill: white;
}

.menu-bar { /*file, help label*/
.menu-bar {
-fx-background-color: derive(-blue-dark, 20%);
}

Expand Down Expand Up @@ -304,7 +305,7 @@
-fx-background-color: derive(-fx-focus-color, 30%);
}

.dialog-pane { /*?*/
.dialog-pane {
-fx-background-color: -blue-dark;
}

Expand Down Expand Up @@ -380,7 +381,7 @@
-fx-effect: innershadow(gaussian, black, 10, 0, 0, 0);
}

#resultDisplay .content { /*1st is ?, 2nd is feedback box*/
#resultDisplay .content {
-fx-background-color: transparent, transparent, transparent, -blue-dark;
-fx-background-radius: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/view/Extensions.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

.error {
-fx-text-fill: #d06651 !important; /* The error class should always override the default text-fill style */
-fx-text-fill: #c60606 !important; /* The error class should always override the default text-fill style */
}

.list-cell:empty {
/* Empty cells will not have alternating colours */
-fx-background: #383838;
-fx-background: #e51515;
}

.tag-selector {
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/view/StudentDetailsPanel.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<padding>
<Insets bottom="5" left="15" right="5" top="5" />
</padding>
<HBox alignment="CENTER_LEFT" spacing="0.5">
<HBox alignment="TOP_LEFT" spacing="0.5">
<Label fx:id="id" styleClass="details_big_label">
<minWidth>
<Region fx:constant="USE_PREF_SIZE" />
Expand All @@ -45,7 +45,7 @@
</padding>
</FlowPane>
<HBox alignment="CENTER_LEFT">
<VBox minWidth="70" spacing="10">
<VBox minWidth="90" spacing="10">
<padding>
<Insets left="8" />
</padding>
Expand All @@ -57,7 +57,7 @@
</HBox>

<HBox alignment="CENTER_LEFT">
<VBox minWidth="70" spacing="10">
<VBox minWidth="90" spacing="10">
<padding>
<Insets left="8" />
</padding>
Expand All @@ -69,7 +69,7 @@
</HBox>

<HBox alignment="CENTER_LEFT">
<VBox minWidth="70" spacing="10">
<VBox minWidth="90" spacing="10">
<padding>
<Insets left="8" />
</padding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/StudentListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<padding>
<Insets top="5" right="5" bottom="5" left="15" />
</padding>
<HBox spacing="0.5" alignment="CENTER_LEFT">
<HBox spacing="0.5" alignment="TOP_LEFT">
<Label fx:id="id" styleClass="cell_big_label">
<minWidth>
<!-- Ensures that the label text is never truncated -->
Expand Down

0 comments on commit d4d9d4e

Please sign in to comment.