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
Jannis Weis
3cd53e143a
ScrollBar + Windows: Hide scrollbars by default on Windows 11
3 years ago
Jannis Weis
7cf80c29d1
ScrollBar: Hide rounded scrollbar if thumb is empty.
...
If a theme decides to make the minimized scrollbar be size
0 it should be completely hidden.
3 years ago
Jannis Weis
c692eebf25
ScrollBar: Increase size of minimized scrollbar
...
The minimized scrollbar should still indicate that it exists.
3 years ago
Jannis Weis
33b8203fb1
ScrollBar: Make minimum width/height of scrollbar twice as large as smaller axis.
...
This makes it easier to grab the scrollbar for large viewports.
3 years ago
Jannis Weis
e83dc41510
ScrollBar: Remove remains of macOS specific implementation
3 years ago
Jannis Weis
fc2732ea29
Windows: Fix incorrect maximize icon color
3 years ago
Jannis Weis
dd3b542781
Remove usage of java.applet.Applet and java.security.*
...
Both are scheduled for removal and only occur because
the respective code replicates JDK classes. All occurrences
aren't strictly necessary hence can be removed.
3 years ago
Jannis Weis
bcea600f25
Build: Clean up dependency declarations
...
They were very cluttered before. Adding some dsl functions
help to condense the information and reduce repetition.
This also fixes the failing errorprone CI.
3 years ago