Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Enhancement] Entry Clear Button Color Effect #1359

Closed
1 of 2 tasks
Axemasta opened this issue Jun 3, 2021 · 2 comments
Closed
1 of 2 tasks

[Enhancement] Entry Clear Button Color Effect #1359

Axemasta opened this issue Jun 3, 2021 · 2 comments
Labels
feature-request A request for a new feature. needs-approval Feature request has been submitted but is awaiting final approval. Please do not implement before!

Comments

@Axemasta
Copy link
Contributor

Axemasta commented Jun 3, 2021

Summary

I recently came across the requirement to change the color of the clear button on an Entry and wrote and effect for it. It wasn't the nicest experience getting working on specifically iOS and thought it might be a nice addition to the community toolkit.

API Changes

A new effect named:
ClearButtonColorEffect

With the parameters: Color, defaulting to Color.Default

Intended Use Case

For making Entrys look fancier!

A pink clear button on iOS
Hot Pink Clear Button on iOS

A red clear button on Android
Red Clear Button on Android

In Xaml:

<Entry Placeholder="Write Something" Text="Clear Me" ClearButtonVisibility="WhileEditing">
    <Entry.Effects>
        <effects:ClearButtonColorEffect Color="Lime"/>
    </Entry.Effects>
</Entry>

Who Will Do The Work?

  • I am willing to take this on myself
  • Just putting this out there for someone to pick up
@Axemasta Axemasta added feature-request A request for a new feature. needs-approval Feature request has been submitted but is awaiting final approval. Please do not implement before! labels Jun 3, 2021
@aritchie
Copy link

aritchie commented Jun 3, 2021

There is already a fix in a PR for XF to resolve this. xamarin/Xamarin.Forms#12391

@Axemasta
Copy link
Contributor Author

Axemasta commented Jun 3, 2021

Ah beat me to it!

Nevertheless here is the effect in a gist, not optimised at all but it give people the feature now, instead of waiting for a XF release 😁

@Axemasta Axemasta closed this as completed Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request A request for a new feature. needs-approval Feature request has been submitted but is awaiting final approval. Please do not implement before!
Projects
None yet
Development

No branches or pull requests

2 participants