For now, this is just a proof of concept for adding an image widget. It works, but it needs some polishing.
The main design problem is how to control the scale of the image. The current situation is that the image is always displayed at its natural size, and the widget may or may not be big enough to display it. The image is cropped if the widget is too small and whitespace is added if the widget is too big (the image is left aligned but vertically centered). I'm thinking that the image should just be scaled to the widget size, without concern for aspect ratio, but this is up for debate if anyone has thoughts.
The other big missing pieces are, of course, docs and tests.
For now, this is just a proof of concept for adding an image widget. It works, but it needs some polishing.
The main design problem is how to control the scale of the image. The current situation is that the image is always displayed at its natural size, and the widget may or may not be big enough to display it. The image is cropped if the widget is too small and whitespace is added if the widget is too big (the image is left aligned but vertically centered). I'm thinking that the image should just be scaled to the widget size, without concern for aspect ratio, but this is up for debate if anyone has thoughts.
The other big missing pieces are, of course, docs and tests.