Browse Source

Merge pull request #215 from PixiEditor/swatches-fix

Fixed swatches background img
Krzysztof Krysiński 4 years ago
parent
commit
a3eee57187
1 changed files with 2 additions and 2 deletions
  1. 2 2
      PixiEditor/Views/UserControls/SwatchesView.xaml

+ 2 - 2
PixiEditor/Views/UserControls/SwatchesView.xaml

@@ -28,9 +28,9 @@
             <ItemsControl.ItemTemplate>
                 <DataTemplate>
                     <Grid Width="45" Height="45" Margin="0 5 5 5">
-                        <Border CornerRadius="5.5" Width="44" Height="44">
+                        <Border CornerRadius="5.5" Width="44" Height="44" RenderOptions.BitmapScalingMode="NearestNeighbor">
                             <Border.Background>
-                                <ImageBrush ImageSource="../../Images/transparentbg.png"
+                                <ImageBrush TileMode="Tile" Viewport="0, 0, 0.05, 0.05" ImageSource="../../Images/CheckerTile.png"
                                                                         Stretch="UniformToFill">
                                     <ImageBrush.RelativeTransform>
                                         <ScaleTransform ScaleX="6" ScaleY="6" CenterX="0.5"