|
@@ -16,22 +16,28 @@
|
|
|
</UserControl.Resources>
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="40"/>
|
|
|
- <RowDefinition Height="30"/>
|
|
|
+ <RowDefinition Height="37.5"/>
|
|
|
<RowDefinition Height="15"/>
|
|
|
<RowDefinition Height="1*"/>
|
|
|
</Grid.RowDefinitions>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Button Grid.Row="0" Command="{Binding LayerCommandsViewModel.NewLayerCommand, ElementName=layersManager}" Height="30" Content="New Layer"
|
|
|
+ <StackPanel Background="{StaticResource MainColor}" Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Stretch">
|
|
|
+ <Button Command="{Binding LayerCommandsViewModel.NewLayerCommand, ElementName=layersManager}"
|
|
|
+ Height="24" Width="24" Cursor="Hand" ToolTip="New Layer"
|
|
|
HorizontalAlignment="Stretch" Margin="5"
|
|
|
- Style="{StaticResource DarkRoundButton}" />
|
|
|
- <Button Grid.Row="0" Command="{Binding LayerCommandsViewModel.NewGroupCommand, ElementName=layersManager}" Height="30" Content="New Group"
|
|
|
+ Style="{StaticResource DarkRoundButton}">
|
|
|
+ <Button.Background>
|
|
|
+ <ImageBrush ImageSource="/Images/Layer-add.png"/>
|
|
|
+ </Button.Background>
|
|
|
+ </Button>
|
|
|
+ <Button Command="{Binding LayerCommandsViewModel.NewGroupCommand, ElementName=layersManager}" Height="24" Width="24" ToolTip="New Group"
|
|
|
HorizontalAlignment="Stretch" Margin="5"
|
|
|
- Style="{StaticResource DarkRoundButton}" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0">
|
|
|
+ Style="{StaticResource DarkRoundButton}">
|
|
|
+ <Button.Background>
|
|
|
+ <ImageBrush ImageSource="/Images/Folder-add.png"/>
|
|
|
+ </Button.Background>
|
|
|
+ </Button>
|
|
|
<Label Content="Opacity" Foreground="White" VerticalAlignment="Center"/>
|
|
|
- <vws:NumberInput
|
|
|
+ <vws:NumberInput
|
|
|
Min="0" Max="100"
|
|
|
IsEnabled="{Binding Path=OpacityInputEnabled, ElementName=layersManager}"
|
|
|
Width="40" Height="20"
|
|
@@ -40,8 +46,8 @@
|
|
|
Converter={StaticResource FloatNormalizeConverter}, ElementName=layersManager}" />
|
|
|
<Label Content="%" Foreground="White" VerticalAlignment="Center"/>
|
|
|
</StackPanel>
|
|
|
- <Separator Grid.Row="2" Background="{StaticResource BrighterAccentColor}"/>
|
|
|
- <TreeView Grid.Row="3" ItemsSource="{Binding LayerTreeRoot, ElementName=layersManager}">
|
|
|
+ <Separator Grid.Row="1" Margin="0,-12, 0, 0" BorderBrush="{StaticResource DarkerAccentColor}" BorderThickness="2" />
|
|
|
+ <TreeView Grid.Row="2" Margin="0, -12, 0, 0" ItemsSource="{Binding LayerTreeRoot, ElementName=layersManager}">
|
|
|
<TreeView.ItemsPanel>
|
|
|
<ItemsPanelTemplate>
|
|
|
<ui:ReversedOrderStackPanel/>
|