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
21.99k stars 1.72k forks source link

Facing issues with the SearchBar's search icon when applying Dark theme. #23846

Open SethupathyD opened 1 month ago

SethupathyD commented 1 month ago

Description

After switching to the dark theme at runtime, the search icon color for the Search Bar does not change.

https://github.com/user-attachments/assets/678bfedf-8c57-4196-a081-b79bad67e284

Steps to Reproduce

  1. Run the attached repository.
  2. Click the button to switch theme.
  3. the search icon color for the Search Bar does not change.

Link to public reproduction project repository

https://github.com/SethupathyD/SearchIconThemeIssue

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

kevinxufei commented 1 month ago

This issue has been verified using Visual Studio 17.11.0 Preview 5.0(8.0.70 & 8.0.61 & 8.0.40). Can repro on it with sample project. SearchIconThemeIssue-main.zip

MitchBomcanhao commented 1 month ago

as is clearly visible in the video, the issue is not just with the search icon. the clear icon is also broken. the issue should be expanded to include both.

edit: I might be mistaken if the clear icon just disappeared due to focus shifting to the button