dotnet / dotnet/maui

[Android] SearchBar does not update colors on theme change

Open
#30,600 3 comments 0 reactions 1 assignee Claimed by @kubaflo View on GitHub
area-controls-searchbar partner/android s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

On Android, when changing the app theme at runtime (e.g., from light to dark or dark to light), the SearchBar does not update its visual elements to reflect the new theme. Specifically, the following components retain their old styling:

Search icon (magnifying glass)
* Cancel (clear) button
* Placeholder text color
* Entered text color

This leads to visual inconsistencies, especially when switching from dark to light mode or vice versa, where text/icons may become invisible or unreadable.

### Version with bug

9.0.82 SR8.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.