|
7 | 7 | xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="PixelArtTool.Settings" |
8 | 8 | mc:Ignorable="d" |
9 | 9 | Title="Settings" Height="330" Width="300" Background="#FF252525" Closing="Window_Closing"> |
10 | | - <Grid> |
| 10 | + <Grid> |
11 | 11 | <StackPanel> |
12 | 12 | <Separator Height="20" Margin="0"/> |
13 | 13 | <StackPanel Orientation="Horizontal"> |
14 | | - <CheckBox Content="Show grid"/> |
15 | 14 | <Label>Light Color</Label> |
16 | 15 | <Rectangle x:Name="settingsLightColor" Fill="#FFFFFFFF" HorizontalAlignment="Left" Height="28" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="settingsLightColor_MouseDown"/> |
17 | 16 | <Label>Dark Color</Label> |
18 | 17 | <Rectangle x:Name="settingsDarkColor" Fill="#00000000" HorizontalAlignment="Left" Height="28" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="settingsDarkColor_MouseDown"/> |
19 | 18 | </StackPanel> |
20 | | - |
| 19 | + <Label>Grid Transparency</Label> |
| 20 | + <Slider x:Name="sldGridAlpha" Maximum="255" SmallChange="1" LargeChange="10" TickFrequency="10" Value="64" AutoToolTipPlacement="TopLeft" Margin="10,10,10,0" /> |
| 21 | + |
21 | 22 | <Separator Height="20" Margin="0"/> |
22 | 23 | <Label>Default Resolution</Label> |
23 | | - <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Margin="117.07,0,133.93,0"><Run Text="{Binding Value, ElementName=sliderResolution, StringFormat=\{0:#\}}"/><Run Text=" "/><Run Text="x"/><Run Text=" "/><Run Text="{Binding Value, ElementName=sliderResolution, StringFormat=\{0:#\}}"/></TextBlock> |
24 | | - <Slider x:Name="sliderResolution" Minimum="8" Maximum="64" SmallChange="8" TickFrequency="8" LargeChange="8" TickPlacement="Both" Value="16" AutoToolTipPlacement="TopLeft" IsSnapToTickEnabled="True" Margin="0,0,0,0"/> |
| 24 | + <TextBlock HorizontalAlignment="Center" FontWeight="Bold" Margin="0" Width="54"><Run Text="{Binding Value, ElementName=sliderResolution, StringFormat=\{0:#\}}"/><Run Text=" "/><Run Text="x"/><Run Text=" "/><Run Text="{Binding Value, ElementName=sliderResolution, StringFormat=\{0:#\}}"/></TextBlock> |
| 25 | + <Slider x:Name="sliderResolution" Minimum="8" Maximum="64" SmallChange="8" TickFrequency="8" LargeChange="8" TickPlacement="Both" Value="16" AutoToolTipPlacement="TopLeft" IsSnapToTickEnabled="True" Margin="10,0"/> |
25 | 26 |
|
26 | 27 | <Separator Height="20" Margin="0"/> |
27 | | - <Rectangle x:Name="defaultColor" Fill="#FF000000" HorizontalAlignment="Left" Height="28" Stroke="Black" VerticalAlignment="Top" Width="28"/> |
28 | | - <Button x:Name="okButton" IsDefault="True" Content="OK" Click="OnOkButtonClick" Margin="80,0,137,0" Height="50"/> |
29 | | - <Button x:Name="cancelButton" IsCancel="True" Content="Cancel" Margin="0,0,217,0" Height="50"/> |
| 28 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> |
| 29 | + <Button x:Name="resetButton" HorizontalAlignment="Left" Content="Reset" ToolTip="Reset to default settings" Height="50" Width="50" Margin="0,0,25,0" Click="resetButton_Click"/> |
| 30 | + <Button x:Name="cancelButton" IsCancel="True" HorizontalAlignment="Left" Content="Cancel" Height="50" Width="50" Margin="0,0,25,0"/> |
| 31 | + <Button x:Name="okButton" IsDefault="True" Content="OK" Click="OnOkButtonClick" Height="50" Width="100" Margin="0" HorizontalAlignment="Right"/> |
| 32 | + </StackPanel> |
30 | 33 | </StackPanel> |
31 | 34 | </Grid> |
32 | 35 | </Window> |
0 commit comments