Repository navigation
Conversation
- Copy and paste of file paths was broken on Linux, macOS, and Windows - Drag and drop of files from the OS was broken on macOS This fixes both using a similar approach to what is used in SNT, and adds extra improvements - Add a clear button to all text fields - Add a placeholder text to empty fields of SwingFileWidget with the 3 ways to populate it - Animate fields with FlatLaf's outline error border when an invalid file is dropped (These use FlatLaf's client properties, so they are safe if some other L&F is being used) Tested on macOS 27, Ubuntu 26.04, and Windows 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes both using a similar approach to what is used in SNT, and adds extra improvements
Manually tested on macOS 27, Ubuntu 26.04, and Windows 11: ffter the patch: copy/paste and drag and drop work on all 3, no issues found. (well, stress-testing a drop of dozens of files stalled Explorer on Windows. The old code behaved the same, so it is not addressed here 😢 )
This is how the fields look like with the FlatLaf additions: