|
1 | | -<UserControl x:Class="ColorAnalyzerExperiment.Samples.ContrastOptionsPane" |
| 1 | +<UserControl x:Class="ColorAnalyzerExperiment.Samples.ContrastOptionsPane" |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
4 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | 6 | xmlns:local="using:ColorAnalyzerExperiment.Samples" |
6 | | - xmlns:controls="using:CommunityToolkit.WinUI.Controls" |
7 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
8 | 8 | mc:Ignorable="d"> |
9 | 9 |
|
10 | 10 | <StackPanel Spacing="2"> |
11 | | - <TextBlock Text="Desired Foreground"/> |
12 | | - <controls:ColorPicker Color="White" IsColorSliderVisible="True" IsColorChannelTextInputVisible="True" ColorChanged="Foreground_ColorChanged"/> |
13 | | - |
14 | | - <TextBlock Text="Background"/> |
15 | | - <controls:ColorPicker Color="Black" IsColorSliderVisible="True" IsColorChannelTextInputVisible="True" ColorChanged="Background_ColorChanged"/> |
| 11 | + <TextBlock Text="Desired Foreground" /> |
| 12 | + <controls:ColorPicker ColorChanged="Foreground_ColorChanged" |
| 13 | + IsColorChannelTextInputVisible="True" |
| 14 | + IsColorSliderVisible="True" |
| 15 | + Color="White" /> |
16 | 16 |
|
17 | | - <Slider Header="Minimum Ratio" Value="3" Minimum="1" Maximum="21" ValueChanged="Ratio_ValueChanged"/> |
| 17 | + <TextBlock Text="Background" /> |
| 18 | + <controls:ColorPicker ColorChanged="Background_ColorChanged" |
| 19 | + IsColorChannelTextInputVisible="True" |
| 20 | + IsColorSliderVisible="True" |
| 21 | + Color="Black" /> |
18 | 22 |
|
19 | | - <Slider Header="Font Size" Value="18" Minimum="8" Maximum="48" ValueChanged="FontSize_ValueChanged"/> |
| 23 | + <Slider Header="Minimum Ratio" |
| 24 | + Maximum="21" |
| 25 | + Minimum="1" |
| 26 | + ValueChanged="Ratio_ValueChanged" |
| 27 | + Value="3" /> |
20 | 28 |
|
21 | | - <Slider Header="Stroke Thickness" Value="4" Minimum="0" Maximum="8" ValueChanged="Thickness_ValueChanged"/> |
| 29 | + <Slider Header="Font Size" |
| 30 | + Maximum="48" |
| 31 | + Minimum="8" |
| 32 | + ValueChanged="FontSize_ValueChanged" |
| 33 | + Value="18" /> |
| 34 | + |
| 35 | + <Slider Header="Stroke Thickness" |
| 36 | + Maximum="8" |
| 37 | + Minimum="0" |
| 38 | + ValueChanged="Thickness_ValueChanged" |
| 39 | + Value="4" /> |
22 | 40 | </StackPanel> |
23 | 41 | </UserControl> |
0 commit comments