mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 14:44:10 +01:00
Review changes for Disputes GUI
highlight trade period end using an appropriate CSS alert style system messages to show in chat unread message count
This commit is contained in:
parent
e59f6afd91
commit
e9b3b9ac1f
@ -409,8 +409,7 @@ public final class Dispute implements NetworkPayload, PersistablePayload {
|
||||
|
||||
public long unreadMessageCount(boolean senderFlag) {
|
||||
return chatMessages.stream()
|
||||
.filter(m -> m.isSenderIsTrader() == senderFlag)
|
||||
.filter(m -> !m.isSystemMessage())
|
||||
.filter(m -> m.isSenderIsTrader() == senderFlag || m.isSystemMessage())
|
||||
.filter(m -> !m.isWasDisplayed())
|
||||
.count();
|
||||
}
|
||||
|
@ -802,6 +802,10 @@ tree-table-view:focused {
|
||||
-fx-cursor: hand;
|
||||
}
|
||||
|
||||
.alert {
|
||||
-fx-text-fill: -bs-rd-error-red;
|
||||
}
|
||||
|
||||
.opaque-icon {
|
||||
-fx-fill: -bs-color-gray-bbb;
|
||||
-fx-opacity: 1;
|
||||
|
@ -311,7 +311,7 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
||||
String status = DisplayUtils.formatDateTime(dispute.getTradePeriodEnd());
|
||||
Label tradePeriodEnd = addConfirmationLabelLabel(gridPane, ++rowIndex, Res.get("disputeSummaryWindow.tradePeriodEnd"), status).second;
|
||||
if (dispute.getTradePeriodEnd().toInstant().isAfter(Instant.now())) {
|
||||
tradePeriodEnd.getStyleClass().add("version-new"); // highlight field when the trade period is still active
|
||||
tradePeriodEnd.getStyleClass().add("alert"); // highlight field when the trade period is still active
|
||||
}
|
||||
}
|
||||
if (dispute.getExtraDataMap() != null && dispute.getExtraDataMap().size() > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user