|
6 | 6 | xmlns:local="clr-namespace:PixelArtTool"
|
7 | 7 | xmlns:System="clr-namespace:System;assembly=mscorlib" x:Name="window" x:Class="PixelArtTool.MainWindow"
|
8 | 8 | mc:Ignorable="d"
|
9 |
| - Title="PixelArtTool (Test Version)" Height="412.222" Width="739.444" Background="#FF252526" KeyDown="OnKeyDown" KeyUp="OnKeyUp" Icon="Resources/Icons/appicon.ico" MouseWheel="WindowMouseWheel"> |
| 9 | + Title="PixelArtTool (Test Version)" Height="412.222" Width="739.444" Background="#FF252526" KeyDown="OnKeyDown" KeyUp="OnKeyUp" Icon="Resources/Icons/appicon.ico" MouseWheel="WindowMouseWheel" MinWidth="720" MinHeight="400"> |
10 | 10 | <Window.CommandBindings>
|
11 | 11 | <CommandBinding Command="ApplicationCommands.Undo" Executed="Executed_Undo" CanExecute="CanExecute_Undo"/>
|
12 | 12 | <CommandBinding Command="ApplicationCommands.Redo" Executed="Executed_Redo" CanExecute="CanExecute_Redo"/>
|
|
218 | 218 | <Button x:Name="btnFlipY" Click="OnFlipYButtonDown" Content="FlipY" HorizontalAlignment="Left" Margin="402,316,0,0" VerticalAlignment="Top" Width="32" ToolTip="Flip vertical"/>
|
219 | 219 | <Button x:Name="btnLoadPalette" Click="OnLoadPaletteButton" Content="Load Palette" HorizontalAlignment="Left" Margin="9,329,0,0" VerticalAlignment="Top" Width="71" ToolTip="Open 1x lospec png palette files"/>
|
220 | 220 | </Grid>
|
221 |
| - <CheckBox x:Name="chkOutline" Content="Outline" HorizontalAlignment="Left" Margin="638,50,0,0" VerticalAlignment="Top" Width="64" Click="chkOutline_Click" ToolTip="Automatic outline"/> |
| 221 | + <CheckBox x:Name="chkOutline" Content="Outline" HorizontalAlignment="Right" Margin="0,39,10,0" VerticalAlignment="Top" Width="64" Click="chkOutline_Click" ToolTip="Automatic outline"/> |
222 | 222 | <Grid>
|
223 | 223 | <Rectangle x:Name="rectCurrentColorBg" HorizontalAlignment="Left" Height="28" Margin="10,256,0,0" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="OnGetTransparentColorButton">
|
224 | 224 | <Rectangle.Fill>
|
|
227 | 227 | </Rectangle>
|
228 | 228 | <Rectangle x:Name="rectCurrentColor" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="28" Margin="10,256,0,0" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="rectCurrentColor_MouseDown" ToolTip="Current color"/>
|
229 | 229 | </Grid>
|
230 |
| - <CheckBox x:Name="chkMirrorX" Content="Symmetry X" HorizontalAlignment="Left" Margin="638,71,0,0" VerticalAlignment="Top" Width="93" Unchecked="chkMirrorX_Unchecked" Checked="chkMirrorX_Checked" ToolTip="Symmetry horizontal"/> |
| 230 | + <CheckBox x:Name="chkMirrorX" Content="Symmetry X" HorizontalAlignment="Right" Margin="0,60,10,0" VerticalAlignment="Top" Width="93" Unchecked="chkMirrorX_Unchecked" Checked="chkMirrorX_Checked" ToolTip="Symmetry horizontal"/> |
231 | 231 | <Grid>
|
232 | 232 | <Rectangle x:Name="rectSecondaryColorBg" HorizontalAlignment="Left" Height="28" Margin="47,256,0,0" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="OnGetTransparentColorButton">
|
233 | 233 | <Rectangle.Fill>
|
|
237 | 237 | <Rectangle x:Name="rectSecondaryColor" Fill="Black" HorizontalAlignment="Left" Height="28" Margin="47,256,0,0" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="rectSecondaryColor_MouseDown" ToolTip="Secondary current color"/>
|
238 | 238 | </Grid>
|
239 | 239 | <!-- https://stackoverflow.com/a/32514853/5452781 -->
|
240 |
| - <Rectangle x:Name="tempRect" Width="200" Height="200" Margin="459,130,0,0" SnapsToDevicePixels="True" HorizontalAlignment="Left" VerticalAlignment="Top" UseLayoutRounding="False" Fill="Black" /> |
241 |
| - <Rectangle x:Name="rectSaturation" Fill="{StaticResource LevelSaturationBrush}" Width="200" Height="200" Margin="459,130,0,0" StrokeThickness="1" SnapsToDevicePixels="True" HorizontalAlignment="Left" VerticalAlignment="Top" MouseDown="OnLevelSaturationMouseDown" MouseMove="OnLevelSaturationMouseMoved" /> |
242 |
| - <Rectangle x:Name="rectHueBar" Fill="{StaticResource HueBrush}" Width="20" Height="200" Margin="664,130,0,0" Stroke="Black" StrokeThickness="1" SnapsToDevicePixels="True" MouseDown="rectHueBar_MouseDown" HorizontalAlignment="Left" VerticalAlignment="Top" MouseMove="OnHueRectangleMouseMoved" /> |
243 |
| - <Rectangle x:Name="rectGetTransparentColor" HorizontalAlignment="Left" Height="28" Margin="547,97,0,0" Stroke="Black" VerticalAlignment="Top" Width="28" MouseDown="OnGetTransparentColorButton" ToolTip="Use transparent color"> |
| 240 | + <Rectangle x:Name="tempRect" Width="200" Height="200" Margin="0,130,50,0" SnapsToDevicePixels="True" HorizontalAlignment="Right" VerticalAlignment="Top" UseLayoutRounding="False" Fill="Black" /> |
| 241 | + <Rectangle x:Name="rectSaturation" Fill="{StaticResource LevelSaturationBrush}" Width="200" Height="200" Margin="0,130,50,0" StrokeThickness="1" SnapsToDevicePixels="True" HorizontalAlignment="Right" VerticalAlignment="Top" MouseDown="OnLevelSaturationMouseDown" MouseMove="OnLevelSaturationMouseMoved" /> |
| 242 | + <Rectangle x:Name="rectHueBar" Fill="{StaticResource HueBrush}" Width="20" Height="200" Margin="0,130,20,0" Stroke="Black" StrokeThickness="1" SnapsToDevicePixels="True" MouseDown="rectHueBar_MouseDown" HorizontalAlignment="Right" VerticalAlignment="Top" MouseMove="OnHueRectangleMouseMoved" /> |
| 243 | + <Rectangle x:Name="rectGetTransparentColor" HorizontalAlignment="Right" Height="41" Margin="0,84,208,0" Stroke="Black" VerticalAlignment="Top" Width="42" MouseDown="OnGetTransparentColorButton" ToolTip="Use transparent color"> |
244 | 244 | <Rectangle.Fill>
|
245 | 245 | <ImageBrush ImageSource="Resources/Images/transparentbg.png"/>
|
246 | 246 | </Rectangle.Fill>
|
|
277 | 277 | </Grid>
|
278 | 278 |
|
279 | 279 | <Rectangle x:Name="rectPixelPos" IsHitTestVisible="False" HorizontalAlignment="Left" VerticalAlignment="Top" Height="16" Stroke="Black" Width="16" Margin="89,50,0,0"/>
|
280 |
| - <Button x:Name="btnSettings" Content="Settings" HorizontalAlignment="Left" Margin="674,6,0,0" VerticalAlignment="Top" Width="50" Click="btnSettings_Click" ToolTip="Settings.."/> |
| 280 | + <Button x:Name="btnSettings" Content="Settings" HorizontalAlignment="Right" Margin="0,6,10,0" VerticalAlignment="Top" Width="50" Click="btnSettings_Click" ToolTip="Settings.."/> |
281 | 281 |
|
282 | 282 | </Grid>
|
283 | 283 | </Window>
|
0 commit comments