From 2368e4f6c64abf649c85a60995a71bf949db40fe Mon Sep 17 00:00:00 2001 From: leepoeaik Date: Thu, 4 Apr 2024 17:42:55 +0800 Subject: [PATCH 1/2] Change UI --- src/main/resources/view/LightTheme.css | 35 +++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/main/resources/view/LightTheme.css b/src/main/resources/view/LightTheme.css index 2180b3460c8..b50520b33ce 100644 --- a/src/main/resources/view/LightTheme.css +++ b/src/main/resources/view/LightTheme.css @@ -121,6 +121,33 @@ -fx-font-family: "Segoe UI Semibold"; } +#scheduleListView .list-cell:filled:odd { + -fx-background-color: #6aa9bf; + -fx-background-insets : 10 0 10 0; + -fx-background-radius : 30px; + -fx-padding: 10 10 10 10; + -fx-border-width : 0px; +} + +#scheduleListView .list-cell:filled:even { + -fx-background-color: #3e7b91; + -fx-background-insets : 10 0 10 0; + -fx-background-radius : 30px; + -fx-padding: 10 10 10 10; + -fx-border-width : 0px; +} + +#scheduleListView .list-cell .label { + -fx-text-fill: white; + -fx-font-size: 13pt; + -fx-font-family: "Segoe UI Semibold"; +} + +#scheduleListView { + -fx-background-insets: 0; + -fx-padding: 0; +} + .scroll-bar { -fx-background-color: #FFFFFF; } @@ -152,7 +179,7 @@ #lessons .label { -fx-text-fill: white; - -fx-background-color: #3e7b91; + -fx-background-color: #6aa9bf; -fx-padding: 1 3 1 3; -fx-border-radius: 2; -fx-background-radius: 2; @@ -162,3 +189,9 @@ #studentListView { -fx-padding : 0 20 0 20; } + +#upcomingLessonLabel { + -fx-text-fill: black; + -fx-font-size: 20pt; + -fx-font-family: "Segoe UI Semibold"; +} From ca4196011ae8525608beee264ec62ec91e444465 Mon Sep 17 00:00:00 2001 From: leepoeaik Date: Thu, 4 Apr 2024 17:57:11 +0800 Subject: [PATCH 2/2] Improve GUI --- src/main/resources/view/LightTheme.css | 1 + src/main/resources/view/MainWindow.fxml | 155 +++++++++++---------- src/main/resources/view/ResultDisplay.fxml | 5 +- 3 files changed, 83 insertions(+), 78 deletions(-) diff --git a/src/main/resources/view/LightTheme.css b/src/main/resources/view/LightTheme.css index b50520b33ce..b0efdfe7c6e 100644 --- a/src/main/resources/view/LightTheme.css +++ b/src/main/resources/view/LightTheme.css @@ -188,6 +188,7 @@ #studentListView { -fx-padding : 0 20 0 20; + -fx-background-insets: 0; } #upcomingLessonLabel { diff --git a/src/main/resources/view/MainWindow.fxml b/src/main/resources/view/MainWindow.fxml index 2d2b41595d4..67c07b887d1 100644 --- a/src/main/resources/view/MainWindow.fxml +++ b/src/main/resources/view/MainWindow.fxml @@ -16,82 +16,87 @@ - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + diff --git a/src/main/resources/view/ResultDisplay.fxml b/src/main/resources/view/ResultDisplay.fxml index 01b691792a9..ad8c0a906b9 100644 --- a/src/main/resources/view/ResultDisplay.fxml +++ b/src/main/resources/view/ResultDisplay.fxml @@ -3,7 +3,6 @@ - -