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
weisj
10fa57e286
Don't keep increased rotated scale to avoid down-sampling artefacts.
4 years ago
weisj
988a0dfc65
Add icon for JColorChooser.
...
Decrease size of hexvalue field for SmallColorChooser.
Move textfield padding from border to margins.
4 years ago
weisj
c4f64a4971
Add default implementation of UIAwareIcon which don't rely on the IconLoader mechanism for external custom icons.
4 years ago
weisj
969cf0bfc5
Add overload to make the ToggleIcon api meaningful for situations where it isn't used for enabled/disabled icons.
4 years ago
weisj
52fc48d52c
Introduce utility method to rescale an icon.
4 years ago
weisj
ae8ad433a4
Properly detect if themed color needs to be refreshed.
...
Provide default value for 'apple.laf.useScreenMenuBar' system property on macOS.
4 years ago
weisj
1b26a1aa7c
Add manual rotation selection to RotatableIconDemo.
...
Add icon selection to RotatableIconDemo.
4 years ago
weisj
07586c3c90
Improve svg exception message to include icon path.
4 years ago
weisj
ae473cb7a1
Updated code style
...
- Keep simple if in one line.
- Wrap enum declarations if necessary.
4 years ago
weisj
9928b9afd4
Switched to google formatting with increased linewidth and indentation size.
4 years ago
weisj
a87788350a
Ensure spinner respects user set background (specifically table cell editor background).
4 years ago
weisj
a464d233d1
Updated formatting rules.
4 years ago
weisj
dc99fbf435
Make sure listeners are notified if theme is installed through a synthesised Laf.
...
Fix togglebutton reporting incorrect preferred width.
Change semantics of light/dark slider in IconDemo to only change the icon theme and not the laf theme.
Removed non-functioning method LafManager#reloadTheme.
4 years ago
weisj
e5e8b69178
Check for actually installed theme instead of set theme.
4 years ago
weisj
12dc523d87
Ensure fonts are created as composite fonts.
4 years ago
weisj
1c8b4f42a2
Improve performance of JTable by disabling kerning on table font.
...
Ensure lead selection border of tree cell is painted last.
Added option to declare fallback values in properties that are only applied if the key doesn't have a value associated yet.
Ensure boolean renderers use the correct cell border.
Center boolean renderers.
Ensure DarkMultiCellEditor uses the correct delegate.
Fixed missing border on table header cell after scrolling.
4 years ago
weisj
78a31f07e0
Remove configuration time only property from UIDefaults.
4 years ago
weisj
8c5c8ddc97
Add JToggleButtonList.
...
Respect border insets when calculating bounds for the togglebutton slider variant.
4 years ago
weisj
c8a4c80778
Log changes to theme settings.
...
Finer log differentiation.
4 years ago