|
@@ -5,24 +5,26 @@
|
|
xmlns:ui="clr-namespace:PixiEditor.Extensions.UI;assembly=PixiEditor.Extensions"
|
|
xmlns:ui="clr-namespace:PixiEditor.Extensions.UI;assembly=PixiEditor.Extensions"
|
|
xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters">
|
|
xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters">
|
|
<ControlTheme TargetType="animations:KeyFrame" x:Key="{x:Type animations:KeyFrame}">
|
|
<ControlTheme TargetType="animations:KeyFrame" x:Key="{x:Type animations:KeyFrame}">
|
|
- <Setter Property="ClipToBounds" Value="False"/>
|
|
|
|
- <Setter Property="Height" Value="70"/>
|
|
|
|
- <Setter Property="MinWidth" Value="35"/>
|
|
|
|
|
|
+ <Setter Property="ClipToBounds" Value="False" />
|
|
|
|
+ <Setter Property="Height" Value="70" />
|
|
|
|
+ <Setter Property="MinWidth" Value="35" />
|
|
<Setter Property="Template">
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<ControlTemplate>
|
|
<Grid>
|
|
<Grid>
|
|
<Border CornerRadius="{DynamicResource ControlCornerRadius}" Name="MainBorder"
|
|
<Border CornerRadius="{DynamicResource ControlCornerRadius}" Name="MainBorder"
|
|
- Background="{DynamicResource ThemeBackgroundBrush1}" Margin="0 5"
|
|
|
|
|
|
+ Background="{DynamicResource ThemeBackgroundBrush1}" Margin="0 15"
|
|
BorderBrush="{DynamicResource ThemeBorderMidBrush}" BorderThickness="1">
|
|
BorderBrush="{DynamicResource ThemeBorderMidBrush}" BorderThickness="1">
|
|
<Grid>
|
|
<Grid>
|
|
- <Panel HorizontalAlignment="Right" Name="PART_ResizePanelRight" Width="5" Cursor="SizeWestEast" Background="Transparent" ZIndex="1"/>
|
|
|
|
|
|
+ <Panel HorizontalAlignment="Right" Name="PART_ResizePanelRight" Width="5"
|
|
|
|
+ Cursor="SizeWestEast" Background="Transparent" ZIndex="1" />
|
|
<Panel Margin="-35, 0, 0, 0" HorizontalAlignment="Left" Name="PART_ResizePanelLeft"
|
|
<Panel Margin="-35, 0, 0, 0" HorizontalAlignment="Left" Name="PART_ResizePanelLeft"
|
|
- Width="5" Cursor="SizeWestEast" Background="Transparent" ZIndex="1"/>
|
|
|
|
|
|
+ Width="5" Cursor="SizeWestEast" Background="Transparent" ZIndex="1" />
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
-
|
|
|
|
|
|
+
|
|
<Border IsVisible="{Binding !IsCollapsed, RelativeSource={RelativeSource TemplatedParent}}"
|
|
<Border IsVisible="{Binding !IsCollapsed, RelativeSource={RelativeSource TemplatedParent}}"
|
|
- CornerRadius="{DynamicResource ControlCornerRadius}" Width="60" Height="60" Margin="-30, 0, 0, 0"
|
|
|
|
|
|
+ CornerRadius="{DynamicResource ControlCornerRadius}" Width="60" Height="60"
|
|
|
|
+ Margin="-30, 0, 0, 0"
|
|
BorderThickness="1" VerticalAlignment="Center" IsHitTestVisible="True" Name="PreviewBorder"
|
|
BorderThickness="1" VerticalAlignment="Center" IsHitTestVisible="True" Name="PreviewBorder"
|
|
HorizontalAlignment="Left" BorderBrush="{DynamicResource ThemeBorderMidBrush}"
|
|
HorizontalAlignment="Left" BorderBrush="{DynamicResource ThemeBorderMidBrush}"
|
|
RenderOptions.BitmapInterpolationMode="None">
|
|
RenderOptions.BitmapInterpolationMode="None">
|
|
@@ -48,24 +50,27 @@
|
|
</Grid>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</Setter>
|
|
-
|
|
|
|
|
|
+
|
|
<Style Selector="^:collapsed">
|
|
<Style Selector="^:collapsed">
|
|
- <Setter Property="Height" Value="30"/>
|
|
|
|
- <Setter Property="MinWidth" Value="5"/>
|
|
|
|
|
|
+ <Setter Property="Height" Value="30" />
|
|
|
|
+ <Setter Property="MinWidth" Value="5" />
|
|
</Style>
|
|
</Style>
|
|
-
|
|
|
|
|
|
+
|
|
<Style Selector="^:collapsed /template/ Panel#PART_ResizePanelLeft">
|
|
<Style Selector="^:collapsed /template/ Panel#PART_ResizePanelLeft">
|
|
- <Setter Property="Margin" Value="0"/>
|
|
|
|
|
|
+ <Setter Property="Margin" Value="0" />
|
|
|
|
+ </Style>
|
|
|
|
+ <Style Selector="^:collapsed /template/ Border#MainBorder">
|
|
|
|
+ <Setter Property="Margin" Value="0 5" />
|
|
</Style>
|
|
</Style>
|
|
-
|
|
|
|
|
|
+
|
|
<Style Selector="^:selected /template/ Border#MainBorder">
|
|
<Style Selector="^:selected /template/ Border#MainBorder">
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ThemeAccent2Color}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ThemeAccent2Color}" />
|
|
</Style>
|
|
</Style>
|
|
-
|
|
|
|
|
|
+
|
|
<Style Selector="^:selected /template/ Border#PreviewBorder">
|
|
<Style Selector="^:selected /template/ Border#PreviewBorder">
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ThemeAccent2Color}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource ThemeAccent2Color}" />
|
|
</Style>
|
|
</Style>
|
|
-
|
|
|
|
|
|
+
|
|
<Style Selector="^:disabled">
|
|
<Style Selector="^:disabled">
|
|
<Setter Property="Opacity" Value="0.5" />
|
|
<Setter Property="Opacity" Value="0.5" />
|
|
</Style>
|
|
</Style>
|