The App suite had not run on Windows since CI has no Windows runner, so five screen smoke tests had gone stale: the archive folder is shown masked, the sync table offers the workspace disabled on older servers, the sample has ten jobs, a year-row check raced the tree rebuild, and the Reorganize capture showed every sequence unreadable because the sample had no sidecars. The certificate rows' server column gives way earlier so Forget fits at 1200 px in Bulgarian. Refs #70 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
935 lines
82 KiB
XML
935 lines
82 KiB
XML
<UserControl x:Class="Chronos.App.Sections.SettingsView"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:ui="clr-namespace:Chronos.Ui.Controls;assembly=Chronos.Ui"
|
||
xmlns:l="clr-namespace:Chronos.Ui.Localization;assembly=Chronos.Ui"
|
||
xmlns:infra="clr-namespace:Chronos.App.Infrastructure"
|
||
xmlns:shell="clr-namespace:Chronos.App.Shell"
|
||
xmlns:st="clr-namespace:Chronos.App.Settings">
|
||
<UserControl.Resources>
|
||
<!-- Every page is a size scope: its labels share one column as wide as the longest label (at least 180 px, DESIGN §3),
|
||
wrapping only past 280 px, so translations 40 % longer are never cut (DESIGN §2: MinWidth only). -->
|
||
<Style x:Key="Page" TargetType="StackPanel">
|
||
<Setter Property="Visibility" Value="Collapsed" />
|
||
<Setter Property="Grid.IsSharedSizeScope" Value="True" />
|
||
</Style>
|
||
<Style x:Key="Setting.Row" TargetType="HeaderedContentControl">
|
||
<Setter Property="Focusable" Value="False" />
|
||
<Setter Property="Margin" Value="0,0,0,14" />
|
||
<Setter Property="MinHeight" Value="32" />
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="HeaderedContentControl">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto" MinWidth="180" SharedSizeGroup="SettingLabel" />
|
||
<ColumnDefinition Width="*" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Text="{Binding Header, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource Text.Label}" VerticalAlignment="Top"
|
||
TextTrimming="None" TextWrapping="Wrap" MaxWidth="280" Margin="0,7,14,0" />
|
||
<ContentPresenter Grid.Column="1" VerticalAlignment="Center" />
|
||
</Grid>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
<!-- A path in a row with buttons: up to 360 px, narrower before anything wraps or is cut; left to right in every language. -->
|
||
<Style x:Key="TextBox.Path" TargetType="TextBox" BasedOn="{StaticResource TextBox.Setting}">
|
||
<Setter Property="Width" Value="Auto" />
|
||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||
<Setter Property="FlowDirection" Value="LeftToRight" />
|
||
</Style>
|
||
<!-- Numbers stay right-aligned in both reading directions. -->
|
||
<Style x:Key="TextBox.SettingNumber" TargetType="TextBox" BasedOn="{StaticResource TextBox.Number}">
|
||
<Setter Property="FlowDirection" Value="LeftToRight" />
|
||
</Style>
|
||
<!-- Keyboard focus in the section list: a 2 px Accent ring inside the item (DESIGN §4), distinct from the selected fill. -->
|
||
<Style x:Key="Focus.Inset">
|
||
<Setter Property="Control.Template">
|
||
<Setter.Value>
|
||
<ControlTemplate>
|
||
<Border BorderBrush="{DynamicResource Brush.Accent}" BorderThickness="2" CornerRadius="{StaticResource Radius.Control}" SnapsToDevicePixels="True" />
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
<Style x:Key="ListBoxItem.SettingsSection" TargetType="ListBoxItem" BasedOn="{StaticResource ListBoxItem.Section}">
|
||
<Setter Property="FocusVisualStyle" Value="{StaticResource Focus.Inset}" />
|
||
</Style>
|
||
<Style x:Key="Slider.Budget" TargetType="Slider" BasedOn="{StaticResource {x:Type Slider}}">
|
||
<Setter Property="ui:ControlState.Accent" Value="{DynamicResource Brush.Sun}" />
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsMemoryAuto}" Value="True">
|
||
<Setter Property="ui:ControlState.Accent" Value="{DynamicResource Brush.Accent}" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
<Style x:Key="Button.Reset" TargetType="Button" BasedOn="{StaticResource Button.IconSubtle}">
|
||
<Setter Property="Width" Value="24" />
|
||
<Setter Property="Height" Value="24" />
|
||
<Setter Property="MinWidth" Value="24" />
|
||
<Setter Property="ui:ControlState.CornerRadius" Value="12" />
|
||
<Setter Property="ui:ButtonIcon.Glyph" Value="{StaticResource Icon.Reset}" />
|
||
</Style>
|
||
<!-- "Auto · 8": a pill of text with the advisor's reason in its tooltip (DESIGN §4), not a button. -->
|
||
<Style x:Key="Text.AutoPill" TargetType="TextBlock">
|
||
<Setter Property="FontSize" Value="{StaticResource Size.Chip}" />
|
||
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent}" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="Typography.NumeralAlignment" Value="Tabular" />
|
||
</Style>
|
||
</UserControl.Resources>
|
||
|
||
<Grid Margin="20,16,20,16">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="{StaticResource Grid.SettingsList}" />
|
||
<ColumnDefinition Width="16" />
|
||
<ColumnDefinition Width="*" />
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<!-- Section list: search, sections, settings as JSON (visual and Tab order). -->
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="*" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
<TextBox Margin="0,0,0,8" Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}" ui:Field.Glyph="{StaticResource Icon.Search}"
|
||
ui:Field.Placeholder="{l:Loc Settings.Search}" ToolTip="{l:Loc Tooltips.Settings.Search}" AutomationProperties.Name="{l:Loc Settings.Search}" />
|
||
<ListBox Grid.Row="1" ItemsSource="{Binding VisiblePages}" SelectedItem="{Binding SelectedPageItem}" ItemContainerStyle="{StaticResource ListBoxItem.SettingsSection}"
|
||
ScrollViewer.VerticalScrollBarVisibility="Auto" AutomationProperties.Name="{l:Loc Shell.Nav.Settings}">
|
||
<ListBox.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:SettingsPageItem}">
|
||
<TextBlock Text="{Binding Label}" ToolTip="{Binding ToolTip}" TextTrimming="CharacterEllipsis" />
|
||
</DataTemplate>
|
||
</ListBox.ItemTemplate>
|
||
</ListBox>
|
||
<StackPanel Grid.Row="2" Margin="0,8,0,0">
|
||
<Button Content="{l:Loc Settings.Export}" Command="{Binding ExportSettingsCommand}" ToolTip="{l:Loc Tooltips.Settings.Export}" HorizontalAlignment="Stretch" Margin="0,0,0,8" />
|
||
<Button Content="{l:Loc Settings.Import}" Command="{Binding ImportSettingsCommand}" ToolTip="{l:Loc Tooltips.Settings.Import}" HorizontalAlignment="Stretch" />
|
||
</StackPanel>
|
||
</Grid>
|
||
|
||
<Border Grid.Column="2" Style="{StaticResource Border.Panel}" Padding="22,18">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="*" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
<TextBlock Text="{Binding PageTitle}" Style="{StaticResource Text.PageTitle}" Margin="0,0,0,18" />
|
||
|
||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Focusable="False">
|
||
<Grid>
|
||
<!-- ================= General ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=General}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Language}">
|
||
<ComboBox Width="240" HorizontalAlignment="Left" ItemsSource="{Binding Languages}" SelectedItem="{Binding SelectedLanguage}" DisplayMemberPath="Name"
|
||
ToolTip="{l:Loc Tooltips.Settings.Language}" AutomationProperties.Name="{l:Loc Settings.General.Language}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Theme}">
|
||
<WrapPanel VerticalAlignment="Center" Margin="0,4,0,0">
|
||
<RadioButton Content="{l:Loc Settings.General.Theme.Dark}" IsChecked="{Binding IsDarkTheme}" ToolTip="{l:Loc Tooltips.Settings.ThemeDark}" Margin="0,0,20,0" />
|
||
<RadioButton Content="{l:Loc Settings.General.Theme.Light}" IsChecked="{Binding IsLightTheme}" ToolTip="{l:Loc Tooltips.Settings.ThemeLight}" Margin="0,0,20,0" />
|
||
<RadioButton Content="{l:Loc Settings.General.Theme.System}" IsChecked="{Binding IsSystemTheme}" ToolTip="{l:Loc Tooltips.Settings.ThemeSystem}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Startup}"
|
||
Visibility="{Binding ShowsStartup, Converter={StaticResource BoolToVisibility}}">
|
||
<CheckBox Content="{l:Loc Settings.General.StartWithWindows}" IsChecked="{Binding StartWithWindows}" ToolTip="{l:Loc Tooltips.Settings.StartWithWindows}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Notifications}">
|
||
<CheckBox Content="{l:Loc Settings.General.OsNotifications}" IsChecked="{Binding OsNotifications}" ToolTip="{l:Loc Tooltips.Settings.OsNotifications}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Archive ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Archive}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.Root}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" Text="{Binding ArchiveRoot.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ArchiveRoot}" ToolTip="{Binding ArchiveRoot.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Archive.Root}" />
|
||
<Button Grid.Column="1" Style="{StaticResource Button.Icon}" Margin="10,0,0,0" ui:ButtonIcon.Glyph="{StaticResource Icon.FolderOpen}" Command="{Binding BrowseArchiveCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.BrowseArchive}" AutomationProperties.Name="{l:Loc Settings.Browse}" />
|
||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Hint}" Text="{Binding ArchiveFreeText}" Margin="10,0,0,0" ToolTip="{l:Loc Tooltips.Settings.ArchiveFree}" />
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.Folders}">
|
||
<TextBox Style="{StaticResource TextBox.SettingMono}" Text="{Binding FolderTemplate.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding FolderTemplate}" ToolTip="{Binding FolderTemplate.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Archive.Folders}"
|
||
FlowDirection="LeftToRight" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.Files}">
|
||
<TextBox Style="{StaticResource TextBox.SettingMono}" Text="{Binding FileTemplate.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding FileTemplate}" ToolTip="{Binding FileTemplate.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Archive.Files}"
|
||
FlowDirection="LeftToRight" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.Preview}">
|
||
<ItemsControl ItemsSource="{Binding PreviewNames}" Focusable="False" Margin="0,7,0,0" ToolTip="{l:Loc Tooltips.Settings.Preview}">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding}" FontFamily="{StaticResource Font.Mono}" FontSize="12" Foreground="{DynamicResource Brush.TextMuted}" LineHeight="20"
|
||
TextTrimming="CharacterEllipsis" FlowDirection="LeftToRight" HorizontalAlignment="Left" />
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.Proxies}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding ProxySizes}" SelectedItem="{Binding SelectedProxySize}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.ProxySize}" AutomationProperties.Name="{l:Loc Settings.Archive.Proxies}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.Thumbnails}">
|
||
<ComboBox Width="140" HorizontalAlignment="Left" ItemsSource="{Binding ThumbnailSizes}" SelectedItem="{Binding SelectedThumbnailSize}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.ThumbnailSize}" AutomationProperties.Name="{l:Loc Settings.Archive.Thumbnails}" />
|
||
</HeaderedContentControl>
|
||
<!-- Where Videos › Copy to folder puts copies of renders (owner review 1, R9). -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Archive.VideosFolder}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" Text="{Binding VideosFolder.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding VideosFolder}" ToolTip="{Binding VideosFolder.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Archive.VideosFolder}" />
|
||
<Button Grid.Column="1" Style="{StaticResource Button.Icon}" Margin="10,0,0,0" ui:ButtonIcon.Glyph="{StaticResource Icon.FolderOpen}" Command="{Binding BrowseVideosCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.VideosBrowse}" AutomationProperties.Name="{l:Loc Settings.Archive.VideosBrowse}" />
|
||
<Button Grid.Column="2" Margin="10,0,0,0" Content="{l:Loc Settings.Archive.VideosOpen}" Command="{Binding OpenVideosFolderCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.VideosOpen}" ToolTipService.ShowOnDisabled="True" />
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Import: defaults of new cards and folders ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Import}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Import.Scan.Sessions}">
|
||
<WrapPanel>
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding SessionGap.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding SessionGap}" ToolTip="{Binding SessionGap.ToolTip}" AutomationProperties.Name="{l:Loc Import.Scan.GapName}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Import.Scan.Minutes}" Margin="8,0,20,0" />
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding MinimumFrames.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding MinimumFrames}" ToolTip="{Binding MinimumFrames.ToolTip}" AutomationProperties.Name="{l:Loc Import.Scan.MinimumName}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Import.Scan.Frames}" Margin="8,0,0,0" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Import.Label.Scan}">
|
||
<WrapPanel Margin="0,4,0,0">
|
||
<CheckBox Content="{l:Loc Import.Scan.Subfolders}" IsChecked="{Binding ImportSubfolders}" ToolTip="{l:Loc Tooltips.Import.Subfolders}" Margin="0,0,20,0" />
|
||
<CheckBox Content="{l:Loc Import.Scan.Verify}" IsChecked="{Binding ImportVerify}" ToolTip="{l:Loc Tooltips.Import.Verify}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Import.Label.Duplicates}">
|
||
<WrapPanel Margin="0,4,0,0">
|
||
<RadioButton Content="{l:Loc Import.Duplicates.Skip}" IsChecked="{Binding IsSkipDuplicates}" ToolTip="{l:Loc Tooltips.Import.Skip}" Margin="0,0,20,0" />
|
||
<RadioButton Content="{l:Loc Import.Duplicates.Again}" IsChecked="{Binding IsImportDuplicates}" ToolTip="{l:Loc Tooltips.Import.Again}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Import.Label.After}">
|
||
<StackPanel Margin="0,4,0,0">
|
||
<WrapPanel>
|
||
<RadioButton Content="{l:Loc Import.After.Keep}" IsChecked="{Binding IsKeepCard}" ToolTip="{l:Loc Tooltips.Import.KeepCard}" Margin="0,0,20,0" />
|
||
<RadioButton Content="{l:Loc Import.After.Delete}" IsChecked="{Binding IsDeleteImported}" ToolTip="{l:Loc Tooltips.Import.DeleteChoice}" Margin="0,0,20,0" />
|
||
<RadioButton Content="{l:Loc Import.After.Format}" IsChecked="{Binding IsFormatCard}" ToolTip="{l:Loc Tooltips.Import.FormatChoice}" />
|
||
</WrapPanel>
|
||
<CheckBox Content="{l:Loc Import.After.Eject}" IsChecked="{Binding ImportEject}" ToolTip="{l:Loc Tooltips.Import.EjectChoice}" HorizontalAlignment="Left" Margin="0,10,0,0" />
|
||
</StackPanel>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Analysis ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Analysis}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Analysis.Width}">
|
||
<WrapPanel>
|
||
<ComboBox Width="140" ItemsSource="{Binding AnalysisWidths}" SelectedItem="{Binding SelectedAnalysisWidth}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.AnalysisWidth}" AutomationProperties.Name="{l:Loc Settings.Analysis.Width}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Analysis.WidthUnit}" Margin="12,0,0,0" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Analysis.Night}">
|
||
<WrapPanel>
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding NightBrightness.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding NightBrightness}" ToolTip="{Binding NightBrightness.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Analysis.Night}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Analysis.NightUnit}" Margin="12,0,0,0" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Analysis.Stars}">
|
||
<WrapPanel>
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding StarDensity.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding StarDensity}" ToolTip="{Binding StarDensity.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Analysis.Stars}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Analysis.StarsUnit}" Margin="12,0,0,0" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Analysis.Deep}">
|
||
<WrapPanel Margin="0,4,0,0">
|
||
<CheckBox Content="{l:Loc Settings.Analysis.AfterImport}" IsChecked="{Binding DeepAnalysisAfterImport}" ToolTip="{l:Loc Tooltips.Settings.DeepAfterImport}" Margin="0,0,20,0" />
|
||
<CheckBox Content="{l:Loc Settings.Analysis.AfterScan}" IsChecked="{Binding DeepAnalysisAfterScan}" ToolTip="{l:Loc Tooltips.Settings.DeepAfterScan}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Rendering (Settings.html) ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Rendering}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Rendering.Quality}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Qualities}" SelectedItem="{Binding SelectedQuality}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.QualityProfile}" AutomationProperties.Name="{l:Loc Settings.Rendering.Quality}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Rendering.Memory}">
|
||
<WrapPanel>
|
||
<Slider Style="{StaticResource Slider.Budget}" Width="320" Minimum="{Binding MemoryMinimum}" Maximum="{Binding MemoryMaximum}" Value="{Binding MemoryBudget}"
|
||
TickFrequency="1" IsSnapToTickEnabled="True" SmallChange="1" LargeChange="2" VerticalAlignment="Center"
|
||
ToolTip="{l:Loc Tooltips.Settings.Memory}" AutomationProperties.Name="{l:Loc Settings.Rendering.Memory}" />
|
||
<TextBlock Text="{Binding MemoryText}" Margin="12,0,0,0" VerticalAlignment="Center" Typography.NumeralAlignment="Tabular" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{Binding InstalledText}" Margin="12,0,0,0" />
|
||
<Border Style="{StaticResource Pill.Auto}" Margin="12,0,0,0" VerticalAlignment="Center" ToolTip="{l:Loc Tooltips.Settings.MemoryAuto}"
|
||
Visibility="{Binding IsMemoryAuto, Converter={StaticResource BoolToVisibility}}">
|
||
<TextBlock Style="{StaticResource Text.AutoPill}" Text="{Binding MemoryAutoText}" />
|
||
</Border>
|
||
<Button Style="{StaticResource Button.Reset}" Margin="12,0,0,0" Command="{Binding ResetMemoryCommand}" ToolTip="{l:Loc Tooltips.Settings.MemoryReset}"
|
||
AutomationProperties.Name="{l:Loc Settings.BackToAuto}"
|
||
Visibility="{Binding IsMemoryAuto, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Rendering.Parallelism}">
|
||
<WrapPanel>
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding Parallelism.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding Parallelism}" ToolTip="{Binding Parallelism.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Rendering.Parallelism}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{Binding CoresText}" Margin="12,0,0,0" />
|
||
<Border Style="{StaticResource Pill.Auto}" Margin="12,0,0,0" VerticalAlignment="Center" ToolTip="{l:Loc Tooltips.Settings.ParallelismAuto}"
|
||
Visibility="{Binding IsParallelismAuto, Converter={StaticResource BoolToVisibility}}">
|
||
<TextBlock Style="{StaticResource Text.AutoPill}" Text="{Binding ParallelismAutoText}" />
|
||
</Border>
|
||
<Button Style="{StaticResource Button.Reset}" Margin="12,0,0,0" Command="{Binding ResetParallelismCommand}" ToolTip="{l:Loc Tooltips.Settings.ParallelismReset}"
|
||
AutomationProperties.Name="{l:Loc Settings.BackToAuto}"
|
||
Visibility="{Binding IsParallelismAuto, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" />
|
||
<CheckBox Content="{l:Loc Settings.Rendering.Background}" IsChecked="{Binding BackgroundPriority}" ToolTip="{l:Loc Tooltips.Settings.InterfacePriority}"
|
||
Margin="24,0,0,0" VerticalAlignment="Center" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<!-- Owner review 1: jobs run one at a time; the priority queue lets a higher kind pause the running job. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Rendering.PriorityQueue}">
|
||
<StackPanel Margin="0,4,0,0">
|
||
<CheckBox Content="{l:Loc Settings.Rendering.PriorityQueueOn}" IsChecked="{Binding PriorityQueue}" ToolTip="{l:Loc Tooltips.Settings.PriorityQueue}"
|
||
HorizontalAlignment="Left" />
|
||
<ItemsControl ItemsSource="{Binding JobPriorities}" Margin="0,8,0,0" Focusable="False"
|
||
Visibility="{Binding PriorityQueue, Converter={StaticResource BoolToVisibility}}">
|
||
<ItemsControl.ItemsPanel>
|
||
<ItemsPanelTemplate>
|
||
<WrapPanel />
|
||
</ItemsPanelTemplate>
|
||
</ItemsControl.ItemsPanel>
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate>
|
||
<Grid Width="300" Margin="0,0,16,6">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="112" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Text="{Binding Label}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" Margin="0,0,8,0" ToolTip="{Binding Label}" />
|
||
<ComboBox Grid.Column="1" ItemsSource="{Binding Levels}" SelectedItem="{Binding Selected}" DisplayMemberPath="Label"
|
||
ToolTip="{Binding ToolTip}" AutomationProperties.Name="{Binding Label}" />
|
||
</Grid>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</StackPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Rendering.Hardware}">
|
||
<WrapPanel Margin="0,4,0,0">
|
||
<RadioButton Content="{l:Loc Settings.Rendering.PreferHardware}" IsChecked="{Binding IsPreferHardware}" ToolTip="{l:Loc Tooltips.Settings.PreferHardware}" Margin="0,0,18,0" />
|
||
<RadioButton Content="{l:Loc Settings.Rendering.SoftwareOnly}" IsChecked="{Binding IsSoftwareOnly}" ToolTip="{l:Loc Tooltips.Settings.SoftwareOnly}" Margin="0,0,18,0" />
|
||
<RadioButton Content="{l:Loc Settings.Rendering.PreviewsOnly}" IsChecked="{Binding IsHardwareForPreviews}" ToolTip="{l:Loc Tooltips.Settings.PreviewsOnly}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
|
||
<!-- Encoders on this PC (title, adapter, Re-detect, Run self-test: visual and Tab order). -->
|
||
<Grid Margin="0,4,0,8">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Text="{l:Loc Settings.Rendering.Encoders}" FontWeight="SemiBold" VerticalAlignment="Center" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Hint}" Text="{Binding AdapterText}" Margin="10,0,0,0" ToolTip="{Binding AdapterToolTip}" />
|
||
<Button Grid.Column="2" Style="{StaticResource Button.Compact}" Content="{l:Loc Settings.Rendering.Redetect}" Command="{Binding RedetectCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Redetect}" Margin="8,0,0,0" />
|
||
<Button Grid.Column="3" Style="{StaticResource Button.Compact}" Content="{l:Loc Settings.Rendering.SelfTest}" Command="{Binding SelfTestCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.SelfTest}" Margin="8,0,0,0" />
|
||
</Grid>
|
||
<!-- Settings.html encoder table: codec, encoder, 10-bit, max size, self-test (announced as it moves on), presets served. -->
|
||
<Border Style="{StaticResource Border.Card}">
|
||
<StackPanel>
|
||
<Border BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,0,0,1" Padding="14,8">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="96" />
|
||
<ColumnDefinition Width="1.2*" MinWidth="140" />
|
||
<ColumnDefinition Width="70" />
|
||
<ColumnDefinition Width="100" />
|
||
<ColumnDefinition Width="130" />
|
||
<ColumnDefinition Width="*" MinWidth="120" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Rendering.Column.Codec}" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Rendering.Column.Encoder}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Rendering.Column.TenBit}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Rendering.Column.Max}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="4" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Rendering.Column.SelfTest}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="5" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Rendering.Column.UsedFor}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</Border>
|
||
<ItemsControl ItemsSource="{Binding Encoders}" Focusable="False">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:EncoderRowViewModel}">
|
||
<Border BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,0,0,1" Height="36" Padding="14,0">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="96" />
|
||
<ColumnDefinition Width="1.2*" MinWidth="140" />
|
||
<ColumnDefinition Width="70" />
|
||
<ColumnDefinition Width="100" />
|
||
<ColumnDefinition Width="130" />
|
||
<ColumnDefinition Width="*" MinWidth="120" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Codec}" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding Name}" Margin="10,0,0,0" ToolTip="{Binding Name}" />
|
||
<TextBlock x:Name="TenBit" Grid.Column="2" Style="{StaticResource Text.Cell}" Text="{Binding TenBitText}" Margin="10,0,0,0" Foreground="{DynamicResource Brush.TextFaint}" />
|
||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Cell}" Text="{Binding MaxText}" Margin="10,0,0,0" ToolTip="{Binding MaxText}" />
|
||
<ui:StatusGlyph Grid.Column="4" Kind="{Binding ResultKind}" Text="{Binding ResultText}" ToolTip="{Binding ResultToolTip}" FontSize="13"
|
||
VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding HasResult, Converter={StaticResource BoolToVisibility}}"
|
||
AutomationProperties.LiveSetting="Polite" infra:LiveRegion.Text="{Binding ResultAnnouncement}" />
|
||
<TextBlock Grid.Column="5" Style="{StaticResource Text.Cell}" Text="{Binding UsedForText}" ToolTip="{Binding UsedForText}"
|
||
Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</Border>
|
||
<DataTemplate.Triggers>
|
||
<DataTrigger Binding="{Binding HasTenBit}" Value="True">
|
||
<Setter TargetName="TenBit" Property="Foreground" Value="{DynamicResource Brush.Success}" />
|
||
</DataTrigger>
|
||
</DataTemplate.Triggers>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</StackPanel>
|
||
</Border>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Formats (BRIEF §8.1): missing-codec notices, then the tier of every format on this PC ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Formats}">
|
||
<ItemsControl ItemsSource="{Binding MissingExtensions}" Focusable="False" Margin="0,0,0,8"
|
||
Visibility="{Binding HasMissingExtensions, Converter={StaticResource BoolToVisibility}}">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:MissingExtensionViewModel}">
|
||
<Grid Margin="0,0,0,8">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<ui:StatusGlyph Kind="Warning" Text="{Binding Text}" FontSize="13" VerticalAlignment="Center" ToolTip="{l:Loc Tooltips.Settings.MissingCodec}" />
|
||
<Button Grid.Column="1" Style="{StaticResource Button.Compact}" Content="{l:Loc Settings.Formats.Install}" Command="{Binding InstallCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Install}" AutomationProperties.Name="{Binding InstallName}" Margin="12,0,0,0" />
|
||
</Grid>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
<Grid Margin="0,0,0,8">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Text="{l:Loc Settings.Formats.Title}" FontWeight="SemiBold" VerticalAlignment="Center" />
|
||
<Button Grid.Column="1" Style="{StaticResource Button.Compact}" Content="{l:Loc Settings.Rendering.Redetect}" Command="{Binding RedetectFormatsCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.RedetectFormats}" />
|
||
</Grid>
|
||
<!-- Format, extensions, tier on this PC (glyph and word), decoder, extension that would decode it fully. -->
|
||
<Border Style="{StaticResource Border.Card}">
|
||
<StackPanel>
|
||
<Border BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,0,0,1" Padding="14,8">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="90" />
|
||
<ColumnDefinition Width="140" />
|
||
<ColumnDefinition Width="Auto" MinWidth="130" SharedSizeGroup="FormatTier" />
|
||
<ColumnDefinition Width="Auto" MinWidth="110" SharedSizeGroup="FormatDecoder" />
|
||
<ColumnDefinition Width="*" MinWidth="120" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Formats.Column.Format}" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Formats.Column.Extensions}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Formats.Column.Tier}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Formats.Column.Decoder}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="4" Style="{StaticResource Text.Header}" Text="{l:Loc Settings.Formats.Column.Needs}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</Border>
|
||
<ItemsControl ItemsSource="{Binding Formats}" Focusable="False">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:FormatRowViewModel}">
|
||
<Border BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,0,0,1" Height="36" Padding="14,0"
|
||
AutomationProperties.Name="{Binding Announcement}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="90" />
|
||
<ColumnDefinition Width="140" />
|
||
<ColumnDefinition Width="Auto" MinWidth="130" SharedSizeGroup="FormatTier" />
|
||
<ColumnDefinition Width="Auto" MinWidth="110" SharedSizeGroup="FormatDecoder" />
|
||
<ColumnDefinition Width="*" MinWidth="120" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Name}" FlowDirection="LeftToRight" HorizontalAlignment="Left" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding Extensions}" ToolTip="{Binding Extensions}" FontFamily="{StaticResource Font.Mono}"
|
||
FontSize="12" Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0" FlowDirection="LeftToRight" HorizontalAlignment="Left" />
|
||
<ui:StatusGlyph Grid.Column="2" Kind="{Binding TierKind}" Text="{Binding TierText}" ToolTip="{Binding TierToolTip}" FontSize="13"
|
||
VerticalAlignment="Center" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Cell}" Text="{Binding DecoderText}" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="4" Style="{StaticResource Text.Cell}" Text="{Binding NeedsText}" ToolTip="{Binding NeedsText}"
|
||
Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</Border>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</StackPanel>
|
||
</Border>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Storage ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Storage}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Storage.Folder}">
|
||
<!-- Path, browse, usage, Clear on one line: the path gives way first (Settings.html), down to 110 px, so the row fits at 1200 px
|
||
beside the 200 px rail in every language. -->
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="110" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" Text="{Binding CacheFolder.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding CacheFolder}" ToolTip="{Binding CacheFolder.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Storage.Folder}" />
|
||
<Button Grid.Column="1" Style="{StaticResource Button.Icon}" Margin="10,0,0,0" ui:ButtonIcon.Glyph="{StaticResource Icon.FolderOpen}" Command="{Binding BrowseCacheCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.BrowseCache}" AutomationProperties.Name="{l:Loc Settings.Browse}" />
|
||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Hint}" Text="{Binding CacheUsageText}" Margin="10,0,0,0" ToolTip="{l:Loc Tooltips.Settings.CacheUsage}" />
|
||
<Button Grid.Column="3" Style="{StaticResource Button.Compact}" Content="{l:Loc Settings.Storage.Clear}" Command="{Binding ClearCacheCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.ClearCacheAsk}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Storage.Thumbnails}">
|
||
<WrapPanel>
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Width="96" Text="{Binding ThumbnailMemory.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ThumbnailMemory}" ToolTip="{Binding ThumbnailMemory.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Storage.Thumbnails}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Storage.ThumbnailsUnit}" Margin="12,0,0,0" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Storage.Limit}">
|
||
<WrapPanel>
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding CacheLimit.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding CacheLimit}" ToolTip="{Binding CacheLimit.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Storage.Limit}" />
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Storage.LimitUnit}" Margin="12,0,0,0" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Workspace (owner review 2, R8; phase 5c) ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Workspace}">
|
||
<!-- The folder is shown, opened, changed (another folder after its plan; nothing is moved) and moved with its projects (after its plan,
|
||
by the workspace-move job); what it takes of its drive under it. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.Folder}">
|
||
<StackPanel>
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" IsReadOnly="True" Text="{Binding WorkspaceRows.Folder, Mode=OneWay}" ToolTip="{l:Loc Tooltips.Settings.Workspace.Folder}"
|
||
AutomationProperties.Name="{l:Loc Settings.Workspace.Folder}" />
|
||
<Button Grid.Column="1" Content="{l:Loc Common.Open}" Command="{Binding WorkspaceRows.OpenCommand}" ToolTip="{l:Loc Tooltips.Settings.OpenWorkspace}"
|
||
Margin="10,0,0,0" />
|
||
<Button Grid.Column="2" Content="{l:Loc Settings.Workspace.Change}" Command="{Binding WorkspaceRows.ChangeCommand}"
|
||
ToolTip="{Binding WorkspaceRows.ChangeToolTip}" ToolTipService.ShowOnDisabled="True" Margin="8,0,0,0"
|
||
Visibility="{Binding WorkspaceRows.CanChange, Converter={StaticResource BoolToVisibility}}" />
|
||
<Button Grid.Column="3" Content="{l:Loc Settings.Workspace.Move}" Command="{Binding WorkspaceRows.MoveCommand}"
|
||
ToolTip="{Binding WorkspaceRows.MoveToolTip}" ToolTipService.ShowOnDisabled="True" Margin="8,0,0,0"
|
||
Visibility="{Binding WorkspaceRows.CanMove, Converter={StaticResource BoolToVisibility}}" />
|
||
<Button Grid.Column="4" Content="{l:Loc Settings.Workspace.ResumeMove}" Command="{Binding WorkspaceRows.ResumeMoveCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.ResumeMove}" Margin="8,0,0,0"
|
||
Visibility="{Binding WorkspaceRows.CanResumeMove, Converter={StaticResource BoolToVisibility}}" />
|
||
</Grid>
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{Binding WorkspaceRows.UsageText}" ToolTip="{l:Loc Tooltips.Settings.Workspace.Used}" Margin="0,6,0,0"
|
||
Visibility="{Binding WorkspaceRows.HasUsageText, Converter={StaticResource BoolToVisibility}}" />
|
||
</StackPanel>
|
||
</HeaderedContentControl>
|
||
<!-- Each home keeps its projects in its own folder of the workspace (owner review 5): this PC's archive, then each server. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.Homes}" ToolTip="{l:Loc Tooltips.Settings.Workspace.Homes}"
|
||
Visibility="{Binding HasHomeFolderRows, Converter={StaticResource BoolToVisibility}}">
|
||
<ItemsControl ItemsSource="{Binding HomeFolderRows}" Focusable="False">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:HomeFolderRow}">
|
||
<Grid Height="36">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="160" />
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Name}" ToolTip="{Binding ToolTip}" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding Path}" ToolTip="{Binding ToolTip}" Foreground="{DynamicResource Brush.TextMuted}"
|
||
FlowDirection="LeftToRight" HorizontalAlignment="Left" Margin="10,0,0,0" />
|
||
<Button Grid.Column="2" Style="{StaticResource Button.Row}" Content="{l:Loc Common.Open}" Command="{Binding OpenCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.OpenHome}" AutomationProperties.Name="{Binding Name}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.SizeLimit}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding WorkspaceRows.SizeLimitChoices}" SelectedItem="{Binding WorkspaceRows.SelectedSizeLimit}"
|
||
DisplayMemberPath="Label" ToolTip="{Binding WorkspaceRows.SizeLimitToolTip}" AutomationProperties.Name="{l:Loc Settings.Workspace.SizeLimit}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.DefaultMedia}">
|
||
<WrapPanel Margin="0,4,0,0">
|
||
<RadioButton GroupName="WorkspaceMedia" Content="{l:Loc Settings.Workspace.Proxies}" IsChecked="{Binding WorkspaceRows.IsDefaultProxies}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.Proxies}" Margin="0,0,20,0" />
|
||
<RadioButton GroupName="WorkspaceMedia" Content="{l:Loc Settings.Workspace.Originals}" IsChecked="{Binding WorkspaceRows.IsDefaultOriginals}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.Originals}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.Sync}">
|
||
<CheckBox Content="{l:Loc Settings.Workspace.AfterSave}" IsChecked="{Binding WorkspaceRows.AutoSync}" ToolTip="{l:Loc Tooltips.Settings.WorkspaceSync}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.VersionOnRender}">
|
||
<CheckBox Content="{l:Loc Settings.Workspace.SaveBeforeRender}" IsChecked="{Binding WorkspaceRows.VersionOnRender}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.VersionOnRender}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.Kept}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding WorkspaceRows.KeptChoices}" SelectedItem="{Binding WorkspaceRows.SelectedKept}"
|
||
DisplayMemberPath="Label" ToolTip="{l:Loc Tooltips.Settings.KeptVersions}" AutomationProperties.Name="{l:Loc Settings.Workspace.Kept}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.CleanAfter}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding WorkspaceRows.CleanAfterChoices}" SelectedItem="{Binding WorkspaceRows.SelectedCleanAfter}"
|
||
DisplayMemberPath="Label" ToolTip="{Binding WorkspaceRows.CleanAfterToolTip}" AutomationProperties.Name="{l:Loc Settings.Workspace.CleanAfter}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.OpenProject}">
|
||
<WrapPanel Margin="0,4,0,0">
|
||
<RadioButton GroupName="WorkspaceOpen" Content="{l:Loc Settings.Workspace.LastUsed}" IsChecked="{Binding WorkspaceRows.IsOpenLastUsed}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.LastUsed}" Margin="0,0,20,0" />
|
||
<RadioButton GroupName="WorkspaceOpen" Content="{l:Loc Settings.Workspace.Main}" IsChecked="{Binding WorkspaceRows.IsOpenMain}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.Main}" Margin="0,0,20,0" />
|
||
<RadioButton GroupName="WorkspaceOpen" Content="{l:Loc Settings.Workspace.Ask}" IsChecked="{Binding WorkspaceRows.IsOpenAsk}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Workspace.Ask}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<!-- What removed copies and the clean-up set aside; only Empty… erases it, after its plan and the typed number of its entries. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Workspace.Trash}">
|
||
<WrapPanel>
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{Binding WorkspaceRows.TrashText}" ToolTip="{l:Loc Tooltips.Settings.Workspace.Trash}" Margin="0,0,12,0"
|
||
VerticalAlignment="Center" />
|
||
<Button Style="{StaticResource Button.Compact}" Content="{l:Loc Settings.Workspace.EmptyTrash}" Command="{Binding WorkspaceRows.EmptyTrashCommand}"
|
||
ToolTip="{Binding WorkspaceRows.EmptyTrashToolTip}" ToolTipService.ShowOnDisabled="True" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Server ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Server}">
|
||
<!-- Sharing (owner review 5, #67): this PC's library served to the LAN while Chronos runs. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.Share}">
|
||
<CheckBox Content="{l:Loc Settings.Server.ShareLibrary}" IsChecked="{Binding ShareRows.Enabled}" ToolTip="{l:Loc Tooltips.Settings.ShareLibrary}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.ShareName}">
|
||
<TextBox Style="{StaticResource TextBox.Setting}" Text="{Binding ShareRows.Name.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ShareRows.Name}" ToolTip="{Binding ShareRows.Name.ToolTip}" ui:Field.Placeholder="{Binding ShareRows.PcName}"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.ShareName}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.HttpsPort}">
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding ShareRows.HttpsPort.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ShareRows.HttpsPort}" ToolTip="{Binding ShareRows.HttpsPort.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Server.HttpsPort}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.HttpPort}">
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding ShareRows.HttpPort.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ShareRows.HttpPort}" ToolTip="{Binding ShareRows.HttpPort.ToolTip}" AutomationProperties.Name="{l:Loc Settings.Server.HttpPort}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.PublicHttpsPort}">
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding ShareRows.PublicHttpsPort.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ShareRows.PublicHttpsPort}" ToolTip="{Binding ShareRows.PublicHttpsPort.ToolTip}"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.PublicHttpsPort}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.PublicHttpPort}">
|
||
<TextBox Style="{StaticResource TextBox.SettingNumber}" Text="{Binding ShareRows.PublicHttpPort.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding ShareRows.PublicHttpPort}" ToolTip="{Binding ShareRows.PublicHttpPort.ToolTip}"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.PublicHttpPort}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.Discovery}">
|
||
<CheckBox Content="{l:Loc Settings.Server.Announce}" IsChecked="{Binding ShareRows.Discovery}" ToolTip="{l:Loc Tooltips.Settings.Discovery}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.ShareFolder}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" IsReadOnly="True" Text="{Binding ShareRows.Folder, Mode=OneWay}" ToolTip="{l:Loc Tooltips.Settings.ShareFolder}"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.ShareFolder}" />
|
||
<Button Grid.Column="1" Content="{l:Loc Common.Open}" Command="{Binding ShareRows.OpenFolderCommand}" ToolTip="{l:Loc Tooltips.Settings.OpenShareFolder}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.Default}">
|
||
<TextBox Style="{StaticResource TextBox.Setting}" Text="{Binding DefaultServer.Text, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
|
||
shell:EditBehavior.Field="{Binding DefaultServer}" ToolTip="{Binding DefaultServer.ToolTip}" ui:Field.Placeholder="{l:Loc Server.AddressPlaceholder}"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.Default}" FlowDirection="LeftToRight" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.RenderNode}">
|
||
<CheckBox Content="{l:Loc Settings.Server.OfferPc}" IsChecked="{Binding RenderNodeOptIn}" ToolTip="{l:Loc Tooltips.Server.RenderNode}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.Certificates}">
|
||
<Grid>
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Server.NoCertificates}" Margin="0,7,0,0" VerticalAlignment="Top"
|
||
Visibility="{Binding HasCertificates, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" />
|
||
<ItemsControl ItemsSource="{Binding Certificates}" Focusable="False" Visibility="{Binding HasCertificates, Converter={StaticResource BoolToVisibility}}">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:TrustedCertificateRow}">
|
||
<Grid Height="36">
|
||
<!-- The server name gives way first (it ends in an ellipsis), so Forget fits at 1200 px in longer languages. -->
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="100" />
|
||
<ColumnDefinition Width="170" />
|
||
<ColumnDefinition Width="110" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Server}" ToolTip="{Binding Server}" FlowDirection="LeftToRight" HorizontalAlignment="Left" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding Fingerprint}" FontFamily="{StaticResource Font.Mono}" FontSize="12"
|
||
ToolTip="{Binding FullFingerprint}" Margin="10,0,0,0" FlowDirection="LeftToRight" HorizontalAlignment="Left" />
|
||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Cell}" Text="{Binding TrustedText}" Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0" />
|
||
<Button Grid.Column="3" Style="{StaticResource Button.Row}" Content="{l:Loc Server.Certificate.Forget}" Command="{Binding ForgetCommand}"
|
||
ToolTip="{l:Loc Tooltips.Server.ForgetTrust}" AutomationProperties.Name="{Binding ForgetName}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
<!-- The servers this PC signed in to (owner review 5): id, whether signed in now, the archive of their originals and their share of the cache. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Server.Known}" ToolTip="{l:Loc Tooltips.Settings.Server.Known}"
|
||
Visibility="{Binding HasKnownServers, Converter={StaticResource BoolToVisibility}}">
|
||
<ItemsControl ItemsSource="{Binding KnownServers}" Focusable="False">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type st:KnownServerRow}">
|
||
<StackPanel Margin="0,0,0,8">
|
||
<Grid Height="36">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="120" />
|
||
<ColumnDefinition Width="170" />
|
||
<ColumnDefinition Width="90" />
|
||
<ColumnDefinition Width="90" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{Binding Name}" ToolTip="{Binding Name}" HorizontalAlignment="Left" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding Address}" ToolTip="{Binding Address}" FlowDirection="LeftToRight"
|
||
HorizontalAlignment="Left" Margin="10,0,0,0" />
|
||
<TextBlock Grid.Column="2" Style="{StaticResource Text.Cell}" Text="{Binding ShortId}" ToolTip="{Binding IdToolTip}" FontFamily="{StaticResource Font.Mono}"
|
||
FontSize="12" FlowDirection="LeftToRight" HorizontalAlignment="Left" Margin="10,0,0,0"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.ServerId}" />
|
||
<TextBlock Grid.Column="3" Style="{StaticResource Text.Cell}" Text="{Binding StateText}" ToolTip="{Binding StateToolTip}"
|
||
Foreground="{DynamicResource Brush.TextMuted}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
<Grid Height="32">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="140" />
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{l:Loc Settings.Server.Originals}" ToolTip="{l:Loc Tooltips.Settings.Server.Originals}"
|
||
Foreground="{DynamicResource Brush.TextMuted}" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding OriginalsPath}" ToolTip="{l:Loc Tooltips.Settings.Server.Originals}"
|
||
FlowDirection="LeftToRight" HorizontalAlignment="Left" Margin="10,0,0,0" />
|
||
<Button Grid.Column="2" Style="{StaticResource Button.Row}" Content="{l:Loc Common.Open}" Command="{Binding OpenOriginalsCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Server.OpenOriginals}" ToolTipService.ShowOnDisabled="True"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.Originals}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
<Grid Height="32">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="140" />
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Style="{StaticResource Text.Cell}" Text="{l:Loc Settings.Server.Cache}" ToolTip="{l:Loc Tooltips.Settings.Server.Cache}"
|
||
Foreground="{DynamicResource Brush.TextMuted}" />
|
||
<TextBlock Grid.Column="1" Style="{StaticResource Text.Cell}" Text="{Binding CachePath}" ToolTip="{l:Loc Tooltips.Settings.Server.Cache}"
|
||
FlowDirection="LeftToRight" HorizontalAlignment="Left" Margin="10,0,0,0" />
|
||
<Button Grid.Column="2" Style="{StaticResource Button.Row}" Content="{l:Loc Common.Open}" Command="{Binding OpenCacheCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.Server.OpenCache}" ToolTipService.ShowOnDisabled="True"
|
||
AutomationProperties.Name="{l:Loc Settings.Server.Cache}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</StackPanel>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Updates ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Updates}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.General.Updates}">
|
||
<CheckBox Content="{l:Loc Settings.General.CheckOnStart}" IsChecked="{Binding CheckForUpdates}" ToolTip="{l:Loc Tooltips.Settings.CheckForUpdates}" Margin="0,4,0,0" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Updates.Latest}">
|
||
<WrapPanel>
|
||
<Button Content="{l:Loc About.Update.Check}" Command="{Binding Shell.About.CheckCommand}" ToolTip="{l:Loc Tooltips.About.Check}" />
|
||
<ui:StatusGlyph Kind="{Binding Shell.About.UpdateKind}" Text="{Binding Shell.About.UpdateText}" FontSize="13" VerticalAlignment="Center" Margin="12,0,0,0"
|
||
Visibility="{Binding Shell.About.HasUpdateText, Converter={StaticResource BoolToVisibility}}"
|
||
AutomationProperties.LiveSetting="Polite" infra:LiveRegion.Text="{Binding Shell.About.UpdateAnnouncement}" />
|
||
<Button Style="{StaticResource Button.Link}" Content="{l:Loc About.Update.Download}" Command="{Binding Shell.About.DownloadCommand}" ToolTip="{Binding Shell.About.DownloadToolTip}"
|
||
VerticalAlignment="Center" Margin="12,0,0,0" FontSize="13"
|
||
Visibility="{Binding Shell.About.IsUpdateAvailable, Converter={StaticResource BoolToVisibility}}" />
|
||
<Button Style="{StaticResource Button.Link}" Content="{l:Loc About.Update.Cancel}" Command="{Binding Shell.About.CancelDownloadCommand}" ToolTip="{l:Loc Tooltips.About.CancelDownload}"
|
||
VerticalAlignment="Center" Margin="12,0,0,0" FontSize="13"
|
||
Visibility="{Binding Shell.About.IsDownloading, Converter={StaticResource BoolToVisibility}}" />
|
||
<Button Style="{StaticResource Button.Link}" Content="{l:Loc About.Update.ShowFile}" Command="{Binding Shell.About.ShowPackageCommand}" ToolTip="{Binding Shell.About.ShowPackageToolTip}"
|
||
VerticalAlignment="Center" Margin="12,0,0,0" FontSize="13"
|
||
Visibility="{Binding Shell.About.IsPackageReady, Converter={StaticResource BoolToVisibility}}" />
|
||
<Button Style="{StaticResource Button.Link}" Content="{l:Loc About.Releases}" Command="{Binding Shell.About.OpenReleasesCommand}" ToolTip="{l:Loc Tooltips.About.Releases}"
|
||
VerticalAlignment="Center" Margin="12,0,0,0" FontSize="13" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= Advanced ================= -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=Advanced}">
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Portable}">
|
||
<TextBlock Text="{Binding PortableText}" Margin="0,7,0,0" ToolTip="{l:Loc Tooltips.Settings.Portable}" />
|
||
</HeaderedContentControl>
|
||
<!-- Read-only folders: the full path in the tooltip; Open says what it does. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.DataFolder}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" IsReadOnly="True" Text="{Binding DataFolder, Mode=OneWay}" ToolTip="{Binding DataFolder}"
|
||
AutomationProperties.Name="{l:Loc Settings.Advanced.DataFolder}" />
|
||
<Button Grid.Column="1" Content="{l:Loc Common.Open}" Command="{Binding OpenDataFolderCommand}" ToolTip="{l:Loc Tooltips.Settings.OpenDataFolder}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Logs}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*" MinWidth="160" MaxWidth="360" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
<TextBox Style="{StaticResource TextBox.Path}" IsReadOnly="True" Text="{Binding LogsFolder, Mode=OneWay}" ToolTip="{Binding LogsFolder}"
|
||
AutomationProperties.Name="{l:Loc Settings.Advanced.Logs}" />
|
||
<Button Grid.Column="1" Content="{l:Loc Common.Open}" Command="{Binding OpenLogsCommand}" ToolTip="{l:Loc Tooltips.Common.OpenLogs}" Margin="10,0,0,0" />
|
||
</Grid>
|
||
</HeaderedContentControl>
|
||
<!-- Owner review 2, R11: what the log files keep; a choice applies to them at once. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.LogLevel}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Logs.Levels}" SelectedItem="{Binding Logs.SelectedLevel}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.LogLevel}" AutomationProperties.Name="{l:Loc Settings.Advanced.LogLevel}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.KeepLogs}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Logs.RetentionChoices}" SelectedItem="{Binding Logs.SelectedRetention}"
|
||
DisplayMemberPath="Label" ToolTip="{l:Loc Tooltips.Settings.KeepLogs}" AutomationProperties.Name="{l:Loc Settings.Advanced.KeepLogs}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.FileSize}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Logs.FileSizeChoices}" SelectedItem="{Binding Logs.SelectedFileSize}"
|
||
DisplayMemberPath="Label" ToolTip="{l:Loc Tooltips.Settings.LogFileSize}" AutomationProperties.Name="{l:Loc Settings.Advanced.FileSize}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.LogsTotal}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Logs.TotalSizeChoices}" SelectedItem="{Binding Logs.SelectedTotalSize}"
|
||
DisplayMemberPath="Label" ToolTip="{l:Loc Tooltips.Settings.LogsTotal}" AutomationProperties.Name="{l:Loc Settings.Advanced.LogsTotal}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Rotation}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Logs.Rotations}" SelectedItem="{Binding Logs.SelectedRotation}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.Rotation}" AutomationProperties.Name="{l:Loc Settings.Advanced.Rotation}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.DiagnosticsLogs}">
|
||
<ComboBox Width="170" HorizontalAlignment="Left" ItemsSource="{Binding Logs.DiagnosticsChoices}" SelectedItem="{Binding Logs.SelectedDiagnostics}"
|
||
DisplayMemberPath="Label" ToolTip="{l:Loc Tooltips.Settings.DiagnosticsLogs}" AutomationProperties.Name="{l:Loc Settings.Advanced.DiagnosticsLogs}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Diagnostics}">
|
||
<Button HorizontalAlignment="Left" Content="{l:Loc Settings.Advanced.ExportBundle}" Command="{Binding ExportDiagnosticsCommand}" ToolTip="{l:Loc Tooltips.Settings.Diagnostics}"
|
||
ui:ButtonIcon.Glyph="{StaticResource Icon.Export}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Backup}">
|
||
<Button HorizontalAlignment="Left" Content="{l:Loc Settings.Advanced.BackupNow}" Command="{Binding BackupDatabaseCommand}" ToolTip="{l:Loc Tooltips.Settings.Backup}"
|
||
ui:ButtonIcon.Glyph="{StaticResource Icon.Database}" />
|
||
</HeaderedContentControl>
|
||
<!-- Restore: a backup copy of the index, its dry run and confirmation; it replaces the index at the next start. -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Restore}">
|
||
<WrapPanel>
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Advanced.NoBackups}" Margin="0,0,12,0"
|
||
Visibility="{Binding HasBackups, Converter={x:Static ui:InverseBoolToVisibilityConverter.Instance}}" />
|
||
<WrapPanel Visibility="{Binding HasBackups, Converter={StaticResource BoolToVisibility}}" Margin="0,0,12,0">
|
||
<ComboBox Width="240" ItemsSource="{Binding Backups}" SelectedItem="{Binding SelectedBackup}" DisplayMemberPath="Label"
|
||
ToolTip="{l:Loc Tooltips.Settings.Backups}" AutomationProperties.Name="{l:Loc Settings.Advanced.Restore}" />
|
||
<Button Content="{l:Loc Settings.Advanced.RestoreNow}" Command="{Binding RestoreDatabaseCommand}" ToolTip="{l:Loc Tooltips.Settings.Restore}" Margin="10,0,0,0" />
|
||
</WrapPanel>
|
||
<!-- A staged restore can be cancelled even when its copy has been pruned since. -->
|
||
<WrapPanel Visibility="{Binding IsRestoreStaged, Converter={StaticResource BoolToVisibility}}">
|
||
<TextBlock Style="{StaticResource Text.Hint}" Text="{l:Loc Settings.Advanced.RestorePending}" ToolTip="{l:Loc Tooltips.Settings.RestorePending}" />
|
||
<Button Style="{StaticResource Button.Link}" Content="{l:Loc Settings.Advanced.RestoreCancel}" Command="{Binding CancelRestoreCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.RestoreCancel}" VerticalAlignment="Center" Margin="12,0,0,0" FontSize="13" />
|
||
</WrapPanel>
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc Settings.Advanced.Reset}">
|
||
<Button Style="{StaticResource Button.Destructive}" HorizontalAlignment="Left" Content="{l:Loc Settings.Advanced.ResetAll}" Command="{Binding ResetAllCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.ResetAll}" />
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
|
||
<!-- ================= About ================= -->
|
||
<!-- BRIEF §12.9, the last page (owner review 2, R5): this copy only. The update check is on Updates, the data folder and the
|
||
diagnostics bundle on Advanced, so nothing is offered twice. Versions, names and paths read left to right (DESIGN §5). -->
|
||
<StackPanel Style="{StaticResource Page}" Visibility="{Binding Page, Converter={x:Static shell:EqualsToVisibilityConverter.Instance}, ConverterParameter=About}">
|
||
<StackPanel Orientation="Horizontal" Margin="0,0,0,18">
|
||
<ui:BrandMarkIcon Width="40" Height="40" ShowPlate="True" />
|
||
<StackPanel Margin="14,0,0,0" VerticalAlignment="Center">
|
||
<TextBlock Text="{l:Loc Shell.AppName}" Style="{StaticResource Text.Title}" />
|
||
<TextBlock Text="{Binding Shell.About.Version}" Style="{StaticResource Text.Secondary}" Margin="0,2,0,0" HorizontalAlignment="Left" FlowDirection="LeftToRight"
|
||
Typography.NumeralAlignment="Tabular" />
|
||
</StackPanel>
|
||
</StackPanel>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc About.Build}">
|
||
<TextBlock Text="{Binding Shell.About.Build}" HorizontalAlignment="Left" FlowDirection="LeftToRight" Typography.NumeralAlignment="Tabular" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc About.Runtime}">
|
||
<TextBlock Text="{Binding Shell.About.Runtime}" HorizontalAlignment="Left" FlowDirection="LeftToRight" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc About.System}">
|
||
<TextBlock Text="{Binding Shell.About.OperatingSystem}" ToolTip="{Binding Shell.About.OperatingSystem}" HorizontalAlignment="Left" FlowDirection="LeftToRight"
|
||
TextTrimming="CharacterEllipsis" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc About.Licence}">
|
||
<Button Style="{StaticResource Button.Link}" FontSize="13" HorizontalAlignment="Left" Content="{l:Loc About.LicenceLink}" Command="{Binding Shell.About.OpenLicenceCommand}"
|
||
ToolTip="{l:Loc Tooltips.About.Licence}" />
|
||
</HeaderedContentControl>
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc About.ThirdParty}">
|
||
<TextBlock Text="{l:Loc About.ThirdPartyNone}" ToolTip="{l:Loc Tooltips.About.ThirdParty}" HorizontalAlignment="Left" />
|
||
</HeaderedContentControl>
|
||
<!-- Every language but English is machine-translated (BRIEF §16). -->
|
||
<HeaderedContentControl Style="{StaticResource Setting.Row}" Header="{l:Loc About.Translation}"
|
||
Visibility="{Binding Shell.About.IsTranslated, Converter={StaticResource BoolToVisibility}}">
|
||
<WrapPanel>
|
||
<TextBlock Text="{l:Loc About.MachineTranslated}" VerticalAlignment="Center" />
|
||
<Button Style="{StaticResource Button.Link}" FontSize="13" Margin="12,0,0,0" VerticalAlignment="Center" Content="{l:Loc About.Review}"
|
||
Command="{Binding Shell.About.ReviewTranslationCommand}" ToolTip="{l:Loc Tooltips.About.Review}" />
|
||
</WrapPanel>
|
||
</HeaderedContentControl>
|
||
</StackPanel>
|
||
</Grid>
|
||
</ScrollViewer>
|
||
|
||
<!-- Reset section: only on pages with settings to reset. -->
|
||
<Border Grid.Row="2" BorderBrush="{DynamicResource Brush.Stroke}" BorderThickness="0,1,0,0" Padding="0,12,0,0" Margin="0,12,0,0"
|
||
Visibility="{Binding CanResetSection, Converter={StaticResource BoolToVisibility}}">
|
||
<Button Style="{StaticResource Button.Subtle}" HorizontalAlignment="Right" Content="{l:Loc Settings.ResetSection}" Command="{Binding ResetSectionCommand}"
|
||
ToolTip="{l:Loc Tooltips.Settings.ResetSection}" BorderBrush="{DynamicResource Brush.Stroke}" Foreground="{DynamicResource Brush.TextMuted}" />
|
||
</Border>
|
||
</Grid>
|
||
</Border>
|
||
</Grid>
|
||
</UserControl>
|