mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 04:06:23 -04:00
transaction view styling
This commit is contained in:
parent
77f7b11fe0
commit
4f56398c55
3 changed files with 42 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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<>() {
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue