|
@@ -5,8 +5,9 @@
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:dataHolders="clr-namespace:PixiEditor.Models.DataHolders" xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
xmlns:dataHolders="clr-namespace:PixiEditor.Models.DataHolders" xmlns:converters="clr-namespace:PixiEditor.Helpers.Converters"
|
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime"
|
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime"
|
|
|
|
+ xmlns:uc="clr-namespace:PixiEditor.Views.UserControls"
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
- Title="Hello there!" Height="651" Width="651"
|
|
|
|
|
|
+ Title="Hello there!" Height="662" Width="632"
|
|
WindowStyle="None" WindowStartupLocation="CenterScreen">
|
|
WindowStyle="None" WindowStartupLocation="CenterScreen">
|
|
|
|
|
|
<Window.Resources>
|
|
<Window.Resources>
|
|
@@ -20,7 +21,7 @@
|
|
|
|
|
|
<Style TargetType="Button" BasedOn="{StaticResource DarkRoundButton}" x:Key="SocialMediaButton">
|
|
<Style TargetType="Button" BasedOn="{StaticResource DarkRoundButton}" x:Key="SocialMediaButton">
|
|
<Setter Property="Width" Value="150"/>
|
|
<Setter Property="Width" Value="150"/>
|
|
- <Setter Property="Margin" Value="5,0,5,0"/>
|
|
|
|
|
|
+ <Setter Property="Margin" Value="5,8,5,0"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="FontSize" Value="18"/>
|
|
<Setter Property="Height" Value="28"/>
|
|
<Setter Property="Height" Value="28"/>
|
|
</Style>
|
|
</Style>
|
|
@@ -62,7 +63,7 @@
|
|
<Image Source="../../Images/PixiEditorLogo.png" Height="40" VerticalAlignment="Center"/>
|
|
<Image Source="../../Images/PixiEditorLogo.png" Height="40" VerticalAlignment="Center"/>
|
|
<TextBlock FontSize="40" FontWeight="SemiBold" VerticalAlignment="Center" Margin="10,0,0,0">PixiEditor</TextBlock>
|
|
<TextBlock FontSize="40" FontWeight="SemiBold" VerticalAlignment="Center" Margin="10,0,0,0">PixiEditor</TextBlock>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
- <TextBlock HorizontalAlignment="Center" FontSize="20" FontWeight="Medium">v0.2</TextBlock>
|
|
|
|
|
|
+ <TextBlock HorizontalAlignment="Center" FontSize="20" FontWeight="Medium" Text="{Binding VersionText}"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
@@ -90,7 +91,7 @@
|
|
<StackPanel Margin="8,5,8,0" ToolTip="{Binding FilePath}">
|
|
<StackPanel Margin="8,5,8,0" ToolTip="{Binding FilePath}">
|
|
<Button Margin="0,10,0,0" HorizontalAlignment="Center"
|
|
<Button Margin="0,10,0,0" HorizontalAlignment="Center"
|
|
Width="100" Height="100"
|
|
Width="100" Height="100"
|
|
- Command="{Binding DataContext.OpenRecentCommand, RelativeSource={RelativeSource AncestorType=WrapPanel}}"
|
|
|
|
|
|
+ Command="{Binding DataContext.OpenRecentCommand, RelativeSource={RelativeSource AncestorType=uc:AlignableWrapPanel}}"
|
|
CommandParameter="{Binding FilePath}"
|
|
CommandParameter="{Binding FilePath}"
|
|
Style="{StaticResource DarkRoundButton}">
|
|
Style="{StaticResource DarkRoundButton}">
|
|
<Image Source="{Binding PreviewBitmap}" Margin="20"/>
|
|
<Image Source="{Binding PreviewBitmap}" Margin="20"/>
|
|
@@ -110,13 +111,13 @@
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<ItemsPanelTemplate>
|
|
- <WrapPanel HorizontalAlignment="Center"/>
|
|
|
|
|
|
+ <uc:AlignableWrapPanel HorizontalAlignment="Center" HorizontalContentAlignment="Center"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
</ItemsControl>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
|
|
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,18">
|
|
|
|
|
|
+ <uc:AlignableWrapPanel Grid.Row="3" HorizontalContentAlignment="Center" HorizontalAlignment="Center" Margin="0,5,0,15">
|
|
<Button Command="{Binding OpenHyperlinkCommand}" CommandParameter="https://discord.gg/tzkQFDkqQS"
|
|
<Button Command="{Binding OpenHyperlinkCommand}" CommandParameter="https://discord.gg/tzkQFDkqQS"
|
|
Content="Discord">
|
|
Content="Discord">
|
|
<Button.Style>
|
|
<Button.Style>
|
|
@@ -154,7 +155,31 @@
|
|
</Style>
|
|
</Style>
|
|
</Button.Style>
|
|
</Button.Style>
|
|
</Button>
|
|
</Button>
|
|
- </StackPanel>
|
|
|
|
|
|
+ <Button Command="{Binding OpenHyperlinkCommand}" CommandParameter="https://www.youtube.com/channel/UCT5XvyvX1q5PAIaXfWmpsMQ"
|
|
|
|
+ Content="YouTube">
|
|
|
|
+ <Button.Style>
|
|
|
|
+ <Style TargetType="Button" BasedOn="{StaticResource SocialMediaButton}">
|
|
|
|
+ <Style.Triggers>
|
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
|
+ <Setter Property="Background" Value="#FF0000"/>
|
|
|
|
+ </Trigger>
|
|
|
|
+ </Style.Triggers>
|
|
|
|
+ </Style>
|
|
|
|
+ </Button.Style>
|
|
|
|
+ </Button>
|
|
|
|
+ <Button Command="{Binding OpenHyperlinkCommand}" CommandParameter="https://opencollective.com/pixieditor"
|
|
|
|
+ Content="Sponsor">
|
|
|
|
+ <Button.Style>
|
|
|
|
+ <Style TargetType="Button" BasedOn="{StaticResource SocialMediaButton}">
|
|
|
|
+ <Style.Triggers>
|
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
|
+ <Setter Property="Background" Value="#DB61A2"/>
|
|
|
|
+ </Trigger>
|
|
|
|
+ </Style.Triggers>
|
|
|
|
+ </Style>
|
|
|
|
+ </Button.Style>
|
|
|
|
+ </Button>
|
|
|
|
+ </uc:AlignableWrapPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Grid>
|