AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

[Feature Request] Allow a different image url for dark mode

Open el opened this issue 3 years ago • 3 comments

Problem Statement

Currently, there is no way to supply a different image for the dark mode. We can use a transparent image but the text becomes an issue.

Light mode

image

Dark mode image

Proposed solution

Use the {theme} parameter in the image path and re-load the image automatically when the appearance changes.

Alternatives or Workarounds

We use a transparent background image with a text color of #777

el avatar Nov 02 '21 11:11 el

@el - great suggestion! I added this to our roadmap to investigate how we can implement this

jonmill avatar Nov 04 '21 18:11 jonmill

Hey guys, it's been a few years. Just adding in that I would love this feature to be added in. Honestly, all I need is some sort of variable that tells me if the user is using Light theme or Dark theme in Teams and I can take care of the rest. This would open up a ton of possibilities for our team.

jCarreroRezolve avatar Feb 27 '24 19:02 jCarreroRezolve

Hi @jonmill ! Just wanted to express that we need this feature as well. Adaptive cards are great, but when you are done design it and you switch to dark mode, it suddenly looks bad. Please help out! :-)

jke-r avatar May 03 '24 09:05 jke-r