From 8d9fba7fa4bff4d546018ba3adfb68b9e910d2cb Mon Sep 17 00:00:00 2001 From: rayray39 Date: Fri, 11 Oct 2024 11:18:04 +0800 Subject: [PATCH 1/2] DarkTheme.css: Add :focused pseudoclass for commandTextField --- src/main/resources/view/DarkTheme.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/view/DarkTheme.css b/src/main/resources/view/DarkTheme.css index 4ba63efeae4..b870bdb830e 100644 --- a/src/main/resources/view/DarkTheme.css +++ b/src/main/resources/view/DarkTheme.css @@ -340,6 +340,11 @@ -fx-text-fill: black; } +#commandTextField:focused { + -fx-background-color: fef3c2; + -fx-border-color: #383838; +} + #filterField, #personListPanel, #personWebpage { -fx-effect: innershadow(gaussian, black, 10, 0, 0, 0); } From 59ce12f3634b603ee28233712153ecf60ea2ef91 Mon Sep 17 00:00:00 2001 From: rayray39 Date: Sat, 12 Oct 2024 12:37:40 +0800 Subject: [PATCH 2/2] DarkTheme.css: Correct syntax error on commandTextField:focused --- src/main/resources/view/DarkTheme.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/view/DarkTheme.css b/src/main/resources/view/DarkTheme.css index b870bdb830e..4479ac2fae7 100644 --- a/src/main/resources/view/DarkTheme.css +++ b/src/main/resources/view/DarkTheme.css @@ -341,7 +341,7 @@ } #commandTextField:focused { - -fx-background-color: fef3c2; + -fx-background-color: #fef3c2; -fx-border-color: #383838; }