From a516c11b7e37f82a37b89f90d31d0f9ccff6bec1 Mon Sep 17 00:00:00 2001 From: kske Date: Wed, 30 Sep 2020 19:21:10 +0200 Subject: [PATCH] Replace selection color by one unified gray Fixes #62 --- client/src/main/resources/css/base.css | 6 ++++-- client/src/main/resources/css/dark.css | 4 ---- client/src/main/resources/css/light.css | 4 ---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/client/src/main/resources/css/base.css b/client/src/main/resources/css/base.css index d3c0954..79099d7 100644 --- a/client/src/main/resources/css/base.css +++ b/client/src/main/resources/css/base.css @@ -4,8 +4,10 @@ .context-menu, .context-menu > * { -fx-background-radius: 15.0px; - /*TODO: solution below does not work */ - -fx-background-color: transparent; +} + +.list-cell:selected, .menu-item:hover { + -fx-background-color: #454c4f; } #text-enter-container, #contact-search-enter-container { diff --git a/client/src/main/resources/css/dark.css b/client/src/main/resources/css/dark.css index f990855..7ab6a59 100644 --- a/client/src/main/resources/css/dark.css +++ b/client/src/main/resources/css/dark.css @@ -22,10 +22,6 @@ -fx-background-color: #222222; } -.list-cell:selected, .list-cell:selected > *, .menu-item:hover { - -fx-background-color: #690099; -} - .received-message { -fx-background-color: gray; } diff --git a/client/src/main/resources/css/light.css b/client/src/main/resources/css/light.css index 147bd2b..7cd3ac1 100644 --- a/client/src/main/resources/css/light.css +++ b/client/src/main/resources/css/light.css @@ -18,10 +18,6 @@ -fx-background-color: #E3E3E3; } -.list-cell:selected, .list-cell:selected > *, .menu-item:hover { - -fx-background-color: #805959; -} - .received-message { -fx-background-color: lightgray; }