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

Remove awt dependencies #5008

Merged
merged 2 commits into from Jan 8, 2021
Merged

Remove awt dependencies #5008

merged 2 commits into from Jan 8, 2021

Conversation

ghost
Copy link

@ghost ghost commented Dec 27, 2020

Related to #4940

Replace usage of awt classes wherever possible with the JavaFX equivalents.

  • Do not use system tray.
  • Remove usages of java.awt.Desktop for opening URIs. Use openSystemSpecific() instead.
  • Remove usages of java.awt.GraphicsEnvironment. Use javafx.stage.Screen instead.
  • Detect MacOS retina display by Screen.getPrimary().getOutputScaleX() > 1.5;

To open a URI we take a convoluted path from GUIUtil.openWebPage (desktop) to Utilities.openURI (common) to DesktopUtil.browse (common). What do you think about simplifying this by moving DesktopUtil from common to desktop?

@ghost ghost mentioned this pull request Dec 27, 2020
@ghost ghost marked this pull request as ready for review January 5, 2021 03:36
@ghost
Copy link
Author

ghost commented Jan 5, 2021

Could someone with MacOS check that the retina display is detected and the high res Bisq Icon is chosen as a result. Also that links open up the browser correctly.

I did testing on Linux and Windows.

ripcurlx
ripcurlx previously approved these changes Jan 7, 2021
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

ACK

Just tested it on macOS and everything works the same as before 👍

@ripcurlx
Copy link
Contributor

ripcurlx commented Jan 7, 2021

Please resolve the conflict and it is good to get merged.

@ghost
Copy link
Author

ghost commented Jan 8, 2021

Merge conflict resolved. Thanks for checking it on MacOS!

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

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

ACK

@ripcurlx ripcurlx added this to the v1.5.5 milestone Jan 8, 2021
@ripcurlx ripcurlx merged commit be40c78 into bisq-network:master Jan 8, 2021
@ghost ghost deleted the remove_awt_dependencies branch January 24, 2021 16:30
@ghost ghost mentioned this pull request Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant