Jannis Weis
fa442a8bd3
Remove darklaf.properties dependency from windows and mac module
3 years ago
Jannis Weis
63c5a1b836
Extract system preference reporting mechanism to own module
...
To do this the following restructuring is performed:
- Move decorations specific classes to darklaf-platform-decorations
- Move SystemInfo to darklaf-platform-base
- Move theme specification specific classes to darklaf-theme-spec
- Create new module darklaf-platform-preferences for the reporting related classes
3 years ago
Jannis Weis
5f69904a22
Remove refactoring artifacts
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
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
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
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
Jannis Weis
b43107e46f
Tests: Ensure tests fail when an exception occurs during setup
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
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
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
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
df03d31e43
Windows: Set correct value for isWindows11 in SystemInfo through native code
...
Currently, the JDK doesn't correctly report the current operating system.
For now, we query the value ourselves using native code. This will be updated
once the JDK backport is available:
https://bugs.openjdk.java.net/browse/JDK-8274840
3 years ago
Jannis Weis
4c28099ec9
ScrollBar: Use rounded scrollbars on Windows 11
3 years ago
Jannis Weis
abcdb9b573
Build: Update nullabilityAnnotations to version 23.0.0
3 years ago
Jannis Weis
25618d5fa7
Setup dependency catalog in settings.gradle.kts
...
This allows us to move the dependency versions back into
gradle.properties so version for plugins and dependencies are declared
in a centralized way.
This commit also removes the legacy macOS framework dependencies.
3 years ago
Jannis Weis
02a15f1351
Rename isWindows10 to isWindows10OrGreater
...
This value does report true for Windows 11 and should indicate this in its name.
3 years ago
Jannis Weis
f7f2629dc2
Build: Update Gradle to version 7.3.3
3 years ago
weisj
e9625ce62d
Resources: Include resources for basic/metal laf bundles
...
Fixes #289
3 years ago
weisj
e6227eb36a
Settings: Remove unused function parameter
3 years ago
weisj
23f7c94d2b
Remove debug print statement
3 years ago
weisj
ff845c4823
Installation: Reserve needed space for UIDefaults.
3 years ago
weisj
88e8bf8b87
Settings: Issue warning if theme is reinstalled unnecessarily
3 years ago
weisj
32158feb37
Settings: Ensure system settings are respected regardless off the SettingsConfiguration implementation
...
Fixes #286
3 years ago