Skip to content

Commit

Permalink
ColorPicker: transparency slider is too far away from brightness slid…
Browse files Browse the repository at this point in the history
…er (#4944)
  • Loading branch information
alejo4000 authored May 4, 2021
1 parent 21d478c commit a00cc2b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dev/ColorPicker/ColorPicker.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@
Grid.Row="1"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"
contract7NotPresent:CornerRadius="{StaticResource ControlCornerRadius}">
<Grid x:Name="HorizontalTemplate" MinHeight="44">
<Grid x:Name="HorizontalTemplate" MinHeight="38">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="18"/>
<RowDefinition Height="14"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="18"/>
<RowDefinition Height="14"/>
</Grid.RowDefinitions>
<Rectangle x:Name="HorizontalTrackRect" Grid.ColumnSpan="3" Fill="Transparent" Height="{ThemeResource SliderTrackThemeHeight}" Grid.Row="1" Opacity="0"
contract7Present:RadiusX="{Binding CornerRadius, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource TopLeftCornerRadiusDoubleValueConverter}}"
Expand Down Expand Up @@ -256,7 +256,7 @@
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<StackPanel>
<Grid x:Name="ColorSpectrumGrid">
<Grid x:Name="ColorSpectrumGrid" Margin="0,0,0,15" >
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
Expand Down Expand Up @@ -310,7 +310,7 @@
contract7NotPresent:RadiusY="{Binding Source={ThemeResource ControlCornerRadius}, Converter={StaticResource BottomRightCornerRadiusDoubleValueConverter}}" />
</Grid>
</Grid>
<Grid Margin="0,12,0,0" x:Name="ThirdDimensionSliderGrid">
<Grid x:Name="ThirdDimensionSliderGrid">
<Rectangle Height="11" VerticalAlignment="Center"
contract7Present:RadiusX="{Binding Source={ThemeResource ColorPickerSliderCornerRadius}, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource TopLeftCornerRadiusDoubleValueConverter}}"
contract7Present:RadiusY="{Binding Source={ThemeResource ColorPickerSliderCornerRadius}, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BottomRightCornerRadiusDoubleValueConverter}}"
Expand All @@ -322,7 +322,7 @@
</Rectangle>
<primitives:ColorPickerSlider x:Name="ThirdDimensionSlider" Minimum="0" Maximum="100" ColorChannel="Value" Style="{StaticResource ColorPickerSliderStyle}" IsThumbToolTipEnabled="False" />
</Grid>
<Grid Margin="0,12,0,0" x:Name="AlphaSliderGrid">
<Grid Margin="0,0,0,3" x:Name="AlphaSliderGrid">
<Rectangle Height="11" VerticalAlignment="Center"
contract7Present:RadiusX="{Binding CornerRadius, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource TopLeftCornerRadiusDoubleValueConverter}}"
contract7Present:RadiusY="{Binding CornerRadius, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource BottomRightCornerRadiusDoubleValueConverter}}"
Expand Down

0 comments on commit a00cc2b

Please sign in to comment.