weisj
1f6eb6ecf8
PropertyLoader: Drop support for color values without a leading #
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
e0bd43dc06
Icons: Fix url discrepancy when running on module path
...
When running on the module path the url returned by `Class::getResource` would start with jar:file:/// instead of the jar:file:/ from the class loader. This messes up the uri resolving for patched icons.
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
54bd006ad2
Parser: Fix insets test.
...
We should check whether insets.top is a valid color instead of checking insets.right twice.
3 years ago
weisj
34f63b4e16
Test: Fix typo
3 years ago
weisj
7124da004d
SVG: Write back fallback-opacity values to the internal svg representation s.t. it doesn't get lost during laf change.
3 years ago
weisj
fe19e2ebd2
Provide mechanism to specify VisualPaddings for svg icons in the xml markup.
4 years ago
weisj
3457eeb694
Memory: Ensure shared static helpers don't prevent ui classes from being garbage collected.
4 years ago
weisj
3f16eec70c
Fix theme properties not being displayed in the generated UITable.
...
Improve sorting of values.
4 years ago
weisj
b5da5cdb2d
Check if text antialiasing hint isn't null.
4 years ago
weisj
5580656e79
Build: Update to Gradle 7
...
Upgrade gradle version to 7.0. Make use of typesafe project and library accessors. These replace the current bom project.
Handle different xCode version on macOS.
4 years ago
weisj
37ed8e158b
SVGIcon: Pass component as image observer when painting the off-screen buffer.
4 years ago
weisj
f611ac25e6
SVGIcon: Formatting
4 years ago
weisj
7d9e7d73b7
Update year in LICENSE.
4 years ago
weisj
f161b369ec
Mark more log statements as level=Finer.
4 years ago
weisj
c931ccac75
Add #toString implementation for svg icons.
4 years ago
weisj
09083f0bfb
Introduce string literal syntax and load some icon colors trough deferred property resolution at patch time.
4 years ago
weisj
dda49f082b
Log image buffer creation on finer level.
4 years ago
weisj
8fc941b65f
Use correct size when creating image. Relates to #231
4 years ago
weisj
2bd096c69c
Log icon size and scale.
4 years ago
weisj
4add8d6a0e
Also check integer values for possible clash with color range in dimension test.
4 years ago
weisj
c2f93043bf
Ensure proper antialiasing when painting icons to off-screen buffer.
4 years ago
weisj
47332d3446
Add support for legacy color declarations without '#' prefix.
4 years ago
weisj
c05082665b
Avoid creating derived instances with the same size as the icon.
...
Even though the check may cause the icon(uri) to be loaded this
avoid painting to multiple off-screen images when the icon size is only
inferred from the svg hence causing multiple instances of the same icon with
the same size.
Note that this check will only cause the icon to be loaded if the icon size is
inferred.
4 years ago
weisj
2cf2cfa444
Infer icon size for svg icons, when no size is given.
...
Icons can be scaled to fit a specific size if both arguments are the same and negative (< -1).
4 years ago
weisj
f5d7873a23
Require colors to start with #. This avoid ambiguity between numbers and colors.
4 years ago
weisj
3ab63d64a0
Update Parser tests with new delimiters
4 years ago
weisj
48397e94c4
Make test classes non public
4 years ago
weisj
159e1394f9
Migrate to new parsing system.
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
f4606cfec3
Use component as image observer if possible.
4 years ago
weisj
f46e601630
Ensure DerivableImageIcon load necessary resources before painting.
4 years ago
weisj
25554e9158
Make Darklaf#getID reproducible across all Darklaf subclasses.
4 years ago
weisj
b2fa58ebc5
Make Icon editor usable with non-darklaf lafs (very rudimentary).
4 years ago
weisj
3ec5dfd6eb
Provide fallback values for most icon properties.
4 years ago
weisj
f6c07b4a0f
Update IconEditor layout.
4 years ago
weisj
b2461982d5
Allow passing context defaults in constructor and offer different modes for merging context properties (hardcode them, remove them (i.e. use the values from the new context) or replace them with explicit references).
4 years ago
weisj
0d12aee528
Expose #getUri to sublasses.
4 years ago
weisj
2c55ad4f11
Add API to change the context properties of a custom icon (i.e the theme defaults).
...
Add option to reference other properties when resolving icon properties. Properties can be referenced by setting the property value to %<other property>.
4 years ago
weisj
3dca652e82
Add method to get the reference prefix.
4 years ago
weisj
02734d0a97
Add OverlayIcon and TextIcon.
4 years ago
weisj
fac5fe81c4
Improve preview for UIManagerDefaults.
4 years ago
weisj
8e131b11b3
Update style. Enum declarations should always be in separate lines.
4 years ago