2021-09-03 04:27:19 -07:00
|
|
|
<controls:Window
|
2021-06-17 18:26:19 -07:00
|
|
|
x:Class="SourceGit.Views.Preference"
|
|
|
|
x:Name="me"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:controls="clr-namespace:SourceGit.Views.Controls"
|
|
|
|
xmlns:models="clr-namespace:SourceGit.Models"
|
2021-08-10 01:55:01 -07:00
|
|
|
xmlns:converters="clr-namespace:SourceGit.Views.Converters"
|
2021-06-17 18:26:19 -07:00
|
|
|
mc:Ignorable="d"
|
|
|
|
WindowStartupLocation="CenterOwner"
|
|
|
|
ResizeMode="NoResize"
|
2021-07-20 01:26:10 -07:00
|
|
|
Title="{DynamicResource Text.Preference}"
|
2021-06-17 18:26:19 -07:00
|
|
|
Width="500" SizeToContent="Height">
|
|
|
|
<Grid>
|
2021-08-10 01:55:01 -07:00
|
|
|
<Grid.Resources>
|
|
|
|
<converters:FontFamiliesToName x:Key="FontFamiliesToName"/>
|
|
|
|
</Grid.Resources>
|
2021-06-17 18:26:19 -07:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="1"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Title bar -->
|
2021-07-20 01:26:10 -07:00
|
|
|
<Grid Grid.Row="0" Background="{DynamicResource Brush.TitleBar}">
|
2021-06-17 18:26:19 -07:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Icon -->
|
|
|
|
<Path Grid.Column="0" Width="14" Height="14" Margin="6,0" Data="{StaticResource Icon.Preference}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Title -->
|
2021-07-20 01:26:10 -07:00
|
|
|
<TextBlock Grid.Column="1" Text="{DynamicResource Text.Preference}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Close -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<controls:IconButton
|
|
|
|
Grid.Column="3"
|
2021-06-17 18:26:19 -07:00
|
|
|
Click="Quit"
|
2021-09-03 04:27:19 -07:00
|
|
|
Width="28" Padding="8"
|
|
|
|
Icon="{StaticResource Icon.Close}"
|
2021-06-17 18:26:19 -07:00
|
|
|
HoverBackground="Red"
|
|
|
|
WindowChrome.IsHitTestVisibleInChrome="True"/>
|
|
|
|
</Grid>
|
2021-05-26 01:03:05 -07:00
|
|
|
|
2021-09-03 04:27:19 -07:00
|
|
|
<Rectangle
|
2021-06-17 18:26:19 -07:00
|
|
|
Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch"
|
2021-07-20 01:26:10 -07:00
|
|
|
Fill="{DynamicResource Brush.Border0}"/>
|
2021-05-26 01:03:05 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Body -->
|
|
|
|
<Grid Grid.Row="2" Margin="16,8">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="36"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
2021-08-10 01:55:01 -07:00
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
2021-08-10 19:02:57 -07:00
|
|
|
<RowDefinition Height="28"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<RowDefinition Height="28"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
<RowDefinition Height="8"/>
|
|
|
|
<RowDefinition Height="36"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
2021-09-06 19:52:48 -07:00
|
|
|
<RowDefinition Height="28"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
<RowDefinition Height="8"/>
|
|
|
|
<RowDefinition Height="36"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="28"/>
|
|
|
|
<RowDefinition Height="6"/>
|
|
|
|
</Grid.RowDefinitions>
|
2021-04-29 05:05:55 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<Grid.ColumnDefinitions>
|
2021-08-05 01:37:29 -07:00
|
|
|
<ColumnDefinition Width="132"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
2021-04-29 05:05:55 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- General Group -->
|
2021-07-20 01:26:10 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.General}"
|
|
|
|
FontSize="16" FontWeight="DemiBold"
|
2021-07-20 01:26:10 -07:00
|
|
|
Foreground="{DynamicResource Brush.FG2}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Language -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="1" Grid.Column="0"
|
|
|
|
Text="{DynamicResource Text.Preference.Locale}"
|
2021-06-17 18:26:19 -07:00
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<ComboBox
|
|
|
|
Grid.Row="1" Grid.Column="1"
|
2021-06-17 18:26:19 -07:00
|
|
|
Height="24"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:Locale.Supported}}"
|
|
|
|
DisplayMemberPath="Name"
|
|
|
|
SelectedValuePath="Resource"
|
2021-07-20 01:26:10 -07:00
|
|
|
SelectedValue="{Binding Source={x:Static models:Preference.Instance}, Path=General.Locale, Mode=TwoWay}"
|
|
|
|
SelectionChanged="LocaleChanged"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-08-10 01:55:01 -07:00
|
|
|
<!-- System Font -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="2" Grid.Column="0"
|
|
|
|
Text="{DynamicResource Text.Preference.FontFamilyWindow}"
|
2021-08-10 01:55:01 -07:00
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,6,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<ComboBox
|
|
|
|
Grid.Row="2" Grid.Column="1"
|
2021-08-10 01:55:01 -07:00
|
|
|
Height="24"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:InstalledFont.GetFonts}}"
|
|
|
|
SelectedValue="{Binding Source={x:Static models:Preference.Instance}, Path=General.FontFamilyWindow, Mode=TwoWay, Converter={StaticResource FontFamiliesToName}}"
|
|
|
|
DisplayMemberPath="Name"
|
|
|
|
SelectedValuePath="Name"
|
|
|
|
SelectionChanged="LocaleChanged">
|
|
|
|
<ComboBox.Resources>
|
|
|
|
<Style TargetType="ComboBoxItem">
|
|
|
|
<Setter Property="FontFamily" Value="{Binding Name}"/>
|
|
|
|
<Setter Property="ToolTip" Value="{Binding Name}"/>
|
|
|
|
</Style>
|
|
|
|
</ComboBox.Resources>
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
<!-- Content Font -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="3" Grid.Column="0"
|
|
|
|
Text="{DynamicResource Text.Preference.FontFamilyContent}"
|
2021-08-10 01:55:01 -07:00
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,6,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<ComboBox
|
|
|
|
Grid.Row="3" Grid.Column="1"
|
2021-08-10 01:55:01 -07:00
|
|
|
Height="24"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:InstalledFont.GetFonts}}"
|
|
|
|
SelectedValue="{Binding Source={x:Static models:Preference.Instance}, Path=General.FontFamilyContent, Mode=TwoWay, Converter={StaticResource FontFamiliesToName}}"
|
|
|
|
DisplayMemberPath="Name"
|
|
|
|
SelectedValuePath="Name"
|
|
|
|
SelectionChanged="LocaleChanged">
|
|
|
|
<ComboBox.Resources>
|
|
|
|
<Style TargetType="ComboBoxItem">
|
|
|
|
<Setter Property="FontFamily" Value="{Binding Name}"/>
|
|
|
|
<Setter Property="ToolTip" Value="{Binding Name}"/>
|
|
|
|
</Style>
|
|
|
|
</ComboBox.Resources>
|
|
|
|
</ComboBox>
|
|
|
|
|
|
|
|
<!-- Avatar -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="4" Grid.Column="0"
|
|
|
|
Text="{DynamicResource Text.Preference.AvatarServer}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<ComboBox
|
|
|
|
Grid.Row="4" Grid.Column="1"
|
2021-06-17 18:26:19 -07:00
|
|
|
Height="24"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:AvatarServer.Supported}}"
|
|
|
|
DisplayMemberPath="Name"
|
|
|
|
SelectedValuePath="Url"
|
|
|
|
SelectedValue="{Binding Source={x:Static models:Preference.Instance}, Path=General.AvatarServer, Mode=TwoWay}"/>
|
2021-07-20 01:26:10 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Enable Check For Update -->
|
|
|
|
<CheckBox
|
2021-08-10 01:55:01 -07:00
|
|
|
Grid.Row="5" Grid.Column="1"
|
2021-07-20 01:26:10 -07:00
|
|
|
Content="{DynamicResource Text.Preference.CheckUpdate}"
|
2021-06-17 18:26:19 -07:00
|
|
|
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=General.CheckForUpdate, Mode=TwoWay}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Auto Fetch -->
|
|
|
|
<CheckBox
|
2021-08-10 01:55:01 -07:00
|
|
|
Grid.Row="6" Grid.Column="1"
|
2021-07-20 01:26:10 -07:00
|
|
|
Content="{DynamicResource Text.Preference.AutoFetch}"
|
2021-06-17 18:26:19 -07:00
|
|
|
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=General.AutoFetchRemotes, Mode=TwoWay}"/>
|
2021-07-05 18:58:36 -07:00
|
|
|
|
|
|
|
<!-- Restore Windows -->
|
|
|
|
<CheckBox
|
2021-08-10 01:55:01 -07:00
|
|
|
Grid.Row="7" Grid.Column="1"
|
2021-07-20 01:26:10 -07:00
|
|
|
Content="{DynamicResource Text.Preference.RestoreTabs}"
|
2021-07-05 18:58:36 -07:00
|
|
|
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=Restore.IsEnabled, Mode=TwoWay}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-08-10 19:02:57 -07:00
|
|
|
<!-- Crash Report -->
|
|
|
|
<CheckBox
|
|
|
|
Grid.Row="8" Grid.Column="1"
|
|
|
|
Content="{DynamicResource Text.Preference.EnableCrashReport}"
|
|
|
|
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=General.EnableCrashReport, Mode=TwoWay}"/>
|
2021-07-05 18:58:36 -07:00
|
|
|
|
2021-09-03 04:27:19 -07:00
|
|
|
<!-- Use Windows Terminal -->
|
|
|
|
<CheckBox
|
|
|
|
Grid.Row="9" Grid.Column="1"
|
|
|
|
Content="{DynamicResource Text.Preference.UseWindowsTerminal}"
|
2021-09-12 23:22:25 -07:00
|
|
|
IsEnabled="{Binding ElementName=me, Path=HasWindowsTerminal}"
|
2021-09-03 04:27:19 -07:00
|
|
|
IsChecked="{Binding Source={x:Static models:Preference.Instance}, Path=General.UseWindowsTerminal, Mode=TwoWay}"/>
|
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Git Group -->
|
|
|
|
<TextBlock
|
2021-09-03 04:27:19 -07:00
|
|
|
Grid.Row="11" Grid.Column="0" Grid.ColumnSpan="2"
|
2021-07-20 01:26:10 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Git}"
|
2021-06-17 18:26:19 -07:00
|
|
|
FontSize="16" FontWeight="DemiBold"
|
2021-07-20 01:26:10 -07:00
|
|
|
Foreground="{DynamicResource Brush.FG2}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Git Executable Path -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="12" Grid.Column="0"
|
|
|
|
Text="{DynamicResource Text.Preference.Git.Path}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<Grid Grid.Row="12" Grid.Column="1">
|
2021-06-17 18:26:19 -07:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
2021-04-29 05:05:55 -07:00
|
|
|
|
|
|
|
<controls:TextEdit
|
2021-06-17 18:26:19 -07:00
|
|
|
Grid.Column="0"
|
|
|
|
x:Name="editGitPath"
|
2021-04-29 05:05:55 -07:00
|
|
|
Height="24"
|
2021-06-17 18:26:19 -07:00
|
|
|
Text="{Binding Source={x:Static models:Preference.Instance}, Path=Git.Path, Mode=TwoWay}"
|
2021-07-20 01:26:10 -07:00
|
|
|
Placeholder="{DynamicResource Text.Preference.Git.Path.Placeholder}"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
<controls:IconButton
|
|
|
|
Grid.Column="1"
|
|
|
|
Click="SelectGitPath"
|
|
|
|
Width="24" Height="24"
|
|
|
|
Margin="4,0,0,0" Padding="4"
|
2021-07-20 01:26:10 -07:00
|
|
|
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
2021-06-17 18:26:19 -07:00
|
|
|
Icon="{StaticResource Icon.Folder.Open}"/>
|
|
|
|
</Grid>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-09-06 19:52:48 -07:00
|
|
|
<!-- Git Version -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="13" Grid.Column="0"
|
2021-09-06 19:52:48 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Git.Version}"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Margin="0,0,8,0"/>
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="13" Grid.Column="1"
|
|
|
|
x:Name="textGitVersion"
|
|
|
|
Text="{Binding ElementName=me, Path=Version}"/>
|
|
|
|
|
|
|
|
<!-- Default Clone Dir -->
|
|
|
|
<TextBlock
|
|
|
|
Grid.Row="14" Grid.Column="0"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Git.Dir}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-06 19:52:48 -07:00
|
|
|
<Grid Grid.Row="14" Grid.Column="1">
|
2021-06-17 18:26:19 -07:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
2021-04-29 05:05:55 -07:00
|
|
|
|
|
|
|
<controls:TextEdit
|
2021-06-17 18:26:19 -07:00
|
|
|
Grid.Column="0"
|
|
|
|
x:Name="txtGitCloneDir"
|
2021-04-29 05:05:55 -07:00
|
|
|
Height="24"
|
2021-07-20 01:26:10 -07:00
|
|
|
Placeholder="{DynamicResource Text.Preference.Git.Dir.Placeholder}"
|
2021-06-17 18:26:19 -07:00
|
|
|
Text="{Binding Source={x:Static models:Preference.Instance}, Path=Git.DefaultCloneDir, Mode=TwoWay}"/>
|
|
|
|
<controls:IconButton
|
|
|
|
Grid.Column="1"
|
|
|
|
Click="SelectGitCloneDir"
|
|
|
|
Width="24" Height="24"
|
|
|
|
Margin="4,0,0,0" Padding="4"
|
2021-07-20 01:26:10 -07:00
|
|
|
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
2021-06-17 18:26:19 -07:00
|
|
|
Icon="{StaticResource Icon.Folder.Open}"/>
|
|
|
|
</Grid>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- User -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="15" Grid.Column="0"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Git.User}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
<controls:TextEdit
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="15" Grid.Column="1"
|
2021-09-06 04:58:41 -07:00
|
|
|
x:Name="editGitUser"
|
2021-06-17 18:26:19 -07:00
|
|
|
Height="24"
|
|
|
|
Text="{Binding ElementName=me, Path=User, Mode=TwoWay}"
|
2021-07-20 01:26:10 -07:00
|
|
|
Placeholder="{DynamicResource Text.Preference.Git.User.Placeholder}"/>
|
2021-04-29 05:05:55 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Email -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="16" Grid.Column="0"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Git.Email}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
<controls:TextEdit
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="16" Grid.Column="1"
|
2021-09-06 04:58:41 -07:00
|
|
|
x:Name="editGitEmail"
|
2021-06-17 18:26:19 -07:00
|
|
|
Height="24"
|
|
|
|
Text="{Binding ElementName=me, Path=Email, Mode=TwoWay}"
|
2021-07-20 01:26:10 -07:00
|
|
|
Placeholder="{DynamicResource Text.Preference.Git.Email.Placeholder}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- CRLF -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="17" Grid.Column="0"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Git.CRLF}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<ComboBox
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="17" Grid.Column="1"
|
2021-09-06 04:58:41 -07:00
|
|
|
x:Name="editGitCrlf"
|
2021-06-17 18:26:19 -07:00
|
|
|
Height="24"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:CRLFOption.Supported}}"
|
|
|
|
SelectedValuePath="Value"
|
|
|
|
SelectedValue="{Binding ElementName=me, Path=CRLF, Mode=TwoWay}">
|
|
|
|
<ComboBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<StackPanel Orientation="Horizontal" Height="20">
|
|
|
|
<TextBlock Text="{Binding Display}" Margin="2,0"/>
|
2021-08-10 01:55:01 -07:00
|
|
|
<TextBlock Text="{Binding Desc}" Margin="8,0,0,0" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/>
|
2021-06-17 18:26:19 -07:00
|
|
|
</StackPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ComboBox.ItemTemplate>
|
|
|
|
</ComboBox>
|
2021-04-29 05:05:55 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Merge Tool Group -->
|
|
|
|
<TextBlock
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="19" Grid.Column="0" Grid.ColumnSpan="2"
|
2021-07-20 01:26:10 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Merger}"
|
2021-08-10 19:02:57 -07:00
|
|
|
FontSize="17" FontWeight="DemiBold"
|
2021-07-20 01:26:10 -07:00
|
|
|
Foreground="{DynamicResource Brush.FG2}"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
|
2021-06-17 18:26:19 -07:00
|
|
|
<!-- Merge Tool Type -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="20" Grid.Column="0"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Merger.Type}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-03 04:27:19 -07:00
|
|
|
<ComboBox
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="20" Grid.Column="1"
|
2021-06-17 18:26:19 -07:00
|
|
|
Height="24"
|
|
|
|
ItemsSource="{Binding Source={x:Static models:MergeTool.Supported}}"
|
|
|
|
DisplayMemberPath="Name"
|
|
|
|
SelectedValuePath="Type"
|
|
|
|
SelectedValue="{Binding Source={x:Static models:Preference.Instance}, Path=MergeTool.Type, Mode=TwoWay}"
|
|
|
|
SelectionChanged="MergeToolChanged"/>
|
|
|
|
|
|
|
|
<!-- Merge Tool Executable Path -->
|
2021-09-03 04:27:19 -07:00
|
|
|
<TextBlock
|
2021-09-06 19:52:48 -07:00
|
|
|
Grid.Row="21" Grid.Column="0"
|
2021-09-03 04:27:19 -07:00
|
|
|
Text="{DynamicResource Text.Preference.Merger.Path}"
|
|
|
|
HorizontalAlignment="Right"
|
2021-08-05 01:37:29 -07:00
|
|
|
Margin="0,0,8,0"/>
|
2021-09-06 19:52:48 -07:00
|
|
|
<Grid Grid.Row="21" Grid.Column="1">
|
2021-06-17 18:26:19 -07:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<controls:TextEdit
|
|
|
|
Grid.Column="0"
|
|
|
|
Height="24"
|
|
|
|
x:Name="txtMergeExec"
|
2021-07-20 01:26:10 -07:00
|
|
|
Placeholder="{DynamicResource Text.Preference.Merger.Path.Placeholder}"
|
2021-06-17 18:26:19 -07:00
|
|
|
Text="{Binding Source={x:Static models:Preference.Instance}, Path=MergeTool.Path, Mode=TwoWay}"/>
|
|
|
|
<controls:IconButton
|
|
|
|
Grid.Column="1"
|
|
|
|
Click="SelectMergeTool"
|
|
|
|
Width="24" Height="24"
|
|
|
|
Margin="4,0,0,0" Padding="4"
|
2021-07-20 01:26:10 -07:00
|
|
|
BorderThickness="1" BorderBrush="{DynamicResource Brush.Border1}"
|
2021-06-17 18:26:19 -07:00
|
|
|
Icon="{StaticResource Icon.Folder.Open}"/>
|
2021-04-29 05:05:55 -07:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
2021-06-17 18:26:19 -07:00
|
|
|
</Grid>
|
|
|
|
</controls:Window>
|