Created attachment 234511 [details] swt.diff - sync patches with eclipse 4.21 - remove patch-org_eclipse_swt_graphics_Device.java as it make so big icon in eclipse - add patch-org_eclipse_swt_widgets_Shell.java as it fixed wrong position on Hidpi with scale 200%
I do have crashes without patch-org_eclipse_swt_graphics_Device.java similar to bug 254041. Apparently swt still doesn't find *.css files at runtime. Do you know how to fix this?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d551e5b93e20225875d3b682bb6dc93412d03680 commit d551e5b93e20225875d3b682bb6dc93412d03680 Author: Max Brazhnikov <makc@FreeBSD.org> AuthorDate: 2022-06-07 12:37:25 +0000 Commit: Max Brazhnikov <makc@FreeBSD.org> CommitDate: 2022-06-07 12:38:03 +0000 x11-toolkits/swt: update to 4.21 - Sync patches with eclipse 4.21 - Remove patch-org_eclipse_swt_graphics_Device.java (which breaks icons in Eclipse) and install missing *.css files - Add patch-org_eclipse_swt_widgets_Shell.java to fix layout on HiDPI scaled to 200% PR: 264512 (based on) Submmitted by: huanghwh@gmail.com x11-toolkits/swt/Makefile | 7 +++--- x11-toolkits/swt/distinfo | 6 +++--- x11-toolkits/swt/files/build.xml | 3 +-- x11-toolkits/swt/files/patch-OS.java (gone) | 22 ------------------- ...patch-org_eclipse_swt_browser_WebKit.java (new) | 11 ++++++++++ ...tch-org_eclipse_swt_graphics_Device.java (gone) | 11 ---------- ...tch-org_eclipse_swt_internal_Library.java (new) | 16 ++++++++++++++ ...atch-org_eclipse_swt_internal_gtk_OS.java (new) | 13 +++++++++++ .../patch-org_eclipse_swt_widgets_Shell.java (new) | 20 +++++++++++++++++ x11-toolkits/swt/files/patch-os.c | 4 ++-- .../swt/files/swt_functional_gtk_3_20.css (new) | 13 +++++++++++ .../swt/files/swt_theming_fixes_gtk_3_20.css (new) | 25 ++++++++++++++++++++++ .../files/swt_theming_fixes_gtk_3_24_5.css (new) | 3 +++ 13 files changed, 111 insertions(+), 43 deletions(-)
Committed with some modifications. Thanks!