Skip to content

Commit

Permalink
Merge pull request #195 from bryanwee023/rebrand-aesthetics
Browse files Browse the repository at this point in the history
Rebrand aesthetics
  • Loading branch information
bernarduskrishna authored Nov 6, 2021
2 parents dd73f29 + 227287f commit 4deec40
Show file tree
Hide file tree
Showing 21 changed files with 80 additions and 64 deletions.
Binary file modified docs/images/Ui.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/screenshots/add_item.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/screenshots/clear.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/screenshots/corder.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/screenshots/delete_item.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/screenshots/edit_item.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/screenshots/eorder.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/screenshots/find_item.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/screenshots/iorder.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/screenshots/list_items.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/screenshots/remove_item.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/screenshots/sorder.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/screenshots/sort_items.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/display/ItemCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ItemCard(Item item, int displayedIndex) {
this.item = item;
index.setText(displayedIndex + ". ");
name.setText(item.getName().fullName);
id.setText(String.format("#%06d", item.getId()));
id.setText(String.format("%06d", item.getId()));
count.setText(String.format("Quantity: %d", item.getCount()));
costPrice.setText(String.format("Cost Price: $ %.2f", item.getCostPrice()));
salesPrice.setText(String.format("Sales Price: $ %.2f", item.getSalesPrice()));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/item/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public int hashCode() {
public String toString() {
final StringBuilder builder = new StringBuilder();
builder.append(getName())
.append(String.format("; count: %06d", getId()))
.append(String.format("; id: %06d", getId()))
.append("; count: ")
.append(getCount())
.append(String.format("; costPrice: $%.2f", getCostPrice()))
Expand Down
Binary file added src/main/resources/images/barcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 66 additions & 57 deletions src/main/resources/view/DarkTheme.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.background {
-fx-background-color: derive(#1d1d1d, 20%);
background-color: #383838; /* Used in the default.html file */
-fx-background-color: white;
background-color: white; /* Used in the default.html file */
}

.label {
Expand All @@ -13,14 +13,14 @@
.label-bright {
-fx-font-size: 11pt;
-fx-font-family: "Open Sans Semibold";
-fx-text-fill: white;
-fx-text-fill: black;
-fx-opacity: 1;
}

.label-header {
-fx-font-size: 32pt;
-fx-font-family: "Open Sans Light";
-fx-text-fill: white;
-fx-text-fill: black;
-fx-opacity: 1;
}

Expand All @@ -40,9 +40,9 @@
}

.table-view {
-fx-base: #1d1d1d;
-fx-control-inner-background: #1d1d1d;
-fx-background-color: #1d1d1d;
-fx-base: #f5f6fa;
-fx-control-inner-background: #f5f6fa;
-fx-background-color: #f5f6fa;
-fx-table-cell-border-color: transparent;
-fx-table-header-border-color: transparent;
-fx-padding: 5;
Expand All @@ -67,7 +67,7 @@
.table-view .column-header .label {
-fx-font-size: 20pt;
-fx-font-family: "Open Sans Light";
-fx-text-fill: white;
-fx-text-fill: black;
-fx-alignment: center-left;
-fx-opacity: 1;
}
Expand All @@ -77,20 +77,20 @@
}

.split-pane:horizontal .split-pane-divider {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#f5f6fa, 20%);
-fx-border-color: transparent transparent transparent #4d4d4d;
}

.split-pane {
-fx-border-radius: 1;
-fx-border-width: 1;
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#f5f6fa, 20%);
}

.list-view {
-fx-background-insets: 0;
-fx-padding: 0;
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#f5f6fa, 20%);
}

.list-cell {
Expand All @@ -100,57 +100,58 @@
}

.list-cell:filled:even {
-fx-background-color: #3c3e3f;
-fx-background-color: #f2f3f7;
}

.list-cell:filled:odd {
-fx-background-color: #515658;
}

.list-cell:filled:selected {
-fx-background-color: #424d5f;
}

.list-cell:filled:selected #cardPane {
-fx-border-color: #3e7b91;
-fx-border-width: 1;
-fx-background-color: #f5f6fa;
}

.list-cell .label {
-fx-text-fill: white;
-fx-text-fill: #3d238c;
}

.cell_big_label {
-fx-font-family: "Open Sans Semibold";
-fx-font-size: 16px;
-fx-text-fill: #010504;
-fx-text-fill: #3d238c;
}

.cell_big_label_tinted {
-fx-font-family: "Open Sans Semibold";
-fx-font-size: 16px;
-fx-text-fill: #00a17b !important;
}

.cell_small_label {
-fx-font-family: "Open Sans Regular";
-fx-font-size: 13px;
-fx-text-fill: #010504;
-fx-text-fill: black !important;
}

/* Command Box */
.stack-pane {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: white;
-fx-background-radius: 5px;
-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.1), 10, 0, 0, 0);
}

.pane-with-border {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-border-color: derive(#1d1d1d, 10%);
-fx-background-color: white;
-fx-border-color: white;
-fx-border-top-width: 1px;
}

.status-bar {
-fx-background-color: derive(#1d1d1d, 30%);
-fx-background-color: derive(#e4dbff, 30%);
}

.result-display {
-fx-background-color: transparent;
-fx-background-color: #f5f6fa;
-fx-background-radius: 5px;
-fx-font-family: "Open Sans Light";
-fx-font-size: 13pt;
-fx-text-fill: white;
-fx-text-fill: #7f2df5;
}

.result-display .label {
Expand All @@ -159,54 +160,63 @@

.status-bar .label {
-fx-font-family: "Open Sans Light";
-fx-text-fill: white;
-fx-text-fill: #666666;
-fx-padding: 4px;
-fx-pref-height: 30px;
}

.status-bar-with-border {
-fx-background-color: derive(#1d1d1d, 30%);
-fx-border-color: derive(#1d1d1d, 25%);
-fx-background-color: derive(#f5f6fa, 30%);
-fx-border-color: derive(#f5f6fa, 25%);
-fx-border-width: 1px;
}

.status-bar-with-border .label {
-fx-text-fill: white;
-fx-text-fill: #666666;
}

.grid-pane {
-fx-background-color: derive(#1d1d1d, 30%);
-fx-border-color: derive(#1d1d1d, 30%);
-fx-background-color: #f5f6fa;
-fx-border-color: #f5f6fa;
-fx-border-width: 1px;
}

.grid-pane .stack-pane {
-fx-background-color: derive(#1d1d1d, 30%);
-fx-background-color: #f5f6fa;
}

.context-menu {
-fx-background-color: derive(#1d1d1d, 50%);
-fx-background-color: #f5f6fa;
}

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

.menu-bar {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#942bf0, 20%);
}

.menu-bar .label {
-fx-font-size: 14pt;
-fx-font-family: "Open Sans Light";
-fx-font-family: "Open Sans Semibold";
-fx-text-fill: white;
-fx-opacity: 0.9;
}

.menu:showing .label {
-fx-text-fill: #3d238c;
}

.menu .left-container {
-fx-background-color: black;
}

.menu-bar .menu-button:hover, .menu-bar .menu-button:focused, .menu-bar .menu-button:showing {
-fx-background: transparent;
-fx-cursor: hand;
}

/*
* Metro style Push Button
* Author: Pedro Duque Vieira
Expand Down Expand Up @@ -244,49 +254,49 @@
.button:disabled, .button:default:disabled {
-fx-opacity: 0.4;
-fx-background-color: #1d1d1d;
-fx-text-fill: white;
-fx-text-fill: black;
}

.button:default {
-fx-background-color: -fx-focus-color;
-fx-text-fill: #ffffff;
-fx-text-fill: black;
}

.button:default:hover {
-fx-background-color: derive(-fx-focus-color, 30%);
}

.dialog-pane {
-fx-background-color: #1d1d1d;
-fx-background-color: #f5f6fa;
}

.dialog-pane > *.button-bar > *.container {
-fx-background-color: #1d1d1d;
-fx-background-color: #f5f6fa;
}

.dialog-pane > *.label.content {
-fx-font-size: 14px;
-fx-font-weight: bold;
-fx-text-fill: white;
-fx-text-fill: black;
}

.dialog-pane:header *.header-panel {
-fx-background-color: derive(#1d1d1d, 25%);
-fx-background-color: derive(#f5f6fa, 25%);
}

.dialog-pane:header *.header-panel *.label {
-fx-font-size: 18px;
-fx-font-style: italic;
-fx-fill: white;
-fx-text-fill: white;
-fx-text-fill: black;
}

.scroll-bar {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: transparent;
}

.scroll-bar .thumb {
-fx-background-color: derive(#1d1d1d, 50%);
-fx-background-color: derive(#cccccc, 50%);
-fx-background-insets: 3;
}

Expand Down Expand Up @@ -320,21 +330,20 @@
#commandTextField {
-fx-background-color: transparent #383838 transparent #383838;
-fx-background-insets: 0;
-fx-border-color: #383838 #383838 #ffffff #383838;
-fx-border-insets: 0;
-fx-border-width: 1;
-fx-font-family: "Open Sans Light";
-fx-font-size: 13pt;
-fx-text-fill: white;
-fx-text-fill: black;
}

#filterField, #personListPanel, #personWebpage {
#filterField, #displayListPanel, #personWebpage {
-fx-effect: innershadow(gaussian, black, 10, 0, 0, 0);
}

#resultDisplay .content {
-fx-background-color: transparent, #383838, transparent, #383838;
-fx-background-radius: 0;
-fx-background-color: transparent, #f5f6fa, transparent, #f5f6fa;
-fx-background-radius: 5px;
}

#tags {
Expand All @@ -344,7 +353,7 @@

#tags .label {
-fx-text-fill: white;
-fx-background-color: #3e7b91;
-fx-background-color: #cd70ff;
-fx-padding: 1 3 1 3;
-fx-border-radius: 2;
-fx-background-radius: 2;
Expand Down
11 changes: 9 additions & 2 deletions src/main/resources/view/Extensions.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@

.error {
-fx-text-fill: #d06651 !important; /* The error class should always override the default text-fill style */
-fx-text-fill: #ff9e9e !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: #f5f6fa;
}

.barcode_label {
-fx-font-family: "Open Sans Semibold";
-fx-font-size: 15px;
-fx-text-fill: #4d4d4d !important;
-fx-graphic: url("../images/barcode.png");
}

.tag-selector {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/ItemListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<Label fx:id="name" text="\$first" styleClass="cell_big_label" />
</HBox>
<FlowPane fx:id="tags" />
<Label fx:id="id" styleClass="cell_small_label" text="\$no ID" />
<Label fx:id="id" styleClass="barcode_label" text="\$no ID" />
<Label fx:id="count" styleClass="cell_small_label" text="\$0" />
<Label fx:id="costPrice" styleClass="cell_small_label" text="\$0" />
<Label fx:id="salesPrice" styleClass="cell_small_label" text="\$0" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/TransactionListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</Label>
<Label fx:id="timestamp" text="transaction" styleClass="cell_big_label" />
<Region HBox.hgrow="ALWAYS" />
<Label fx:id="id" alignment="CENTER_RIGHT" text="id" styleClass="cell_big_label" />
<Label fx:id="id" alignment="CENTER_RIGHT" text="id" styleClass="cell_big_label_tinted" />
</HBox>
<Label fx:id="totalPrice" styleClass="cell_small_label" text="Total price: -" />
<Label fx:id="totalItems" styleClass="cell_small_label" text="Total items: -" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void execute_newItem_addSuccessful() {

AddCommand addCommand = new AddCommand(validDescriptor);
String expectedMessage = String.format(AddCommand.MESSAGE_SUCCESS_NEW, validItem);
System.out.println(expectedMessage);

Model expectedModel = new ModelManager();
expectedModel.addItem(validItem);
expectedModel.addCostBookKeeping(BAGEL.getCostPrice() * 5);
Expand Down

0 comments on commit 4deec40

Please sign in to comment.