Merge pull request #1469 from ripcurlx/fix-css-issues-in-messages

Fix style issues in support messages
This commit is contained in:
Manfred Karrer 2018-03-19 09:42:48 -05:00 committed by GitHub
commit 0df3cccc02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -131,7 +131,7 @@ bg color of non edit textFields: fafafa
-fx-text-fill: -bs-green;
}
.highlight {
.highlight, .highlight-static {
-fx-text-fill: -fx-accent;
}

View File

@ -797,13 +797,19 @@ public class TraderDisputeView extends ActivatableView<VBox, Void> {
arrow.setVisible(!item.isSystemMessage());
arrow.setManaged(!item.isSystemMessage());
statusIcon.setVisible(false);
headerLabel.getStyleClass().removeAll("message-header", "success-text",
"highlight-static");
messageLabel.getStyleClass().removeAll("my-message", "message");
copyIcon.getStyleClass().removeAll("my-message", "message");
if (item.isSystemMessage()) {
headerLabel.getStyleClass().addAll("message-header", "success-text");
bg.setId("message-bubble-green");
messageLabel.getStyleClass().add("my-message");
copyIcon.getStyleClass().add("my-message");
} else if (isMyMsg) {
headerLabel.getStyleClass().add("highlight");
headerLabel.getStyleClass().add("highlight-static");
bg.setId("message-bubble-blue");
messageLabel.getStyleClass().add("my-message");
copyIcon.getStyleClass().add("my-message");