Skip to content

Commit

Permalink
[Colors] Adding highcontrast brushes (#1401)
Browse files Browse the repository at this point in the history
This PR adds a `High Contrast` page to the colors overview, and shows
the 8 high contrast brushes that come with WinUI.

This closes: #1217

New high contrast page:

![image](https://github.com/microsoft/WinUI-Gallery/assets/9866362/48aaac45-f3ff-483f-91f9-f95b8ba324f1)



Screenshot from WinUI Visual Library Figma (source):

![image](https://github.com/microsoft/WinUI-Gallery/assets/9866362/1323d9df-fd4a-44de-a5b2-95500911fab0)
  • Loading branch information
niels9001 authored Jan 7, 2024
1 parent 51c871f commit 909b041
Show file tree
Hide file tree
Showing 5 changed files with 435 additions and 0 deletions.
1 change: 1 addition & 0 deletions WinUIGallery/ControlPages/DesignGuidance/ColorsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<x:String>Stroke</x:String>
<x:String>Background</x:String>
<x:String>Signal</x:String>
<x:String>High Contrast</x:String>
</ComboBox>

<controls1:SampleThemeListener Grid.Row="2">
Expand Down
3 changes: 3 additions & 0 deletions WinUIGallery/ControlPages/DesignGuidance/ColorsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ private void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
case 4:
NavigationFrame.Navigate(typeof(SignalSection));
break;
case 5:
NavigationFrame.Navigate(typeof(HighContrastSection));
break;
}
}

Expand Down
Loading

0 comments on commit 909b041

Please sign in to comment.