io7m-com / jsycamore

Java embedded GUI package

Home Page:https://www.io7m.com/software/jsycamore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Theme change listeners?

io7m opened this issue · comments

Themes may change the size of the content area, so components need a chance to respond to this.

They get a chance to respond via the parent-resize listener.

This is needed for reasons other than resizing.

For example, checkboxes attach an image to themselves when the checkbox is pressed. If the checkbox is pressed and then the theme changes, the image will remain as whatever was used for the previous theme.