Przeglądaj źródła

Fixed indenation

flabbet 4 lat temu
rodzic
commit
8a98629013

+ 1 - 1
PixiEditor/Helpers/Converters/IndentConverter.cs

@@ -11,7 +11,7 @@ namespace PixiEditor.Helpers.Converters
 {
     public class IndentConverter : IValueConverter
     {
-        private const int IndentSize = 16;  // hard-coded into the XAML template
+        private const int IndentSize = 20;
 
         public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
         {

+ 2 - 3
PixiEditor/Views/UserControls/LayerGroupControl.xaml

@@ -20,15 +20,14 @@
                 <RowDefinition Height="10"/>
             </Grid.RowDefinitions>
             <Grid AllowDrop="True" DragEnter="Grid_DragEnter" Drop="Grid_Drop_Top" DragLeave="Grid_DragLeave" Grid.Row="0" Grid.ColumnSpan="3" Background="Transparent"/>
-            <Grid Grid.Row="0" Grid.RowSpan="3" Margin="5 0 5 0">
+            <Grid Grid.Row="0" Grid.RowSpan="3">
                 <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="30"/>
                     <ColumnDefinition Width="*"/>
-                    <ColumnDefinition Width="20"/>
                 </Grid.ColumnDefinitions>
                 <CheckBox Style="{StaticResource ImageCheckBox}" VerticalAlignment="Center"
                       IsThreeState="False" HorizontalAlignment="Center" 
-                      IsChecked="{Binding Path=IsVisibleUndoTriggerable, Mode=TwoWay, ElementName=groupControl}" Grid.Column="0" Height="16" Margin="-10,0,0,0"/>
+                      IsChecked="{Binding Path=IsVisibleUndoTriggerable, Mode=TwoWay, ElementName=groupControl}" Grid.Column="0" Height="16"/>
                 
                 <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Left">
                     <Rectangle Width="{Binding Path=(helpers:TreeViewItemHelper.Indent).Value, Mode=OneWay, RelativeSource={RelativeSource AncestorType=ItemsPresenter}}" Fill="Transparent" StrokeThickness="0"/>

+ 0 - 1
PixiEditor/Views/UserControls/LayerItem.xaml

@@ -31,7 +31,6 @@
                 <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="30"/>
                     <ColumnDefinition Width="*"/>
-                    <ColumnDefinition Width="20"/>
                 </Grid.ColumnDefinitions>
                 <CheckBox Style="{StaticResource ImageCheckBox}" VerticalAlignment="Center"
                       IsThreeState="False" HorizontalAlignment="Center"