Is there any special reason why we can’t set an edge indent with the ImageOnButtonBackground style? I’ve had a number of cases where I don’t want extremely large icons on buttons and it seems a bit long winded to create a subclass for a simple one line change.
I know just adding a reduction in resized(): if (style == ImageOnButtonBackground) would mess with existing code but you could just set the edgeIndent to 0 in the constructor if this style is being used.
Or is there a simple alternative that I’m missing?
Ok, I’ve given the class a bit of a spring-clean too. For the indent, I’ve made it use the indent only if it’s greater than the default indent that it would have used previously, so old code should also still look the same.