Jannis Weis
5f69904a22
Remove refactoring artifacts
3 years ago
Jannis Weis
ce1cc67793
Don't format objective-c files
...
The formatter fails with them so don't attempt to do it.
3 years ago
Jannis Weis
3b13068470
CI: Run errorprone on Java 11
3 years ago
Jannis Weis
42506c137f
Build: Properly package module stubs
...
This allows them to be discovered during compilation.
3 years ago
Anticleiades
a439cd254a
Correct Italian translations
3 years ago
Anticleiades
b0976c04b7
Fix glitches occurring while resizing JFrame, by adding the missing "control" global property
3 years ago
Jannis Weis
59ca3502c8
Build: Stub invisible modules to avoid compiler warnings
...
Some modules explicitly export only to darklaf.core, because
they are implementation modules. To avoid compiler warnings
we stub the module definition.
3 years ago
Jannis Weis
e722048341
TabFrame: Add method to add custom buttons to the popup header
...
Managing the style of the header for buttons is non-trivial, so
we have the UI expose an api to create matching styled button for
the user.
3 years ago
Jannis Weis
1cc12259bd
Remove debug print statement
3 years ago
Jannis Weis
e40947b057
Build: Ensure test executions are patched to use module path
3 years ago
Xujiayao
a064098869
Correct Chinese and Japanese translations and add theme_settings translations for both languages
3 years ago
Jannis Weis
b4e38bd818
Windows: Use rcWork instead of rcMonitor in window bounds adjustments
...
The bottom would never be adjusted because of the taskbar.
3 years ago
Jannis Weis
4453ce13a7
Windows: Also extend client frame when running on Windows 11
...
Fixes #300
3 years ago
Jannis Weis
3e6672ca9b
Improve automatic tooltip alignment
...
Use a better guess for the initial alignment than always using SOUTH.
3 years ago
Jannis Weis
6e6cff98a2
Check that demos are running on the module path
3 years ago
Jannis Weis
59d3be81bc
Filter duplicate icons
3 years ago
Jannis Weis
d068d95675
Demo: Rename AllIcons to AllUIconsDemo
...
This avoids confusion with the AllIcons accessor class.
3 years ago
Jannis Weis
2ec19dbafd
Test: Start index counting from 1 for output
3 years ago
Jannis Weis
cd41dfec79
Modules: Export implementation classes only to darklaf.core
3 years ago
Jannis Weis
1cc0cd20f0
Build: Automatically patch execution tasks to run on module path
3 years ago
Jannis Weis
2ef0cb79be
Ignore space of shadow when aligning tooltip border
...
Relates to #298
3 years ago
Jannis Weis
ff44d37d16
Use background of component instead of first opaque parent
...
Fixes #298
3 years ago
Nico Mexis
554e0346c1
Update Gradle wrapper script
3 years ago
Jannis Weis
0f6d528542
Build+macOS: Add some extra @rpath entries to search for JavaNativeFoundation
...
Sometimes the Versions/Current folder doesn't seem to get recognized.
We now also search explicitly for Versions/A.
3 years ago
Jannis Weis
b2cec3ef34
Icons: Share complete state of SVGDocument by reference
...
If we don't do this then the following will happen:
1. Icon A is derived to icon B. This will copy a null document
to icon B. Also the loaded state is copied (which is an AtomicBoolean).
2. Icon A is loaded setting the loaded state to true. This also affects icon B.
3. Icon B thinks it is loaded but has null document.
3 years ago
Jannis Weis
56268d1115
Icons: Ensure loaded svg document isn't null
3 years ago
Jannis Weis
b43107e46f
Tests: Ensure tests fail when an exception occurs during setup
3 years ago
Jannis Weis
becd682f8c
Build+Tests: Setup test logging
3 years ago
Jannis Weis
7d8122fb73
Tests: Wait for demo window reference to be set
...
This should resolve flaky tests due to race conditions
3 years ago
Jannis Weis
212b006718
Increase tooltip border radius on macOS and Windows 11
3 years ago
Jannis Weis
37de65ddca
Properly display the background of popup components
3 years ago
Jannis Weis
b71d3c8019
Reduce overhead of painting balloon tooltip background
...
Instead of calculating the area loop over all parts (the round rect and triangle)
to fill.
3 years ago
Jannis Weis
0057e83b5c
Simplify and improve DropShadowBorder
...
We always displayed all shadows anyway so no need for the extra complexity.
Also, properly handle the corner radius property.
3 years ago
Jannis Weis
e2277918c6
Restore previous Laf when creating the base laf
...
When we instantiate a Darklaf we have to create the base laf.
For macOS this may require us to install the system laf in the
UIManager. We should restore it the way we found it to ensure
no surprises if one instantiates Darklaf without trying to install
it directly afterwards. Because this makes the instantiation heavier
we skip the restoring if we know we are installing the laf directly
afterwards e.g. when installing through the LafManager.
3 years ago
weisj
6025ebd4e8
Documentation: Increase resolution of preview images
3 years ago
weisj
aa88be95f8
Only load icons of colored radiobutton once
...
With the jsvg icon implementation we can directly modify
the property map and spare us the manual patching.
3 years ago
weisj
d24e3ba741
Icons: Replace svgSalamander with JSVG
3 years ago
weisj
8019e61d50
Demo: Only use files which have an svg extension
...
We need to require the dot or else we might try to load a folder as an icon.
3 years ago
Jannis Weis
99f98b5bf2
CI: Replace wrapper-cache-enabled with distributions-cache-enabled
3 years ago
Jannis Weis
09542de442
CI: Skip spotless when running errorprone
3 years ago
Jannis Weis
538a0f9cff
Properly fail build with Java < 9 and -Prelease=true
3 years ago
Jannis Weis
d4db422c71
Format README
3 years ago
Jannis Weis
6afbb0145d
Format native code
3 years ago
Jannis Weis
6f72d285f3
Format svg files
3 years ago
Jannis Weis
52d0d13282
Fix license header year ranges
3 years ago
Jannis Weis
7f61291a25
Add stub properties so the file isn't empty without license header
3 years ago
Jannis Weis
0e5fae7d07
Remove unused image resource
3 years ago
Jannis Weis
39121e29dc
Replace autostyle with spotless
3 years ago
Jannis Weis
378b6f19ea
macOS: Restore window bounds after decorations have been installed.
...
Installing the custom decorations may cause the window to be resized
as Cocoa tries to compensate for the removal of the titlebar. Hence,
any previously set size for the window wil be incorrect. We circumvent
this issue by restoring the window bounds after the installation is
completed.
Relates to #292
3 years ago
Jannis Weis
e2ceb6e662
Windows: Update close button background color for Windows 11
3 years ago