|
@@ -16,6 +16,7 @@
|
|
|
xmlns:preferences="clr-namespace:PixiEditor.Extensions.CommonApi.UserPreferences.Settings.PixiEditor;assembly=PixiEditor.Extensions.CommonApi"
|
|
|
xmlns:dialogs="clr-namespace:PixiEditor.Views.Dialogs"
|
|
|
xmlns:settings="clr-namespace:PixiEditor.Views.Windows.Settings"
|
|
|
+ xmlns:localization="clr-namespace:PixiEditor.Extensions.Common.Localization;assembly=PixiEditor.Extensions"
|
|
|
mc:Ignorable="d"
|
|
|
x:Class="PixiEditor.Views.Windows.Settings.SettingsWindow"
|
|
|
Name="window"
|
|
@@ -27,7 +28,7 @@
|
|
|
ui:Translator.Key="SETTINGS">
|
|
|
|
|
|
<Window.Resources>
|
|
|
- <vm:SettingsWindowViewModel x:Key="SettingsWindowViewModel"/>
|
|
|
+ <vm:SettingsWindowViewModel x:Key="SettingsWindowViewModel" />
|
|
|
</Window.Resources>
|
|
|
|
|
|
<DockPanel>
|
|
@@ -39,7 +40,8 @@
|
|
|
SelectedIndex="{Binding CurrentPage}">
|
|
|
<ListBox.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
- <TextBlock Classes="h5" Foreground="{DynamicResource ThemeForegroundLowBrush}" Text="{Binding Path=Name.Value}" VerticalAlignment="Center">
|
|
|
+ <TextBlock Classes="h5" Foreground="{DynamicResource ThemeForegroundLowBrush}"
|
|
|
+ Text="{Binding Path=Name.Value}" VerticalAlignment="Center">
|
|
|
<TextBlock.Styles>
|
|
|
<Style Selector="ListBoxItem:selected TextBlock">
|
|
|
<Setter Property="Foreground" Value="{DynamicResource ThemeForegroundBrush}" />
|
|
@@ -53,11 +55,12 @@
|
|
|
<Grid>
|
|
|
<Grid.Styles>
|
|
|
<Style Selector=":is(Control).leftOffset">
|
|
|
- <Setter Property="Margin" Value="20, 0, 0, 0"/>
|
|
|
+ <Setter Property="Margin" Value="20, 0, 0, 0" />
|
|
|
</Style>
|
|
|
</Grid.Styles>
|
|
|
<!--Background="{StaticResource AccentColor}"-->
|
|
|
- <controls:FixedSizeStackPanel Orientation="Vertical" ChildSize="32" VerticalChildrenAlignment="Center" Margin="12">
|
|
|
+ <controls:FixedSizeStackPanel Orientation="Vertical" ChildSize="32"
|
|
|
+ VerticalChildrenAlignment="Center" Margin="12">
|
|
|
<controls:FixedSizeStackPanel.IsVisible>
|
|
|
<Binding Path="CurrentPage" Converter="{converters:IsEqualConverter}">
|
|
|
<Binding.ConverterParameter>
|
|
@@ -66,7 +69,7 @@
|
|
|
</Binding>
|
|
|
</controls:FixedSizeStackPanel.IsVisible>
|
|
|
|
|
|
- <TextBlock ui:Translator.Key="LANGUAGE" Classes="h5"/>
|
|
|
+ <TextBlock ui:Translator.Key="LANGUAGE" Classes="h5" />
|
|
|
<ComboBox Classes="leftOffset" Width="200" HorizontalAlignment="Left"
|
|
|
ItemsSource="{Binding SettingsSubViewModel.General.AvailableLanguages}"
|
|
|
SelectedItem="{Binding SettingsSubViewModel.General.SelectedLanguage, Mode=TwoWay}">
|
|
@@ -78,52 +81,78 @@
|
|
|
Margin="3, 0"
|
|
|
VerticalAlignment="Center"
|
|
|
Source="{Binding IconFullPath, Converter={converters:ImagePathToBitmapConverter}}" />
|
|
|
- <TextBlock VerticalAlignment="Center" Text="{Binding Name}"/>
|
|
|
+ <TextBlock VerticalAlignment="Center" Text="{Binding Name}" />
|
|
|
</StackPanel>
|
|
|
</DataTemplate>
|
|
|
</ComboBox.ItemTemplate>
|
|
|
</ComboBox>
|
|
|
|
|
|
- <TextBlock ui:Translator.Key="MISC" Classes="h5"/>
|
|
|
+ <TextBlock ui:Translator.Key="MISC" Classes="h5" />
|
|
|
|
|
|
<CheckBox Classes="leftOffset" ui:Translator.Key="SHOW_STARTUP_WINDOW"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.File.ShowStartupWindow}"/>
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.File.ShowStartupWindow}" />
|
|
|
|
|
|
<CheckBox Classes="leftOffset" ui:Translator.Key="DISABLE_NEWS_PANEL"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.File.DisableNewsPanel}"/>
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.File.DisableNewsPanel}" />
|
|
|
|
|
|
<CheckBox Classes="leftOffset" ui:Translator.Key="SHOW_IMAGE_PREVIEW_TASKBAR"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.General.ImagePreviewInTaskbar}"/>
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.General.ImagePreviewInTaskbar}" />
|
|
|
|
|
|
<StackPanel Classes="leftOffset" Orientation="Horizontal">
|
|
|
<Label
|
|
|
ui:Translator.Key="RECENT_FILE_LENGTH"
|
|
|
- ui:Translator.TooltipKey="RECENT_FILE_LENGTH_TOOLTIP"/>
|
|
|
+ ui:Translator.TooltipKey="RECENT_FILE_LENGTH_TOOLTIP" />
|
|
|
<input:NumberInput Min="0" FontSize="12" HorizontalAlignment="Left"
|
|
|
- Value="{Binding SettingsSubViewModel.File.MaxOpenedRecently, Mode=TwoWay}" Width="40"/>
|
|
|
+ Value="{Binding SettingsSubViewModel.File.MaxOpenedRecently, Mode=TwoWay}"
|
|
|
+ Width="40" />
|
|
|
</StackPanel>
|
|
|
|
|
|
+ <TextBlock Classes="h5" ui:Translator.Key="AUTOSAVE_SETTINGS_HEADER" />
|
|
|
+
|
|
|
+ <CheckBox Classes="leftOffset"
|
|
|
+ VerticalAlignment="Center" ui:Translator.Key="AUTOSAVE_SETTINGS_SAVE_STATE"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.File.SaveSessionStateEnabled, Mode=TwoWay}" />
|
|
|
+
|
|
|
+ <CheckBox Classes="leftOffset" ui:Translator.Key="AUTOSAVE_ENABLED"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.File.AutosaveEnabled, Mode=TwoWay}" />
|
|
|
+
|
|
|
+ <StackPanel Classes="leftOffset" Orientation="Horizontal">
|
|
|
+ <Label ui:Translator.Key="AUTOSAVE_SETTINGS_PERIOD" />
|
|
|
+ <input:NumberInput Min="0.1" FontSize="12" HorizontalAlignment="Left"
|
|
|
+ IsEnabled="{Binding SettingsSubViewModel.File.AutosaveEnabled}"
|
|
|
+ Value="{Binding SettingsSubViewModel.File.AutosavePeriodMinutes, Mode=TwoWay}"
|
|
|
+ Width="55" />
|
|
|
+ <Label ui:Translator.Key="MINUTE_UNIVERSAL" />
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <CheckBox Classes="leftOffset"
|
|
|
+ VerticalAlignment="Center" ui:Translator.Key="AUTOSAVE_SETTINGS_SAVE_USER_FILE"
|
|
|
+ IsEnabled="{Binding SettingsSubViewModel.File.AutosaveEnabled}"
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.File.AutosaveToDocumentPath}" />
|
|
|
+
|
|
|
<TextBlock
|
|
|
Classes="h5"
|
|
|
- d:Content="Default new file size"
|
|
|
- ui:Translator.Key="DEFAULT_NEW_SIZE"/>
|
|
|
+ ui:Translator.Key="DEFAULT_NEW_SIZE" />
|
|
|
|
|
|
- <StackPanel Orientation="Horizontal" Classes="leftOffset">
|
|
|
- <Label d:Content="Width" ui:Translator.Key="WIDTH"/>
|
|
|
+ <StackPanel Orientation="Horizontal" Classes="leftOffset">
|
|
|
+ <Label d:Content="Width" ui:Translator.Key="WIDTH" />
|
|
|
<input:SizeInput
|
|
|
- Size="{Binding SettingsSubViewModel.File.DefaultNewFileWidth, Mode=TwoWay}" MaxSize="9999" HorizontalAlignment="Left"/>
|
|
|
+ Size="{Binding SettingsSubViewModel.File.DefaultNewFileWidth, Mode=TwoWay}"
|
|
|
+ MaxSize="9999" HorizontalAlignment="Left" />
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Classes="leftOffset">
|
|
|
- <Label d:Content="Height" ui:Translator.Key="HEIGHT"/>
|
|
|
+ <Label d:Content="Height" ui:Translator.Key="HEIGHT" />
|
|
|
<input:SizeInput
|
|
|
- Size="{Binding SettingsSubViewModel.File.DefaultNewFileHeight, Mode=TwoWay}" MaxSize="9999" HorizontalAlignment="Left"/>
|
|
|
+ Size="{Binding SettingsSubViewModel.File.DefaultNewFileHeight, Mode=TwoWay}"
|
|
|
+ MaxSize="9999" HorizontalAlignment="Left" />
|
|
|
</StackPanel>
|
|
|
|
|
|
<TextBlock d:Content="Tools" ui:Translator.Key="TOOLS" Classes="h5" />
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Classes="leftOffset">
|
|
|
- <Label Target="rightClickModeComboBox" ui:Translator.Key="RIGHT_CLICK_MODE" VerticalAlignment="Center"/>
|
|
|
+ <Label Target="rightClickModeComboBox" ui:Translator.Key="RIGHT_CLICK_MODE"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
<ComboBox SelectedItem="{Binding RightClickMode, Source={vm:MainVM ToolsSVM}, Mode=TwoWay}"
|
|
|
Name="rightClickModeComboBox"
|
|
|
ItemsSource="{markupExtensions:Enum preferences:RightClickMode}"
|
|
@@ -131,7 +160,8 @@
|
|
|
VerticalAlignment="Center">
|
|
|
<ComboBox.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
- <TextBlock ui:Translator.Key="{Binding Converter={converters:EnumToLocalizedStringConverter}}"/>
|
|
|
+ <TextBlock
|
|
|
+ ui:Translator.Key="{Binding Converter={converters:EnumToLocalizedStringConverter}}" />
|
|
|
</DataTemplate>
|
|
|
</ComboBox.ItemTemplate>
|
|
|
</ComboBox>
|
|
@@ -140,38 +170,40 @@
|
|
|
|
|
|
<CheckBox Classes="leftOffset"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Tools.EnableSharedToolbar}"
|
|
|
- ui:Translator.Key="ENABLE_SHARED_TOOLBAR"/>
|
|
|
+ ui:Translator.Key="ENABLE_SHARED_TOOLBAR" />
|
|
|
|
|
|
- <TextBlock ui:Translator.Key="AUTOMATIC_UPDATES" Classes="h5"/>
|
|
|
+ <TextBlock ui:Translator.Key="AUTOMATIC_UPDATES" Classes="h5" />
|
|
|
|
|
|
<CheckBox
|
|
|
VerticalAlignment="Center"
|
|
|
IsEnabled="{Binding Path=ShowUpdateTab}"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Update.CheckUpdatesOnStartup}"
|
|
|
ui:Translator.Key="CHECK_FOR_UPDATES"
|
|
|
- Classes="leftOffset"/>
|
|
|
+ Classes="leftOffset" />
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Classes="leftOffset">
|
|
|
- <Label Target="updateStreamComboBox" ui:Translator.Key="UPDATE_STREAM" VerticalAlignment="Center"/>
|
|
|
+ <Label Target="updateStreamComboBox" ui:Translator.Key="UPDATE_STREAM"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
|
|
<ComboBox Width="110"
|
|
|
Name="updateStreamComboBox"
|
|
|
VerticalAlignment="Center"
|
|
|
IsEnabled="{Binding Path=ShowUpdateTab}"
|
|
|
ItemsSource="{Binding SettingsSubViewModel.Update.UpdateChannels}"
|
|
|
- SelectedValue="{Binding SettingsSubViewModel.Update.UpdateChannelName}"/>
|
|
|
+ SelectedValue="{Binding SettingsSubViewModel.Update.UpdateChannelName}" />
|
|
|
<Image Cursor="Help" Source="/Images/Commands/PixiEditor/Links/OpenDocumentation.png"
|
|
|
VerticalAlignment="Center"
|
|
|
ToolTip.ShowDelay="0"
|
|
|
IsVisible="{Binding !ShowUpdateTab}"
|
|
|
- ui:Translator.TooltipKey="UPDATE_CHANNEL_HELP_TOOLTIP"/>
|
|
|
+ ui:Translator.TooltipKey="UPDATE_CHANNEL_HELP_TOOLTIP" />
|
|
|
<!-- ToolTipService.InitialShowDelay="0"-->
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
|
|
|
- <TextBlock ui:Translator.Key="DEBUG" Classes="h5"/>
|
|
|
+ <TextBlock ui:Translator.Key="DEBUG" Classes="h5" />
|
|
|
<CheckBox Classes="leftOffset"
|
|
|
- IsChecked="{Binding SettingsSubViewModel.General.IsDebugModeEnabled}" ui:Translator.Key="ENABLE_DEBUG_MODE" d:Content="Enable Debug Mode"/>
|
|
|
+ IsChecked="{Binding SettingsSubViewModel.General.IsDebugModeEnabled}"
|
|
|
+ ui:Translator.Key="ENABLE_DEBUG_MODE" d:Content="Enable Debug Mode" />
|
|
|
<!--<Label Classes="{StaticResource SettingsText}" VerticalAlignment="Center">
|
|
|
<ui1:Hyperlink Command="{cmds:Command PixiEditor.Debug.OpenCrashReportsDirectory}" Style="{StaticResource SettingsLink}">
|
|
|
<Run ui:Translator.Key="OPEN_CRASH_REPORTS_DIR" d:Text="Open crash reports directory"/>
|
|
@@ -189,20 +221,21 @@
|
|
|
</Binding>
|
|
|
</StackPanel.IsVisible>
|
|
|
|
|
|
- <controls:FixedSizeStackPanel ChildSize="32" Orientation="Vertical" VerticalChildrenAlignment="Center">
|
|
|
- <TextBlock ui:Translator.Key="DISCORD_RICH_PRESENCE" Classes="h5"/>
|
|
|
+ <controls:FixedSizeStackPanel ChildSize="32" Orientation="Vertical"
|
|
|
+ VerticalChildrenAlignment="Center">
|
|
|
+ <TextBlock ui:Translator.Key="DISCORD_RICH_PRESENCE" Classes="h5" />
|
|
|
|
|
|
<CheckBox IsChecked="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
- ui:Translator.Key="ENABLED"/>
|
|
|
+ ui:Translator.Key="ENABLED" />
|
|
|
<CheckBox IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Discord.ShowDocumentName}"
|
|
|
- ui:Translator.Key="SHOW_IMAGE_NAME"/>
|
|
|
+ ui:Translator.Key="SHOW_IMAGE_NAME" />
|
|
|
<CheckBox IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Discord.ShowDocumentSize}"
|
|
|
- ui:Translator.Key="SHOW_IMAGE_SIZE"/>
|
|
|
+ ui:Translator.Key="SHOW_IMAGE_SIZE" />
|
|
|
<CheckBox IsEnabled="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"
|
|
|
IsChecked="{Binding SettingsSubViewModel.Discord.ShowLayerCount}"
|
|
|
- ui:Translator.Key="SHOW_LAYER_COUNT" d:Content="Show layer count"/>
|
|
|
+ ui:Translator.Key="SHOW_LAYER_COUNT" d:Content="Show layer count" />
|
|
|
</controls:FixedSizeStackPanel>
|
|
|
|
|
|
<settings:DiscordRichPresencePreview
|
|
@@ -210,10 +243,11 @@
|
|
|
Width="280"
|
|
|
State="{Binding SettingsSubViewModel.Discord.StatePreview}"
|
|
|
Detail="{Binding SettingsSubViewModel.Discord.DetailPreview}"
|
|
|
- IsPlaying="{Binding SettingsSubViewModel.Discord.EnableRichPresence}"/>
|
|
|
+ IsPlaying="{Binding SettingsSubViewModel.Discord.EnableRichPresence}" />
|
|
|
</StackPanel>
|
|
|
|
|
|
- <Grid Margin="12" Height="{Binding ElementName=window, Path=Height, Converter={converters:SubtractConverter}, ConverterParameter=50}">
|
|
|
+ <Grid Margin="12"
|
|
|
+ Height="{Binding ElementName=window, Path=Height, Converter={converters:SubtractConverter}, ConverterParameter=50}">
|
|
|
<Grid.IsVisible>
|
|
|
<Binding Path="CurrentPage" Converter="{converters:IsEqualConverter}">
|
|
|
<Binding.ConverterParameter>
|
|
@@ -222,9 +256,9 @@
|
|
|
</Binding>
|
|
|
</Grid.IsVisible>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition/>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition />
|
|
|
</Grid.RowDefinitions>
|
|
|
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
|
|
<!--<StackPanel.Resources>
|
|
@@ -237,28 +271,27 @@
|
|
|
</Style>
|
|
|
</StackPanel.Resources>-->
|
|
|
<Button Command="{cmds:Command PixiEditor.Shortcuts.Export}"
|
|
|
- d:Content="Export" ui:Translator.Key="EXPORT"/>
|
|
|
+ d:Content="Export" ui:Translator.Key="EXPORT" />
|
|
|
<Button Command="{cmds:Command PixiEditor.Shortcuts.Import}"
|
|
|
- d:Content="Import" ui:Translator.Key="IMPORT"/>
|
|
|
+ d:Content="Import" ui:Translator.Key="IMPORT" />
|
|
|
<Button Command="{cmds:Command PixiEditor.Shortcuts.OpenTemplatePopup}"
|
|
|
- d:Content="Shortcut Templates" ui:Translator.Key="SHORTCUT_TEMPLATES"/>
|
|
|
+ d:Content="Shortcut Templates" ui:Translator.Key="SHORTCUT_TEMPLATES" />
|
|
|
<Button Command="{cmds:Command PixiEditor.Shortcuts.Reset}"
|
|
|
- d:Content="Reset all" ui:Translator.Key="RESET_ALL"/>
|
|
|
+ d:Content="Reset all" ui:Translator.Key="RESET_ALL" />
|
|
|
</StackPanel>
|
|
|
<TextBox Grid.Row="1"
|
|
|
Text="{Binding SearchTerm, Mode=TwoWay}">
|
|
|
<!--Styles="{StaticResource DarkTextBoxStyle}"-->
|
|
|
<i:Interaction.Behaviors>
|
|
|
- <behaviours:GlobalShortcutFocusBehavior/>
|
|
|
+ <behaviours:GlobalShortcutFocusBehavior />
|
|
|
</i:Interaction.Behaviors>
|
|
|
</TextBox>
|
|
|
|
|
|
- <settings:ShortcutsBinder Grid.Row="2"/>
|
|
|
+ <settings:ShortcutsBinder Grid.Row="2" />
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
</DockPanel>
|
|
|
</DockPanel>
|
|
|
|
|
|
-</dialogs:PixiEditorPopup>
|
|
|
-
|
|
|
+</dialogs:PixiEditorPopup>
|