From 4ed8550f1ddfdb623a024d559cccbdcdafd85a50 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 4 Apr 2023 09:22:49 +0200 Subject: [PATCH] fix dark themed spreadsheets --- .../com/sparrowwallet/sparrow/darktheme.css | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/main/resources/com/sparrowwallet/sparrow/darktheme.css b/src/main/resources/com/sparrowwallet/sparrow/darktheme.css index 6d5641f6..4caedc5a 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/darktheme.css +++ b/src/main/resources/com/sparrowwallet/sparrow/darktheme.css @@ -54,12 +54,15 @@ } .list-cell:even, -.list-cell:odd, -.table-row-cell:even, -.table-row-cell:odd{ +.table-row-cell:even{ -fx-control-inner-background: derive(-fx-base, 15%); } +.list-cell:odd, +.table-row-cell:odd{ + -fx-control-inner-background: derive(-fx-base, 20%); +} + .list-cell:empty, .table-row-cell:empty { -fx-background-color: transparent; @@ -67,10 +70,28 @@ .list-cell, .table-row-cell{ - -fx-border-color: transparent; -fx-table-cell-border-color:transparent; } +.spreadsheet-cell { + -fx-background-color: -fx-table-cell-border-color, derive(-fx-base, 25%); + -fx-text-fill: -fx-text-inner-color; +} + +VerticalHeader > Label{ + -fx-background-color: derive(-fx-box-border, 15%), -fx-base; +} + +HorizontalHeaderColumn > TableColumnHeader.column-header.table-column{ + -fx-background-color: derive(-fx-box-border, 15%), -fx-base; +} + +.root #grid .spreadsheet-cell:selected, +.root #grid .spreadsheet-cell:focused:selected, +.root #grid .spreadsheet-cell:focused:selected:hover { + -fx-background-color: rgb(159, 142, 0); +} + .status-bar { -fx-background-color: derive(-fx-color,-15%), -fx-body-color; }