dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

Text entry border disappear when changing to/from dark mode in Android #15524

Open webwarrior-ws opened 1 year ago

webwarrior-ws commented 1 year ago

Description

If dark theme is enabled or disabled when application is running, border around text entry widgets (Entry, TextEditor, Picker) disappears. More specifically, it doesn't update its color on theme change so it blends with the background. This is true for both light -> dark and dark -> light changes.

Light -> dark:

Capture_entry_border_light Capture_entry_border_dark


Dark -> Light:

Capture_entry_border_dark_2 Capture_entry_border_light_2

Steps to Reproduce

  1. Create a Maui app with Entry elements.
  2. Launch app on Android
  3. While app is running, switch dark theme on (if it was off) or off (if it was on)

Expected behavior:

Text entry border remains visible.

Actual behavior:

Text entry border is not visible.

Link to public reproduction project repository

https://github.com/webwarrior-ws/SampleMauiAppWithEntry

Version with bug

7.0.49

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

any?

Did you find any workaround?

No response

Relevant log output

No response

siddhisadh commented 1 year ago

Any update on this ? I am also facing the same issue.

Amir000001 commented 1 year ago

Any update on this ? I am also facing the same issue.

janeyuhwian commented 7 months ago

Any update?

CodingOctocat commented 5 months ago

I have the same issue/Android🤖

Enigma86d commented 5 months ago

I also have same issue, using .NET8, 8.0.40 (latest as of June 2024)