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.
theme parameter, which can be
'DARK'. This information is determined by the adapter and can be used in the dapplet-feature or in the overlay.
The complete code for this example can be found here: ex12-dark-theme-support.