unoplatform / Uno.Playground

Source code for the Uno Gallery apps and Uno Playground (made in Wasm)
https://playground.platform.uno/
Other
215 stars 34 forks source link

[Playground][CheckBox] TextBlock Text Not Visible in Dark Mode Due to Dark Font Color #525

Open jhanvi03 opened 1 month ago

jhanvi03 commented 1 month ago

Current behavior

In dark mode, the text within TextBlocks is not visible because the text color is too dark, blending into the dark background and making it unreadable.

https://github.com/user-attachments/assets/3848d1a1-c097-4d67-aa08-cf6e36cbcce3

Expected behavior

The text within TextBlocks should be clearly visible in both dark and light modes. Can we change to a color which is visible in both Dark and light mode?

How to reproduce it (as minimally and precisely as possible)

Steps to reproduce:

  1. Open Playground in any browser
  2. From the Snippets dropdown select CheckBox
  3. observe the TextBlock Text in dark and light Mode.

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

Currently, the same behavior is present in production as well. I have created the issue so we can work on improving it.

jhanvi03 commented 1 month ago

The same issue is with Button

https://github.com/user-attachments/assets/33ffdc38-ee34-467d-bcbc-1aef57bc8d74

jeromelaban commented 1 month ago

This is a snippet issue, where the text style should use a themed resource.