|
@@ -18,47 +18,36 @@
|
|
|
ui1:DragDropEvents.DragLeave="Grid_PreviewDragLeave"
|
|
|
ui1:DragDropEvents.Drop="Grid_Drop">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="37.5" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
<RowDefinition Height="5" />
|
|
|
<RowDefinition Height="*" />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <StackPanel Orientation="Vertical" Grid.Row="0" Background="{DynamicResource ThemeBackgroundBrush}">
|
|
|
+ <StackPanel Orientation="Vertical" Grid.Row="0" Background="{DynamicResource ThemeBackgroundBrush1}">
|
|
|
<DockPanel VerticalAlignment="Center" Margin="0 5 0 0">
|
|
|
<palettes:PaletteColorAdder DockPanel.Dock="Left" Margin="5 0 0 0"
|
|
|
Swatches="{Binding ElementName=paletteControl, Path=Swatches}"
|
|
|
HintColor="{Binding ElementName=paletteControl, Path=HintColor}"
|
|
|
Colors="{Binding ElementName=paletteControl, Path=Colors}" />
|
|
|
- <StackPanel Margin="0, 0, 5, 0" HorizontalAlignment="Right" Width="110"
|
|
|
+ <StackPanel Margin="0, 0, 5, 0" HorizontalAlignment="Right" Width="120"
|
|
|
+ Spacing="5"
|
|
|
VerticalAlignment="Center" Orientation="Horizontal">
|
|
|
- <Button Margin="0, 0, 5, 0"
|
|
|
- Classes="ToolButtonStyle" Click="BrowsePalettes_Click"
|
|
|
- Cursor="Hand" Height="24" Width="24" ui:Translator.TooltipKey="BROWSE_PALETTES">
|
|
|
- <Button.Background>
|
|
|
- <ImageBrush Source="/Images/Database.png" />
|
|
|
- </Button.Background>
|
|
|
- </Button>
|
|
|
- <Button Margin="0, 0, 5, 0" Classes="ToolButtonStyle"
|
|
|
+ <Button
|
|
|
+ Classes="pixi-icon" Click="BrowsePalettes_Click"
|
|
|
+ Content="{DynamicResource icon-database}"
|
|
|
+ Cursor="Hand" Height="24" Width="24" ui:Translator.TooltipKey="BROWSE_PALETTES"/>
|
|
|
+ <Button Classes="pixi-icon"
|
|
|
Cursor="Hand" Height="24" Width="24" ui:Translator.TooltipKey="LOAD_PALETTE"
|
|
|
- Click="ImportPalette_OnClick">
|
|
|
- <Button.Background>
|
|
|
- <ImageBrush Source="/Images/Folder.png" />
|
|
|
- </Button.Background>
|
|
|
- </Button>
|
|
|
- <Button Height="24" Width="24" Margin="0, 0, 2.5, 0" Classes="ToolButtonStyle"
|
|
|
+ Content="{DynamicResource icon-folder}"
|
|
|
+ Click="ImportPalette_OnClick"/>
|
|
|
+ <Button Height="24" Width="24" Classes="pixi-icon"
|
|
|
+ Content="{DynamicResource icon-save}"
|
|
|
IsEnabled="{Binding ElementName=paletteControl, Path=Colors.Count}"
|
|
|
- Cursor="Hand" ui:Translator.TooltipKey="SAVE_PALETTE" Click="SavePalette_OnClick">
|
|
|
- <Button.Background>
|
|
|
- <ImageBrush Source="/Images/Save.png" />
|
|
|
- </Button.Background>
|
|
|
- </Button>
|
|
|
- <Button Height="24" Width="24" Margin="0, 0, 5, 0" Classes="ToolButtonStyle"
|
|
|
+ Cursor="Hand" ui:Translator.TooltipKey="SAVE_PALETTE" Click="SavePalette_OnClick"/>
|
|
|
+ <Button Height="24" Width="24" Classes="pixi-icon"
|
|
|
+ Content="{DynamicResource icon-trash}"
|
|
|
IsEnabled="{Binding ElementName=paletteControl, Path=Colors.Count}"
|
|
|
Cursor="Hand" ui:Translator.TooltipKey="DISCARD_PALETTE"
|
|
|
- Click="DiscardPalette_OnClick">
|
|
|
- <Button.Background>
|
|
|
- <ImageBrush Source="/Images/Trash.png" />
|
|
|
- </Button.Background>
|
|
|
- </Button>
|
|
|
+ Click="DiscardPalette_OnClick"/>
|
|
|
</StackPanel>
|
|
|
</DockPanel>
|
|
|
</StackPanel>
|
|
@@ -132,7 +121,7 @@
|
|
|
<palettes:PaletteColorControl Cursor="Hand"
|
|
|
ui:Translator.TooltipKey="PALETTE_COLOR_TOOLTIP"
|
|
|
DragDrop.AllowDrop="True" Color="{Binding}"
|
|
|
- Height="30" Width="30" CornerRadius="0"
|
|
|
+ Height="24" Width="24" CornerRadius="0"
|
|
|
ui1:DragDropEvents.Drop="PaletteColor_Drop">
|
|
|
<Interaction.Behaviors>
|
|
|
<EventTriggerBehavior EventName="PointerReleased">
|