You can add different icons for light and dark themes.
Usually we pass an image encoded as
img. This can also be an absolute image
URL. But we can also pass an object, that contains two images with the keys
DARK for light and dark themes respectively.
The complete code for this example can be found here: ex12-dark-theme-support.