mgarin / weblaf

WebLaF is a fully open-source Look & Feel and component library written in pure Java for cross-platform desktop Swing applications.
http://weblookandfeel.com
GNU General Public License v3.0
1.13k stars 234 forks source link

JTree expand and collapse icons are hardcoded in WebTreeUI #703

Open mgarin opened 1 year ago

mgarin commented 1 year ago

Description JTree expand and collapse icons are hardcoded in WebTreeUI:

    @NotNull
    @Override
    public Icon getExpandedIcon ()
    {
        return tree.isEnabled () ? Icons.squareMinus : Icons.squareMinusDisabled;
    }

    @NotNull
    @Override
    public Icon getCollapsedIcon ()
    {
        return tree.isEnabled () ? Icons.squarePlus : Icons.squarePlusDisabled;
    }

They should instead be configurable via methods in WebTree or the UI implementation.

Additional information Based on issue mentioned in question: #702