Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat messages selectable / copyable #521

Closed
wants to merge 8 commits into from
Closed

chat messages selectable / copyable #521

wants to merge 8 commits into from

Conversation

nnice
Copy link
Contributor

@nnice nnice commented Oct 4, 2016

No description provided.

@nnice
Copy link
Contributor Author

nnice commented Oct 4, 2016

current state is: the chat messages are copyable and selectable, but links are not clickable.

@nnice
Copy link
Contributor Author

nnice commented Oct 4, 2016

@thechauffeur is it madantory to have it clickable and displayed as link? i have probably a solution for it but its kinda tricky

@thechauffeur
Copy link
Member

thechauffeur commented Oct 4, 2016

This is definitely a good solution for now as it eases the greatest pain in using chat.

edit: This means we do not need the links to be clickable now.

@@ -822,3 +822,11 @@ VBox.spaced, HBox.spaced {
.error-textfield {
-fx-effect: dropshadow(three-pass-box, red, 8, 0.0, 0, 1);
}

.selectable-text * {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works but in html this would be very expensive because it selects from right to left and would select every element and then check its perent recursively. Not sure how javafx does this but I would prefer to replace * by the exact element if you can figure that out. Scenic View might be of help...

DropMessage message = receiveMessages().get(0);
assertEquals(DropMessageRepository.PAYLOAD_TYPE_MESSAGE, message.getDropPayloadType());
assertEquals("line1\nline2", TextMessage.fromJson(message.getDropPayload()).getText());
private void writeTwoLinesOfText(String line1, String line2) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused. Either remove it or use it instead of writeTwoLinesOfText. I would prefer the latter because it increases the tests readability / clearifies the intent:

writeTwoLinesOfText("line1", "line2");
...
assertEquals("line1\nline2", ...);

@julianseeger
Copy link
Collaborator

doesn't work for me:
image

@nnice nnice removed the WIP label Oct 10, 2016
@julianseeger
Copy link
Collaborator

warmer...
image

.selectable-text .text-area .scroll-pane,
.selectable-text .text-area .viewport,
.selectable-text .text-area .content {
-fx-background-color: #4d4d4d;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let the color at least depend on the .own and .other class.
And I don't think you need to use that many selectors when you set the color. The topmost should be enough to lay over all other elements.

@julianseeger
Copy link
Collaborator

not that warm actually ;) wrapping is broken, too
image

@@ -78,6 +79,8 @@ public void run() {
});

trayNotifications(tray);

ScenicView.show(primaryStage.getScene());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debugging, please don't commit that

@nnice nnice closed this Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants