Skip to content

Commit

Permalink
refactor(docs): updating Chips PointerOver styling pic and doc (backp…
Browse files Browse the repository at this point in the history
…ort #799) (#800)

Co-authored-by: Ariel De Los Santos <ariel.delossantos@nventive.com>
  • Loading branch information
mergify[bot] and Arieldelossantos committed Sep 1, 2023
1 parent fe1fbdb commit 3b10bc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Binary file modified doc/assets/material-chip-pointerover-lightweight-styling.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions doc/lightweight-styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ For general information about [lightweight styling](https://learn.microsoft.com/
Just like in [Uno.Themes](xref:uno.themes.lightweightstyling), some interactive controls have multiple states (eg. ChipForeground*PointerOver*, ChipForeground*Pressed*, ChipForeground*Disabled*). Combined with these, the Chip control also has a **Checked** state. [These links](lightweight-styling#resource-keys) list the resource keys for each control.

```xml
<utu:Chip Content="Overriden Chip Style" Style="{StaticResource FilterChipStyle}">
<utu:Chip Content="Default Chip Style" />

<utu:Chip Content="Overridden Chip Style">
<utu:Chip.Resources>
<SolidColorBrush x:Key="ChipForeground" Color="DarkGreen" />
<SolidColorBrush x:Key="ChipBackground" Color="LightGreen" />
<SolidColorBrush x:Key="ChipBorderBrush" Color="DarkGreen" />
</utu:Chip.Resources>
</utu:Chip>

<!-- Overriding the PointerOver brushes -->
<utu:Chip Content="Overridden Chip Style (PointerOver)">
<utu:Chip.Resources>
<SolidColorBrush x:Key="ChipForegroundPointerOver" Color="DarkRed" />
<SolidColorBrush x:Key="ChipBackgroundPointerOver" Color="LightPink" />
<SolidColorBrush x:Key="ChipBorderBrushPointerOver" Color="DarkRed" />
Expand Down

0 comments on commit 3b10bc8

Please sign in to comment.