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.03k stars 1.73k forks source link

Searchbar Icon Color #22963

Open AsadAli629 opened 3 months ago

AsadAli629 commented 3 months ago

Description

i am using a SearchBar Tag which has a Background Color Of White that is given by me. but the By deafult Color if Icon in SearchBar is also white . So the SearchBar icon color is not visible due to the same color. There is No attributes to define icon Color in searchbar like" CancelButtonColor" . So we can say that this is Bug / Misbehave of attributes.

Steps to Reproduce

                <SearchBar  x:Name="searchbar"  PlaceholderColor="LightGray" Placeholder="Search..." TextColor="Black" BackgroundColor="Black" CancelButtonColor="Black" Grid.ColumnSpan="2" HorizontalOptions="StartAndExpand" VerticalOptions="Center" WidthRequest="300" StyleClass="" AutomationProperties.IsInAccessibleTree="False" Background="#E81515" />

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 3 months 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:

Closed similar issues:

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

Zhanglirong-Winnie commented 3 months ago

Verified this issue with Visual Studio 17.11.0 Preview 1.1 (8.0.40&8.0.21&8.0.3). Can repro on Windows platform with sample project. Screenshot 2024-06-12 124156

AsadAli629 commented 3 months ago

Verified this issue with Visual Studio 17.11.0 Preview 1.1 (8.0.40&8.0.21&8.0.3). Can repro on Windows platform with sample project. Screenshot 2024-06-12 124156

Yes the same issue i have face.