From 2605cb11c43a11adaa39c9734fecab441981ebe3 Mon Sep 17 00:00:00 2001 From: woodser <13068859+woodser@users.noreply.github.com> Date: Tue, 13 May 2025 20:33:12 -0400 Subject: [PATCH] panel shape is right --- .../desktop/main/market/offerbook/OfferBookChartView.java | 2 +- desktop/src/main/java/haveno/desktop/util/GUIUtil.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java b/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java index 178b35410f..b04b28f1ac 100644 --- a/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java +++ b/desktop/src/main/java/haveno/desktop/main/market/offerbook/OfferBookChartView.java @@ -428,7 +428,7 @@ public class OfferBookChartView extends ActivatableViewAndModel, VBox, Button, Label> getOfferTable(OfferDirection direction) { TableView tableView = new TableView<>(); - GUIUtil.applyTableStyle(tableView); + GUIUtil.applyTableStyle(tableView, false); tableView.setMinHeight(initialOfferTableViewHeight); tableView.setPrefHeight(initialOfferTableViewHeight); tableView.setMinWidth(480); diff --git a/desktop/src/main/java/haveno/desktop/util/GUIUtil.java b/desktop/src/main/java/haveno/desktop/util/GUIUtil.java index c764c07032..5d7a50d54d 100644 --- a/desktop/src/main/java/haveno/desktop/util/GUIUtil.java +++ b/desktop/src/main/java/haveno/desktop/util/GUIUtil.java @@ -1085,7 +1085,11 @@ public class GUIUtil { } public static void applyTableStyle(TableView tableView) { - applyRoundedArc(tableView); + applyTableStyle(tableView, true); + } + + public static void applyTableStyle(TableView tableView, boolean applyRoundedArc) { + if (applyRoundedArc) applyRoundedArc(tableView); applyEdgeColumnStyleClasses(tableView); } @@ -1100,7 +1104,7 @@ public class GUIUtil { }); } - public static void applyEdgeColumnStyleClasses(TableView tableView) { + private static void applyEdgeColumnStyleClasses(TableView tableView) { ListChangeListener> columnListener = change -> { updateEdgeColumnStyleClasses(tableView); };