Skip to content

Commit

Permalink
Merge pull request AY2425S1-CS2103T-F15-4#97 from tingxuanp/update-UI
Browse files Browse the repository at this point in the history
Update UI
  • Loading branch information
DanzaSeah authored Oct 17, 2024
2 parents bbc1e17 + 69528ee commit de8bcf1
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 60 deletions.
110 changes: 56 additions & 54 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: derive(#dfd3c3, 20%);
background-color: #dfd3c3; /* Used in the default.html file */
}

.label {
Expand All @@ -20,7 +20,7 @@
.label-header {
-fx-font-size: 32pt;
-fx-font-family: "Segoe UI 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: #fed7aa;
-fx-control-inner-background: #fed7aa;
-fx-background-color: #fed7aa;
-fx-table-cell-border-color: transparent;
-fx-table-header-border-color: transparent;
-fx-padding: 5;
Expand All @@ -57,10 +57,10 @@
-fx-border-width: 0 0 1 0;
-fx-background-color: transparent;
-fx-border-color:
transparent
transparent
derive(-fx-base, 80%)
transparent;
transparent
transparent
derive(-fx-base, 80%)
transparent;
-fx-border-insets: 0 10 1 0;
}

Expand All @@ -77,47 +77,47 @@
}

.split-pane:horizontal .split-pane-divider {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#fde68a, 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(#fde68a, 20%);
}

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

.list-cell {
-fx-label-padding: 0 0 0 0;
-fx-graphic-text-gap : 0;
-fx-padding: 0 0 0 0;
-fx-padding: 10 10 10 10;
}

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

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

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

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

.list-cell .label {
-fx-text-fill: white;
-fx-text-fill: black;
}

.cell_big_label {
Expand All @@ -133,24 +133,25 @@
}

.stack-pane {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#fde68a, 20%);
}

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

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

.result-display {
-fx-background-color: transparent;
-fx-font-family: "Segoe UI Light";
-fx-font-size: 13pt;
-fx-text-fill: white;
-fx-text-fill: black;
}

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

.status-bar .label {
-fx-font-family: "Segoe UI Light";
-fx-text-fill: white;
-fx-text-fill: #71717a;
-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(#fde68a, 30%);
-fx-border-color: derive(#fde68a, 25%);
-fx-border-width: 1px;
}

Expand All @@ -175,36 +176,36 @@
}

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

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

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

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

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

.menu-bar .label {
-fx-font-size: 14pt;
-fx-font-family: "Segoe UI Light";
-fx-text-fill: white;
-fx-text-fill: black;
-fx-opacity: 0.9;
}

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

/*
Expand All @@ -217,7 +218,7 @@
-fx-border-color: #e2e2e2;
-fx-border-width: 2;
-fx-background-radius: 0;
-fx-background-color: #1d1d1d;
-fx-background-color: #fde68a;
-fx-font-family: "Segoe UI", Helvetica, Arial, sans-serif;
-fx-font-size: 11pt;
-fx-text-fill: #d8d8d8;
Expand All @@ -229,8 +230,8 @@
}

.button:pressed, .button:default:hover:pressed {
-fx-background-color: white;
-fx-text-fill: #1d1d1d;
-fx-background-color: white;
-fx-text-fill: #fde68a;
}

.button:focused {
Expand All @@ -243,7 +244,7 @@

.button:disabled, .button:default:disabled {
-fx-opacity: 0.4;
-fx-background-color: #1d1d1d;
-fx-background-color: #fde68a;
-fx-text-fill: white;
}

Expand All @@ -257,36 +258,36 @@
}

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

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

.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(#fde68a, 25%);
}

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

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

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

Expand All @@ -308,32 +309,33 @@
}

#cardPane {
-fx-background-color: transparent;
-fx-background-color: #f1f5f9;
-fx-border-width: 0;
}

#commandTypeLabel {
-fx-font-size: 11px;
-fx-text-fill: #F70D1A;
-fx-text-fill: #991b1b;
}

#commandTextField {
-fx-background-color: transparent #383838 transparent #383838;
-fx-background-color: transparent #fde68a transparent #fde68a;
-fx-background-insets: 0;
-fx-border-color: #383838 #383838 #ffffff #383838;
-fx-border-color: #a3a3a3 #a3a3a3 #a3a3a3 #a3a3a3;
-fx-border-insets: 0;
-fx-border-width: 1;
-fx-font-family: "Segoe UI Light";
-fx-font-size: 13pt;
-fx-text-fill: white;
-fx-text-fill: black;
-fx-stroke-width: 500;
}

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/Extensions.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.list-cell:empty {
/* Empty cells will not have alternating colours */
-fx-background: #383838;
-fx-background: derive(#fde68a, 20%);
}

.tag-selector {
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/view/HelpWindow.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#copyButton, #helpMessage {
-fx-text-fill: white;
-fx-text-fill: black;
}

#copyButton {
-fx-background-color: dimgray;
-fx-background-color: #bfdbfe;
}

#copyButton:hover {
-fx-background-color: gray;
-fx-background-color: #93c5fd;
}

#copyButton:armed {
-fx-background-color: darkgray;
}

#helpMessageContainer {
-fx-background-color: derive(#1d1d1d, 20%);
-fx-background-color: derive(#dfd3c3, 20%);
}
2 changes: 1 addition & 1 deletion src/main/resources/view/MainWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<?import javafx.scene.layout.VBox?>

<fx:root type="javafx.stage.Stage" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1"
title="Address App" minWidth="450" minHeight="600" onCloseRequest="#handleExit">
title="WedLinker" minWidth="450" minHeight="600" onCloseRequest="#handleExit">
<icons>
<Image url="@/images/address_book_32.png" />
</icons>
Expand Down

0 comments on commit de8bcf1

Please sign in to comment.