set coloring of table header

This commit is contained in:
woodser 2025-05-05 16:57:40 -04:00
parent 7bc24d77e0
commit ce89cea0e3
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
3 changed files with 10 additions and 4 deletions

View file

@ -1131,6 +1131,14 @@ textfield */
.table-view .column-header.first-column {
-fx-padding: 0 0 0 10;
-fx-background-radius: 15 0 0 0;
-fx-border-radius: 15 0 0 0;
}
.table-view .column-header.last-column {
-fx-background-radius: 0 15 0 0;
-fx-border-radius: 0 15 0 0;
}
.number-column.table-cell {
@ -1169,8 +1177,6 @@ textfield */
-fx-background-color: transparent;
-fx-border-color: transparent;
-fx-padding: 0;
-fx-background-radius: 10 10 0 0;
-fx-border-radius: 10 10 0 0;
}
.table-view .text {

View file

@ -1069,7 +1069,6 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
setSortable(false);
}
};
column.getStyleClass().addAll("last-column", "avatar-column");
column.setCellValueFactory((offer) -> new ReadOnlyObjectWrapper<>(offer.getValue()));
column.setCellFactory(
new Callback<>() {

View file

@ -46,6 +46,7 @@
-bs-color-gray-background: black;
-bs-color-background-button-background: rgb(18, 18, 18);
-bs-color-background-button-border: rgb(51, 51, 51);
-bs-color-background-table-header: rgb(15, 15, 15);
/* lesser used colors */
-bs-color-blue-5: #0a4576;
@ -170,7 +171,7 @@
}
.table-view .column-header {
-fx-background-color: derive(-bs-background-color,-50%);
-fx-background-color: -bs-color-background-table-header;
-fx-border-width: 0;
}