dotnet / dotnet/maui

Can we separate button Opacity as each part of button has own Opacity, like Background-Opacity, Text-Opacity, BorderColor-Opacity, ImageOpacity?

Open
#7,597 3 comments 1 reaction 0 assignees View on GitHub
area-controls-button labs-candidate partner/cat 😻 proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
306

Description

### Description

We have a feature to change button/ImageButton TextColor, BackgoundColor, BorderColor or ImageOpacity on each of state. some colors just modify it's own opacity.
For right now I found There is no separate Opacity for each of the properties like TextColor, BackgroundColor and BorderColor. So can we separate them for each of properties?

### Public API Changes

```xaml

```
or
```

<Setter Property="TextColorOpacity" Value="0.8" />
<Setter Property="BorderColorOpacity" Value="0.9" />
<Setter Property="ImageOpacity" Value="0.8" />
<Setter Property="BackgroundColorOpacity" Value="0.7" />

<Setter Property="ImageOpacity" Value="0.8" />
<Setter Property="BorderColorOpacity" Value="0.9" />
<Setter Property="BackgroundColorOpacity" Value="0.7" />

```

### Intended Use-Case

We have a feature to change button TextColor, BackgoundColor and BorderColor on each of state. some colors just modify it's own opacity. So I hope there are some separate opacities used for controlling button's TextColor, BorderColor or BackgroundColor. You can see my detail code in API changes.

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.