Jannis Weis
52d0d13282
Fix license header year ranges
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
weisj
48b5630b5b
Properties: Allow overwriting theme based boolean properties
...
Previously all boolean client properties installed by a Theme
were never overwritten if a different theme has different
values for them. We now parse non-boolean values when retrieving
a boolean property and properly mark the installed value as an
UIResource.
3 years ago
weisj
048dbd4087
PropertyLoader: Fix errorprone warnings
3 years ago
weisj
8dd0e958d3
Utils: Fix errorprone warnings
3 years ago
weisj
d90247ca5b
Tests: Only check that the cache size can shrink
3 years ago
weisj
2577a5a168
Util: Add cache which keeps a soft reference on the values
...
The values need to implement the SoftCache.Cacheable<K> interface
where K is the key type. By doing this they promise to keep a
reference to the key. Not doing so will eventually cause the value
from being removed from the cache.
3 years ago
weisj
0fc2d6f7f9
Build: Reenable autostyle
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
774e4fea4d
Modules: Fix resource loading when running on the module path.
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
aab96b6471
API: Move ColorUtil into util project as it is referenced there.
3 years ago
weisj
f1e1db4549
API: Move color package from utils project to property-loader project to avoid split packages.
3 years ago
weisj
d80a42efdd
Native: Fix loading jawt.dll failing on some jdks
3 years ago
weisj
2c10d41bdb
Table: Ensure custom renderers/editors are uninstalled
...
Closes #249
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
6b4fb826d6
Properties: Fix parsing system flags with default value = false
3 years ago
weisj
60e2221090
Logging: Fix formatting for detached loggers
3 years ago
weisj
acc4aaf7c2
Memory: Further ensure no memory leaks for with shared resources and wrappers can occur.
3 years ago
weisj
8215cd1bc1
NativeLibs: Check whether the corresponding native library can be loaded, when selecting the decorations provider.
...
To do this properly we add new flags to SystemInfo indicating whether the current arch supports X86 or is an ARM/M1 based cpu. The X86 support detection is most definitely incorrect but will work for most common processors. Relates to #240
3 years ago
weisj
15d156f587
Logging: Add method to create detached loggers, which use the darklaf Logger as their parent despite their package hierarchy.
3 years ago
weisj
3457eeb694
Memory: Ensure shared static helpers don't prevent ui classes from being garbage collected.
4 years ago
weisj
06f010274b
Formatting: Fix violations
4 years ago
weisj
6abca5cdd5
Improve error messages when library loading fails during installation.
4 years ago
weisj
cd2e4747af
LafInstallation: Add theme transition animation when installing the laf using the LafManager. This can be disabled by setting the "darklaf.animatedLafChange" system property to false.
4 years ago
weisj
ddf6105e57
Util: Add convenience method for checking system flags.
4 years ago
weisj
27b04c9673
Util: Move GraphicsUtil to util module.
4 years ago
weisj
7d9e7d73b7
Update year in LICENSE.
4 years ago
weisj
b5d30f4416
Rename parameter to better resemble the purpose.
4 years ago
weisj
969d8a9261
Introduce more robust parser replacement for PropertyLoader.
4 years ago
weisj
3c28c4cd15
Move ColorModel classes to util
4 years ago
weisj
029be4f873
Make helper classes final.
4 years ago
weisj
f46e601630
Ensure DerivableImageIcon load necessary resources before painting.
4 years ago
weisj
bd35c0b65b
Ensure mutable lazy values executes actions on value if set.
4 years ago
weisj
efa446a32d
Add option to change the shared ThemeSettingsPanel.
4 years ago
weisj
2faf4c2cb0
Supply visual padding hints to layout managers such as MigLayout through client properties.
4 years ago
weisj
f1a1bde4e2
Use consistent locale for #toLowerCase.
4 years ago
weisj
3ec5dfd6eb
Provide fallback values for most icon properties.
4 years ago
weisj
e960d7ec5b
Introduce DO_NOTHING constant.
4 years ago
weisj
88c35da4b6
Smooth out scroll bar animations.
...
Show scrollbar when scrolling (and scrollbar hiding is enabled).
4 years ago
weisj
2442196058
Ensure slider values are properly snapped if snapToTicks is enabled.
4 years ago
weisj
0ef5a677c0
Extract text alignment into separate method.
4 years ago
weisj
b1ca895e55
Fix color renderer/editor for tables.
4 years ago
weisj
7f6681e33f
Apply combobox render background if set.
...
Respect custom font of renderer.
4 years ago
weisj
f18eb8b73d
Update style: Reduce indentation for enum arguments.
4 years ago