RoundBorder doesnt work for ScaleImageButton.
//it doesnt works
ScaleImageButton leaveButton = new ScaleImageButton(leaveIcon);
leaveButton.getAllStyles().setBorder(
RoundBorder.create().color(0xffd04b).rectangle(true)
);
//It works
Label leaveButton = new Label(leaveIcon);
leaveButton.getAllStyles().setBorder(
RoundBorder.create().color(0xffd04b).rectangle(true)
);
One more thing how can I make the roundBorder square? There's rectangle() method but are there any other methods for other structures for instance pentagonal, hexagonal?