microsoft / microsoft/AdaptiveCards

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

Open
#6,676 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Request
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the image URL handling and the code that responds to appearance changes. Check how the proposed {theme} parameter could be resolved for light and dark modes, and how the image would be reloaded after a change. Done means cards can display separate light- and dark-mode image URLs without the transparent-image workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.