|
@@ -63,73 +63,58 @@
|
|
|
</x:Array>
|
|
|
</ListBox.ItemsSource>
|
|
|
</ListBox>
|
|
|
-
|
|
|
- <Grid Grid.Row="1" Grid.Column="1" Background="{StaticResource AccentColor}">
|
|
|
- <Grid Visibility="{Binding CurrentPage, Converter={converters:EqualityBoolToVisibilityConverter},
|
|
|
+ <StackPanel Orientation="Vertical" Background="{StaticResource AccentColor}">
|
|
|
+ <StackPanel Orientation="Vertical" Visibility="{Binding CurrentPage, Converter={converters:EqualityBoolToVisibilityConverter},
|
|
|
ConverterParameter='General'}" Margin="15,10" Tag="27">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="15"/>
|
|
|
- <ColumnDefinition Width="230"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <Label Style="{StaticResource SettingsHeader}" views:Translator.Key="LANGUAGE"/>
|
|
|
|
|
|
- <Label Grid.Row="0" Grid.ColumnSpan="2" Style="{StaticResource SettingsHeader}">Misc</Label>
|
|
|
+ <Label Style="{StaticResource SettingsHeader}">Misc</Label>
|
|
|
|
|
|
- <CheckBox Grid.Row="1" Grid.Column="1"
|
|
|
+ <CheckBox Margin="27 0"
|
|
|
VerticalAlignment="Center"
|
|
|
IsChecked="{Binding SettingsSubViewModel.File.ShowStartupWindow}">Show startup window</CheckBox>
|
|
|
|
|
|
- <CheckBox Grid.Row="2" Grid.Column="1"
|
|
|
+ <CheckBox Margin="27 10"
|
|
|
VerticalAlignment="Center"
|
|
|
IsChecked="{Binding SettingsSubViewModel.General.ImagePreviewInTaskbar}">Show image preview in taskbar</CheckBox>
|
|
|
|
|
|
- <Label Grid.Row="3" Grid.Column="1" Style="{StaticResource SettingsText}"
|
|
|
+ <StackPanel Margin="27 0" Orientation="Horizontal">
|
|
|
+ <Label Style="{StaticResource SettingsText}"
|
|
|
ToolTip="How many documents are shown under File > Recent. Default: 8">Recent file list length</Label>
|
|
|
- <usercontrols:NumberInput Grid.Row="3" Grid.Column="2"
|
|
|
+ <usercontrols:NumberInput Margin="10 0 0 0"
|
|
|
Min="0" FontSize="12" HorizontalAlignment="Left"
|
|
|
Value="{Binding SettingsSubViewModel.File.MaxOpenedRecently, Mode=TwoWay}" Height="19" Width="40"/>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <Label Grid.Row="4" Grid.ColumnSpan="2" Style="{StaticResource SettingsHeader}">Default new file size</Label>
|
|
|
+ <Label Style="{StaticResource SettingsHeader}">Default new file size</Label>
|
|
|
|
|
|
- <Label Grid.Row="5" Grid.Column="1" Style="{StaticResource SettingsText}">Width</Label>
|
|
|
- <usercontrols:SizeInput Grid.Row="5" Grid.Column="2"
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="27 5">
|
|
|
+ <Label Style="{StaticResource SettingsText}">Width</Label>
|
|
|
+ <usercontrols:SizeInput Margin="10 0 0 0"
|
|
|
Size="{Binding SettingsSubViewModel.File.DefaultNewFileWidth, Mode=TwoWay}"
|
|
|
Width="70" Height="21" MaxSize="9999" HorizontalAlignment="Left"/>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <Label Grid.Row="6" Grid.Column="1" Style="{StaticResource SettingsText}">Height</Label>
|
|
|
- <usercontrols:SizeInput Grid.Row="6" Grid.Column="2"
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="27 5">
|
|
|
+ <Label Style="{StaticResource SettingsText}">Height</Label>
|
|
|
+ <usercontrols:SizeInput Margin="7 0 0 0"
|
|
|
Size="{Binding SettingsSubViewModel.File.DefaultNewFileHeight, Mode=TwoWay}"
|
|
|
Width="70" Height="21" MaxSize="9999" HorizontalAlignment="Left"/>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <Label Grid.Row="7" Grid.ColumnSpan="2" Style="{StaticResource SettingsHeader}">Tools</Label>
|
|
|
+ <Label Style="{StaticResource SettingsHeader}">Tools</Label>
|
|
|
|
|
|
- <CheckBox Grid.Row="8" Grid.Column="1" VerticalAlignment="Center"
|
|
|
+ <CheckBox VerticalAlignment="Center" Margin="27 5"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Tools.EnableSharedToolbar}">Enable shared toolbar</CheckBox>
|
|
|
|
|
|
- <Label Grid.Row="9" Grid.ColumnSpan="2" Style="{StaticResource SettingsHeader}">Automatic updates</Label>
|
|
|
+ <Label Style="{StaticResource SettingsHeader}">Automatic updates</Label>
|
|
|
|
|
|
- <CheckBox Grid.Row="10" Grid.Column="1" VerticalAlignment="Center" IsEnabled="{Binding Path=ShowUpdateTab}"
|
|
|
+ <CheckBox Margin="27 5" VerticalAlignment="Center" IsEnabled="{Binding Path=ShowUpdateTab}"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Update.CheckUpdatesOnStartup}">Check updates on startup</CheckBox>
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="27 5">
|
|
|
<Label Grid.Row="11" Grid.Column="1" Style="{StaticResource SettingsText}">Update stream</Label>
|
|
|
- <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.Column="2" VerticalAlignment="Center"
|
|
|
+ <StackPanel Margin="5 0" Orientation="Horizontal" VerticalAlignment="Center"
|
|
|
Height="21.96" HorizontalAlignment="Left">
|
|
|
<ComboBox Width="110" IsEnabled="{Binding Path=ShowUpdateTab}"
|
|
|
ItemsSource="{Binding SettingsSubViewModel.Update.UpdateChannels}"
|
|
@@ -139,47 +124,36 @@
|
|
|
Visibility="{Binding Path=ShowUpdateTab, Converter={converters:InverseBoolToVisibilityConverter}}"
|
|
|
ToolTip="Update channels can only be changed in standalone version (downloaded from https://pixieditor.net).
Steam and Microsoft Store versions handle updates separately."/>
|
|
|
</StackPanel>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <Label Grid.Row="12" Grid.ColumnSpan="2" Style="{StaticResource SettingsHeader}">Debug</Label>
|
|
|
- <CheckBox Grid.Row="13" Grid.Column="1" VerticalAlignment="Center"
|
|
|
+ <Label Style="{StaticResource SettingsHeader}">Debug</Label>
|
|
|
+ <CheckBox Margin="27 5" VerticalAlignment="Center"
|
|
|
IsChecked="{Binding SettingsSubViewModel.General.IsDebugModeEnabled}">Enable Debug Mode</CheckBox>
|
|
|
- <Label Grid.Row="14" Grid.Column="1" Style="{StaticResource SettingsText}" VerticalAlignment="Center">
|
|
|
+ <Label Margin="0 5" Style="{StaticResource SettingsText}" VerticalAlignment="Center">
|
|
|
<Hyperlink Command="{cmds:Command PixiEditor.Debug.OpenCrashReportsDirectory}" Style="{StaticResource SettingsLink}">
|
|
|
<Run Text="Open Crash Reports Directory"/>
|
|
|
<Run Text="" FontFamily="{StaticResource Feather}"/>
|
|
|
</Hyperlink>
|
|
|
</Label>
|
|
|
- </Grid>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
<StackPanel Visibility="{Binding CurrentPage, Converter={converters:EqualityBoolToVisibilityConverter},
|
|
|
ConverterParameter='Discord'}" Margin="15,10">
|
|
|
- <Grid Tag="27">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="15"/>
|
|
|
- <ColumnDefinition/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- <RowDefinition Height="{Binding RelativeSource={RelativeSource AncestorType=Grid}, Path=Tag}"/>
|
|
|
- </Grid.RowDefinitions>
|
|
|
-
|
|
|
- <Label Grid.Row="0" Grid.ColumnSpan="2" Style="{StaticResource SettingsHeader}">Rich Presence</Label>
|
|
|
-
|
|
|
- <CheckBox Grid.Row="1" Grid.Column="1" VerticalAlignment="Center"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.Discord.EnableRichPresence}">Enabled</CheckBox>
|
|
|
- <CheckBox Grid.Row="2" Grid.Column="1" VerticalAlignment="Center"
|
|
|
- IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.Discord.ShowDocumentName}">Show image name</CheckBox>
|
|
|
- <CheckBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"
|
|
|
- IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.Discord.ShowDocumentSize}">Show image size</CheckBox>
|
|
|
- <CheckBox Grid.Row="4" Grid.Column="1" VerticalAlignment="Center"
|
|
|
- IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.Discord.ShowLayerCount}">Show layer count</CheckBox>
|
|
|
- </Grid>
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <Label Style="{StaticResource SettingsHeader}">Rich Presence</Label>
|
|
|
+
|
|
|
+ <CheckBox Margin="27 5" VerticalAlignment="Center"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.Discord.EnableRichPresence}">Enabled</CheckBox>
|
|
|
+ <CheckBox Margin="27 5" VerticalAlignment="Center"
|
|
|
+ IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.Discord.ShowDocumentName}">Show image name</CheckBox>
|
|
|
+ <CheckBox Margin="27 5" VerticalAlignment="Center"
|
|
|
+ IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.Discord.ShowDocumentSize}">Show image size</CheckBox>
|
|
|
+ <CheckBox Margin="27 5" VerticalAlignment="Center"
|
|
|
+ IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.Discord.ShowLayerCount}">Show layer count</CheckBox>
|
|
|
+ </StackPanel>
|
|
|
<usercontrols:DiscordRPPreview
|
|
|
Margin="15"
|
|
|
Width="280"
|
|
@@ -188,8 +162,9 @@
|
|
|
IsPlaying="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"/>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <Grid Visibility="{Binding CurrentPage, Converter={converters:EqualityBoolToVisibilityConverter}, ConverterParameter='Keybinds'}"
|
|
|
- Margin="10,10,10,0">
|
|
|
+ <Grid Height="{Binding ElementName=window, Path=Height, Converter={converters:SubtractConverter}, ConverterParameter=50}"
|
|
|
+ Visibility="{Binding CurrentPage, Converter={converters:EqualityBoolToVisibilityConverter}, ConverterParameter='Keybinds'}"
|
|
|
+ Margin="10,10,10,50">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
<RowDefinition Height="Auto"/>
|
|
@@ -235,6 +210,6 @@
|
|
|
</Grid.Background>
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
- </Grid>
|
|
|
+ </StackPanel>
|
|
|
</DockPanel>
|
|
|
</Window>
|