-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update darklaf to version 3.0.2 #5715
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5715 +/- ##
============================================
- Coverage 55.24% 55.24% -0.01%
+ Complexity 10387 10386 -1
============================================
Files 1062 1062
Lines 65777 65776 -1
Branches 7536 7536
============================================
- Hits 36339 36337 -2
Misses 26838 26838
- Partials 2600 2601 +1
Continue to review full report at Codecov.
|
Nice, thank you. Well, I used SVG icon for the splash screen in
Would it still work without svgSalamander? If that works, I guess we can remove svgSalamander dependency, and its license override. |
Yes it will still work. Besides the changes in package locations the API surface has stayed the same. I checked and my new svg implementation is capable of rendering all svg files in the repository (not to 100% as some filters aren't supported, but those also weren't rendered before). |
Would you please delete |
Done |
Thank you. I just found there's compile-time SVG -> Swing calls converter by @kirill-grouchnikov https://github.com/kirill-grouchnikov/radiance/tree/aa3a780a7e52de59070176e0183074c8d0efb3c2/tools/svg-transcoder/src/main/java/org/pushingpixels/radiance/tools/svgtranscoder/api (see https://github.com/kirill-grouchnikov/radiance/blob/sunshine/docs/tools/svg-transcoder/svg-transcoder.md) Moving "SVG parsing" to compile time looks clever, however, I'm not sure it would improve much for the current state of JMeter: I guess the number of icons is small, so the parsing is probably fast. |
@weisJ , just wondering, is this ready to go re darklaf? |
All fixes I’m currently working on only regard some erroneous warning messages or the svg implementation. Both problems don’t apply to JMeter, so the current darklaf version should be good to go. |
I have rebased the PR, however, it looks like this upgrade breaks dialogs. For instance, if run JMeter (e.g. @weisJ , I have not checked what could be the reason, however, does this behaviour ring a bell for you? |
The issue here seems to be the usage of a custom |
On another note. MigLayout supports so called visual paddings (e.g. shadows etc.) which are taken to be outside components for layoutpurposes. I am providing those values with darklaf but it results in a minor annoyance. |
Could you please clarify which classloader do you mean?
I thought the button labels "yes/no/cancel" should be loaded from the system bundles. The dialog uses a regular |
Do you mean ill focus around comments is caused by improper handling of the padding?
First you say Miglayout supports the visual paddings, then you say it does not. I'm puzzled.
Could you clarify what do you mean? Have you evaluated if fixing miglayout is an option? |
I am referring to the
Usually they are and before strong encapsulation was fully enforced third party LaFs were able to load them aswell, but with newer Java versions that is no longer possible. Hence the resource bundle as the replicated and packaged separately. Sadly due to the implementation of I have now opted for duplicating the resource cache, which fixes this issue.
I'm sorry I have reworded my comment a few times and it came out rather scrabled. Let me clarify. Miglayout applies the adjustments for Newer versions of MigLayout seem to have the same problem. I have submitted a PR mikaelgrev/miglayout#94 which should fix it. |
@weisJ , it looks like Java lacks ability to attach a resource bundle: https://bugs.openjdk.org/browse/JDK-4834404 They say
So it looks like the ways out could be: a) manually load the resource bundles and add all values from them to UIDefaults Technically speaking, I think we should stop using
We can probably fix it, however, it would take time, so I incline to an approach that would load bundles and pass the values to |
@weisJ , the workaround with "putting all the custom bundle values to defaults" works for cases like I believe the reason is that:
I would suggest:
I believe it would fix I've created weisJ/darklaf#341 for that. WDYT? |
Description
Update darklaf to version 3.0.2. The versions since then include a bunch of bug fixes and improvements. It is now fully compliant with the java module system. Also the svg renderer has been replaced with a different implementation that allows for better support in the future. For a full list of changes see the release notes.
This means that darklaf doesn't need svgSalamander anymore. I'm not sure how to go about this. Should I remove the dependency on svgSalamander or leave it in?
Checklist: