weisj
eaddd25f56
Test: Test switching laf
...
Test whether it is possible to switch the laf without causing an error.
To do this we need to test demos, which require Darklaf to be installed last.
3 years ago
weisj
660e2f3ab4
Test: Clean up custom init tasks after tests have run
3 years ago
weisj
ff9c871ada
Build+Test: Open test resources for property loader
3 years ago
weisj
c43cbbc62e
Parser: Change inline prefix from `#` to '%'
...
Previously inline color declarations would need to be declared with two leading `#` being error prone to forgetting the second `#`.
3 years ago
weisj
5976fa837d
Build: Run tests and demos on the module path
3 years ago
weisj
774e4fea4d
Modules: Fix resource loading when running on the module path.
3 years ago
weisj
9cb82105e8
Build: Extract compatibility code into separate project
...
This allows us to limit the scope where '--release' can't be used for compilation.
3 years ago
weisj
ed1a162f42
SwingUtils: Convert grab/ungrab methods to MethodHandles.
3 years ago
weisj
666f5f67e6
Remove debug painting.
3 years ago
weisj
be6fa54058
Modules: Move utils in darklaf to ui.utils to avoid split packages. Move classes in property-loader to the properties subpackage to avoid split packages.
3 years ago
weisj
e716522288
Build: Add and compile module info
...
We add a custom task to compile the module-info with a newer java version.
To ensure the module-info is correct we need to compile it together with all other project sources.
3 years ago
weisj
838bf39224
Remove unused class
3 years ago
weisj
aab96b6471
API: Move ColorUtil into util project as it is referenced there.
3 years ago
weisj
b6d7c68f3a
NumberingPane: Respect icon width when calculating numbering position
...
This also improves the font choice for numbering panes on windows.
Fixes #251
3 years ago
weisj
39dfba2e39
Remove accidentally introduced usage of SwingUtilities2 api.
3 years ago
weisj
1163664e29
Painting: Use SynthGraphicsUtil for text painting.
...
SynthGraphicsUtil actually exposes SwingUtilities2#drawString which we can use the replace our copy implementation in UIUtilities.
Relates to #256
3 years ago
weisj
865e8e9a68
Make sure propertyChangeListener is called when dirty is set to true
3 years ago
weisj
6e91b0274d
TransformUI: Allow for general wrapped RepaintManagers
3 years ago
Pabilo8
c9593dced0
Update Polish translation
3 years ago
weisj
1b0752e160
Font: Fix font replacement predicate
3 years ago
weisj
8775cbc482
ToggleButtonList: Update ui of renderers in updateUI
...
Closes #250
3 years ago
weisj
2c10d41bdb
Table: Ensure custom renderers/editors are uninstalled
...
Closes #249
3 years ago
weisj
a2c3af4d86
Windows: Remove dependency on JNA
3 years ago
weisj
34326de0b8
TransformUI: Be more lenient when rejecting the better repainting approach
...
Instead of rejecting with all java version that support the module system we only do it for versions >= 16 as those actually enforce the encapsulation. We also offer an option to opt-in to the better version by passing appropriate jvm flags.
3 years ago
weisj
ea877561c2
TransformUI: Replace JXLayer with JLayer
3 years ago
weisj
7cf3520be7
Installation: Don't update uis when changing decorations if LaF isn't installed.
3 years ago
weisj
4382249baf
Menu: Safely check type of 'checkIconFactory' factory property
...
As the type can only mismatch when darklaf is being uninstalled we don't care what happens in this case. Simply don't crash. Moreover this only happens on windows where the window decorations may change the component hierarchy during uninstallation to return the menu bar to the root pane.
Currently we don't make use of this property at all, but to keep the implementation close to the swing internal one we keep the method for now.
Relates to #234
3 years ago
weisj
bd23c170ef
Menu: Remove unused method
3 years ago
weisj
a005d5224a
Popup: Assume popups are opaque by default.
3 years ago
weisj
ce6f2d3e2d
Windows: Make lists non striped.
...
This property changed accidentally.
3 years ago
weisj
c206547453
Tooltip: Fix spelling error
3 years ago
Peter Lemke
b71e76968d
Update darklaf_de.properties
3 years ago
weisj
1f3d598519
PopupFactory: Add logging information
3 years ago
weisj
64dc8d5e9e
Popup: Allow specifying the bias for enabling (if possible) double-buffering or disabling it to fix transparent windows.
3 years ago
weisj
e659d6aea1
Popup [Linux]: Due to a jdk bug report the proper fix for transparent windows is to disable all double buffering on glass pane, layered pane and content pane.
3 years ago
weisj
15a2956e80
UIUtils: Cleanup UIUtilities bridge.
3 years ago
weisj
acc4aaf7c2
Memory: Further ensure no memory leaks for with shared resources and wrappers can occur.
3 years ago
weisj
7c7eea8818
Test: Add flag to toggle running all on all themes.
3 years ago
weisj
60c704d2d6
Test + CI: Disable demo test for normal test runs to reduce CI time. Run all the tests in verbose mode for JDK 16.
3 years ago
weisj
e67782cea1
FileChooser: Fix clashing signature
3 years ago
weisj
f3fd0630a8
Fix documentation output path.
3 years ago
weisj
a795483c55
Remove fatJar task
3 years ago
weisj
e243a493cd
Fall back to alternative fix for non-opaque popups on linux, when reflection can't be used.
3 years ago
weisj
04969089d0
Replace manual check for java version with predefined constant.
3 years ago
weisj
12d1b75883
Test: Add test to ensure all demos are able to be run without throwing any exceptions. Unstable demos are marked as delicate and are skipped.
3 years ago
weisj
f7a5aabd67
MenuItem: Uninstall before the menuItem gets set to null.
3 years ago
weisj
c51d02ae2f
Test: Move test classes into com.github.weisj.darklaf package.
3 years ago
weisj
bcf0a7639f
Replace usage of SunToolkit in MouseGrabber for Java 11 and later.
3 years ago
weisj
2078b64849
Catch all errors when instantiating a class.
3 years ago
weisj
542dbf3cb7
Modules + MenuItem: Use java-compatibility.jar from intelliJ to replace swing internal api calls. Because this also replaces the MenuItemLayoutHelper we need to unify the implementation of DarkMenuItemUIBase and DarkMenuUI. This is done by extracting all functionality into the MenuItemUI interface for which the implementing classes need to provide the necessary details.
3 years ago