mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-02 11:46:11 -04:00
apply styling to deposit view
This commit is contained in:
parent
8c7e6b2a36
commit
77f7b11fe0
1 changed files with 5 additions and 1 deletions
|
@ -155,6 +155,7 @@ public class DepositView extends ActivatableView<VBox, Void> {
|
||||||
// set loading placeholder
|
// set loading placeholder
|
||||||
Label placeholderLabel = new Label("Loading...");
|
Label placeholderLabel = new Label("Loading...");
|
||||||
tableView.setPlaceholder(placeholderLabel);
|
tableView.setPlaceholder(placeholderLabel);
|
||||||
|
tableView.getStyleClass().add("non-interactive-table");
|
||||||
|
|
||||||
ThreadUtils.execute(() -> {
|
ThreadUtils.execute(() -> {
|
||||||
|
|
||||||
|
@ -390,7 +391,9 @@ public class DepositView extends ActivatableView<VBox, Void> {
|
||||||
public void updateItem(final DepositListItem item, boolean empty) {
|
public void updateItem(final DepositListItem item, boolean empty) {
|
||||||
super.updateItem(item, empty);
|
super.updateItem(item, empty);
|
||||||
if (item != null && !empty) {
|
if (item != null && !empty) {
|
||||||
setGraphic(new AutoTooltipLabel(item.getUsage()));
|
Label usageLabel = new AutoTooltipLabel(item.getUsage());
|
||||||
|
usageLabel.getStyleClass().add("highlight-text");
|
||||||
|
setGraphic(usageLabel);
|
||||||
} else {
|
} else {
|
||||||
setGraphic(null);
|
setGraphic(null);
|
||||||
}
|
}
|
||||||
|
@ -433,6 +436,7 @@ public class DepositView extends ActivatableView<VBox, Void> {
|
||||||
|
|
||||||
private void setBalanceColumnCellFactory() {
|
private void setBalanceColumnCellFactory() {
|
||||||
balanceColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
balanceColumn.setCellValueFactory((addressListItem) -> new ReadOnlyObjectWrapper<>(addressListItem.getValue()));
|
||||||
|
balanceColumn.getStyleClass().add("highlight-text");
|
||||||
balanceColumn.setCellFactory(new Callback<>() {
|
balanceColumn.setCellFactory(new Callback<>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue