From 19fe3a283072d74cb3cd70e427eaf3e3230779b5 Mon Sep 17 00:00:00 2001 From: delvh Date: Sun, 21 Jun 2020 17:36:08 +0200 Subject: [PATCH] Selected items will now be visually displayed --- src/main/resources/css/base.css | 6 +++++- src/main/resources/css/dark.css | 6 +++++- src/main/resources/css/light.css | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/resources/css/base.css b/src/main/resources/css/base.css index 79cefc9..4711344 100644 --- a/src/main/resources/css/base.css +++ b/src/main/resources/css/base.css @@ -7,6 +7,10 @@ -fx-scale-y: 1.05; } +.label { + -fx-background-color: transparent; +} + #remainingCharsLabel { -fx-text-fill: #00FF00; -fx-opacity: 1; @@ -27,4 +31,4 @@ .offline { -fx-text-fill: gray; -} \ No newline at end of file +} diff --git a/src/main/resources/css/dark.css b/src/main/resources/css/dark.css index 1f8d181..60707a4 100644 --- a/src/main/resources/css/dark.css +++ b/src/main/resources/css/dark.css @@ -18,10 +18,14 @@ -fx-background-color: lightgray; } -.list-view, .list-cell, .label, .text-area .content, .text-field, .password-field, .tooltip, .pane, .pane .content, .vbox, .titled-pane > .title, .titled-pane > *.content { +.list-view, .list-cell, .text-area .content, .text-field, .password-field, .tooltip, .pane, .pane .content, .vbox, .titled-pane > .title, .titled-pane > *.content { -fx-background-color: dimgray; } +.list-cell:selected { + -fx-background-color:rgb(105.0,0.0,153.0) ; +} + .alert.information.dialog-pane, .alert.warning.dialog-pane, .alert.error.dialog-pane { -fx-background-color: black; } diff --git a/src/main/resources/css/light.css b/src/main/resources/css/light.css index f29be8c..bb57c4f 100644 --- a/src/main/resources/css/light.css +++ b/src/main/resources/css/light.css @@ -1,3 +1,3 @@ -.button{ +.button, .list-cell:selected{ -fx-background-color: orangered; }