2024-06-12 20:54:10 -07:00
|
|
|
<v:ChromelessWindow xmlns="https://github.com/avaloniaui"
|
|
|
|
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:vm="using:SourceGit.ViewModels"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
xmlns:c="using:SourceGit.Converters"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.AssumeUnchangedManager"
|
|
|
|
x:DataType="vm:AssumeUnchangedManager"
|
2024-08-21 21:37:26 -07:00
|
|
|
x:Name="ThisControl"
|
2024-06-12 20:54:10 -07:00
|
|
|
Icon="/App.ico"
|
|
|
|
Title="{DynamicResource Text.AssumeUnchanged}"
|
|
|
|
Width="600" Height="400"
|
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterOwner">
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
2024-02-05 23:08:37 -08:00
|
|
|
<!-- TitleBar -->
|
2024-10-31 06:36:51 -07:00
|
|
|
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
|
|
|
<Border Background="{DynamicResource Brush.TitleBar}"
|
2024-03-07 19:13:53 -08:00
|
|
|
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"
|
2024-03-14 03:23:36 -07:00
|
|
|
PointerPressed="BeginMoveWindow"/>
|
2024-03-07 19:13:53 -08:00
|
|
|
|
2024-10-31 06:36:51 -07:00
|
|
|
<Path Width="14" Height="14"
|
2024-02-05 23:08:37 -08:00
|
|
|
Margin="10,0,0,0"
|
2024-10-31 06:36:51 -07:00
|
|
|
HorizontalAlignment="Left"
|
2024-02-05 23:08:37 -08:00
|
|
|
Data="{StaticResource Icons.File.Ignore}"
|
2024-03-14 03:23:36 -07:00
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-10-31 06:36:51 -07:00
|
|
|
<TextBlock Classes="bold"
|
2024-02-05 23:08:37 -08:00
|
|
|
Text="{DynamicResource Text.AssumeUnchanged}"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
IsHitTestVisible="False"/>
|
|
|
|
|
2024-10-31 06:36:51 -07:00
|
|
|
<v:CaptionButtons HorizontalAlignment="Right"
|
2024-09-01 01:54:20 -07:00
|
|
|
IsCloseButtonOnly="True"
|
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Grid>
|
2024-03-07 19:13:53 -08:00
|
|
|
|
2024-02-05 23:08:37 -08:00
|
|
|
<!-- Unchanged Files -->
|
2024-06-12 20:54:10 -07:00
|
|
|
<Grid Grid.Row="1">
|
2024-08-27 06:28:48 -07:00
|
|
|
<ListBox Margin="8"
|
|
|
|
BorderThickness="1"
|
|
|
|
BorderBrush="{DynamicResource Brush.Border2}"
|
|
|
|
Background="{DynamicResource Brush.Contents}"
|
|
|
|
SelectionMode="Single"
|
|
|
|
ItemsSource="{Binding Files}"
|
|
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
|
|
|
<ListBox.Styles>
|
|
|
|
<Style Selector="ListBoxItem">
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
|
|
|
<Setter Property="Height" Value="26"/>
|
|
|
|
</Style>
|
|
|
|
</ListBox.Styles>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-08-27 06:28:48 -07:00
|
|
|
<ListBox.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<VirtualizingStackPanel Orientation="Vertical"/>
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ListBox.ItemsPanel>
|
|
|
|
|
|
|
|
<ListBox.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Height="26" ColumnDefinitions="26,*,30">
|
|
|
|
<Path Grid.Column="0" Width="14" Height="14" Margin="8,0,0,0" HorizontalAlignment="Center" Data="{StaticResource Icons.File}"/>
|
|
|
|
<Border Grid.Column="1" Margin="4,0" ClipToBounds="True">
|
|
|
|
<TextBlock Grid.Column="1" Text="{Binding}" HorizontalAlignment="Left"/>
|
|
|
|
</Border>
|
|
|
|
<Button Grid.Column="2" Classes="icon_button" Click="OnRemoveButtonClicked">
|
|
|
|
<Path Width="14" Height="14" Data="{StaticResource Icons.Clear}"/>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListBox.ItemTemplate>
|
|
|
|
</ListBox>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
2024-03-14 03:23:36 -07:00
|
|
|
<!-- Empty -->
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
IsVisible="{Binding Files.Count, Converter={x:Static c:IntConverters.IsZero}}">
|
|
|
|
<Path Width="48" Height="48" Data="{StaticResource Icons.Empty}" Fill="{DynamicResource Brush.FG2}"/>
|
|
|
|
<TextBlock Margin="0,16,0,0" Text="{DynamicResource Text.AssumeUnchanged.Empty}" Foreground="{DynamicResource Brush.FG2}"/>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Grid>
|
2024-06-12 20:54:10 -07:00
|
|
|
</v:ChromelessWindow>
|