weblaf icon indicating copy to clipboard operation
weblaf copied to clipboard

Add `nearClass` attribute for skin icon node in XML skin definition

Open husker-dev opened this issue 4 years ago • 3 comments

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>?

husker-dev avatar May 03 '20 10:05 husker-dev

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

mgarin avatar May 03 '20 23:05 mgarin

Will this feature be added in future updates? For example, you can select an icon in one of the existing WebLaF skins.

husker-dev avatar May 04 '20 13:05 husker-dev

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.

mgarin avatar May 04 '20 15:05 mgarin