Hello Jules,
I have tried without success to reduce the size of the border that a DrawableButton puts around its Image when using the ImageOnButtonBackground style. Looking at the code in DrawableButton::resized(), I see that the minimum allowed border is 1/4 of the button dimension per side.
I also tried deriving a class, overriding resized(), and apart from the fact that the way to access the various images for each state is quite annoying without some sort of getImage(index) method, this does not work, since DrawableButton::buttonStateChanged() explicitly calls DrawableButton::resized() instead of just resized().
Yes, I could write an almost identical class that does what I need, but would you consider making DrawableButton a little more customizable?
Thanks