dotnet / dotnet/maui

Shell SearchHandler icon colors and sizes

Open
#10,893 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-controls-shell proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

Description
  1. Cannot set Color of SearchHandler's Magnifier Icon and Left Arrow Icon when SearchBoxVisibility="Collapsible". This Icons is always white. So when I set Background Color to light gray, these icons became almost invisible.
  2. Cannot set Size of QueryIcon and Cancelcon inside SearchHandler's input field. I'm trying to use FontImageSource with fontawesome, instead of png image when I can control gaps.
  3. Also it would be great to control appearance of input field, including corner radius and shadow.

Screenshot_1666705370

Thank you!

Public API Changes

SearchHandler.IconColor = Colors.Black;
--or--
Shell.ForegroundColor to affect SearchHandler's icons color.

SearchHandler.QueryIconWidth = 10;
SearchHandler.QueryIconHeight = 10;
--or even better--
SearchHandler.QueryIconView = new ContentView { ... };

SearchHandler.CancelIconWidth = 10;
SearchHandler.CancelIconHeight = 10;
--or even better--
SearchHandler.CancelconView = new ContentView { ... };

SearchHandler.EntryBorderRadius = 10;
SearchHandler.EntryShadow = ...;

Intended Use-Case

Please see an attached screenshot.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Shell SearchHandler entry point and reviewing how its icons and input field are currently configured. The requested work covers icon colors, query and cancel icon sizing or replacement views, and input-field corner radius and shadow; it is done when these appearance options can be controlled for the collapsible SearchHandler.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.