weblaf
weblaf copied to clipboard
Add `nearClass` attribute for skin icon node in XML skin definition
In the Wiki about Styling introduction
I saw the use of nearClass
in <include>
.
As far as I understand, this points to the class next to which the file is located.
But can this option be applied to other headers like <icon>
?
Unfortunately right now - it cannot be applied to <icon>
node:
https://github.com/mgarin/weblaf/blob/master/modules/ui/src/com/alee/managers/style/data/SkinInfoConverter.java#L174
You can see the <include>
node being read differently in the same converter:
https://github.com/mgarin/weblaf/blob/master/modules/ui/src/com/alee/managers/style/data/SkinInfoConverter.java#L174
Will this feature be added in future updates? For example, you can select an icon in one of the existing WebLaF skins.
It's a good idea, but I'm currently fully reworking this code as a part of performance improvement changes and I'm not yet sure what will happen with the icon as a result.
I'll change this to enhancement and add this issue to v1.3.0 to keep it visible for myself.