Avaiga / taipy

Turns Data and AI algorithms into production-ready web applications in no time.
https://www.taipy.io
Apache License 2.0
11.05k stars 781 forks source link

User theme (light or dark mode) should be an accessible variable #1492

Open AlexandreSajus opened 2 months ago

AlexandreSajus commented 2 months ago

Description

A user on Discord requested this. The user's theme (light or dark mode) should be a callable variable within the code. This way, the dev could have different images displayed according to the current theme (a white background image in light mode and a black background image in dark mode)

Acceptance Criteria

Code of Conduct

ranjanmangla1 commented 2 months ago

would love to work on this @AlexandreSajus. can you assign me this issue?

jrobinAV commented 2 months ago

@ranjanmangla1 The "Help wanted" and "good first issue" labels have been misused on this issue. The issue has not been validated nor discussed with the maintainer team, yet.

We will discuss it as soon as possible (probably tomorrow) and will let you know if the issue is ok to be assigned.

Thank you for your understanding.

jrobinAV commented 2 months ago

A priori, it will be implemented as a CSS rule. The documentation should provide an example.