transaction view styling

This commit is contained in:
woodser 2025-05-17 19:36:05 -04:00
parent 77f7b11fe0
commit 4f56398c55
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
3 changed files with 42 additions and 10 deletions

View file

@ -1326,15 +1326,6 @@ textfield */
-fx-padding: 5 25 5 25;
}
.table-view.non-interactive-table .column-header .label {
-fx-text-fill: -bs-text-color-dim1;
}
.table-view.non-interactive-table .table-cell,
.table-view.non-interactive-table .table-cell .label {
-fx-text-fill: -bs-text-color-dim2;
}
/*******************************************************************************
* *
* Icons *
@ -2543,6 +2534,34 @@ textfield */
-fx-border-color: -bs-color-border-form-field;
}
.table-view.non-interactive-table .column-header .label {
-fx-text-fill: -bs-text-color-dim1;
}
.table-view.non-interactive-table .table-cell,
.table-view.non-interactive-table .table-cell .label,
.table-view.non-interactive-table .label,
.table-view.non-interactive-table .text,
.table-view.non-interactive-table .hyperlink,
.table-view.non-interactive-table .hyperlink-with-icon,
.table-view.non-interactive-table .table-row-cell .hyperlink .text {
-fx-text-fill: -bs-text-color-dim2;
}
.table-view.non-interactive-table .hyperlink,
.table-view.non-interactive-table .hyperlink-with-icon,
.table-view.non-interactive-table .table-row-cell .hyperlink .text {
-fx-fill: -bs-text-color-dim2;
}
.table-view.non-interactive-table .table-cell.highlight-text,
.table-view.non-interactive-table .table-cell.highlight-text .label,
.table-view.non-interactive-table .table-cell.highlight-text .text,
.table-view.non-interactive-table .table-cell.highlight-text .hyperlink,
.table-view.non-interactive-table .table-cell.highlight-text .hyperlink .text {
-fx-fill: -fx-dark-text-color;
-fx-text-fill: -fx-dark-text-color;
}
.highlight-text {
-fx-text-fill: -fx-dark-text-color !important;

View file

@ -141,6 +141,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY_FLEX_LAST_COLUMN);
tableView.setPlaceholder(new AutoTooltipLabel(Res.get("funds.tx.noTxAvailable")));
tableView.getStyleClass().add("non-interactive-table");
setDateColumnCellFactory();
setDetailsColumnCellFactory();
@ -396,6 +397,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
private void setAmountColumnCellFactory() {
amountColumn.setCellValueFactory((addressListItem) ->
new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
amountColumn.getStyleClass().add("highlight-text");
amountColumn.setCellFactory(
new Callback<>() {
@ -423,6 +425,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
private void setTxFeeColumnCellFactory() {
txFeeColumn.setCellValueFactory((addressListItem) ->
new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
txFeeColumn.getStyleClass().add("highlight-text");
txFeeColumn.setCellFactory(
new Callback<>() {
@ -449,6 +452,7 @@ public class TransactionsView extends ActivatableView<VBox, Void> {
private void setMemoColumnCellFactory() {
memoColumn.setCellValueFactory((addressListItem) ->
new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
memoColumn.getStyleClass().add("highlight-text");
memoColumn.setCellFactory(
new Callback<>() {

View file

@ -198,13 +198,22 @@
.table-view .table-row-cell:selected .table-cell .label,
.table-view .table-row-cell:selected .table-cell .text,
.table-view .table-row-cell:selected .table-cell .hyperlink,
.table-view .table-row-cell:selected .table-cell .hyperlink-with-icon {
.table-view .table-row-cell:selected .table-cell .hyperlink .text,
.table-view .table-row-cell:selected .table-cell .hyperlink-with-icon,
.table-view .table-row-cell:selected .table-cell .hyperlink-with-icon .text {
-fx-background: -fx-accent;
-fx-background-color: -fx-selection-bar;
-fx-border-color: -fx-selection-bar;
-fx-text-fill: -fx-dark-text-color;
}
.table-view .table-row-cell:selected .table-cell .hyperlink,
.table-view .table-row-cell:selected .table-cell .hyperlink .text,
.table-view .table-row-cell:selected .table-cell .hyperlink-with-icon,
.table-view .table-row-cell:selected .table-cell .hyperlink-with-icon .text {
-fx-fill: -fx-dark-text-color;
}
.table-row-cell {
-fx-border-color: -bs-background-color;
}