I'm designing a hub extension for Azure DevOps and want to have an icon that follows the feel of the existing hub icon groups.
What do I need to do to get my icon to behave like these others when themes (particularly light vs dark) are applied?
In contrast to the documentation here (which doesn't even work), it's quite simple. In your extensions manifest specify the icons as follows:
{
"id": "hub",
"type": "ms.vss-web.hub",
"targets": [
"ms.vss-work-web.work-hub-group"
],
"properties": {
"name": "Hub",
"description": "Something",
"uri": "pages/Hub.html",
"icon": {
"light": "img/hub-light.png",
"dark": "img/hub-dark.png"
}
}
}