2024-07-08 07:07:00 -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:v="using:SourceGit.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.Askpass"
|
|
|
|
x:DataType="v:Askpass"
|
|
|
|
Icon="/App.ico"
|
|
|
|
Title="{DynamicResource Text.Askpass}"
|
|
|
|
SizeToContent="WidthAndHeight"
|
|
|
|
CanResize="False"
|
|
|
|
WindowStartupLocation="CenterScreen">
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
|
|
|
<!-- TitleBar -->
|
2024-08-21 21:37:26 -07:00
|
|
|
<Grid Grid.Row="0" ColumnDefinitions="Auto,*,Auto" Height="30" IsVisible="{Binding !UseSystemWindowFrame}">
|
2024-07-08 07:07:00 -07:00
|
|
|
<Border Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Background="{DynamicResource Brush.TitleBar}"
|
|
|
|
BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border0}"
|
|
|
|
PointerPressed="BeginMoveWindow"/>
|
|
|
|
|
|
|
|
<Path Grid.Column="0"
|
|
|
|
Width="14" Height="14"
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
Data="{StaticResource Icons.Password}"
|
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
2024-09-01 01:54:20 -07:00
|
|
|
|
|
|
|
<v:CaptionButtonsMacOS Grid.Column="0"
|
|
|
|
Margin="0,2,0,0"
|
|
|
|
IsCloseButtonOnly="True"
|
|
|
|
IsVisible="{OnPlatform False, macOS=True}"/>
|
2024-07-08 07:07:00 -07:00
|
|
|
|
|
|
|
<TextBlock Grid.Column="0" Grid.ColumnSpan="3"
|
|
|
|
Classes="bold"
|
|
|
|
Text="{DynamicResource Text.Askpass}"
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
|
|
IsHitTestVisible="False"/>
|
|
|
|
|
2024-09-01 01:54:20 -07:00
|
|
|
<v:CaptionButtons Grid.Column="2"
|
|
|
|
IsCloseButtonOnly="True"
|
|
|
|
IsVisible="{OnPlatform True, macOS=False}"/>
|
2024-07-08 07:07:00 -07:00
|
|
|
</Grid>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" Margin="0,16" Orientation="Vertical">
|
2024-07-09 02:56:23 -07:00
|
|
|
<Border Margin="16,0">
|
|
|
|
<TextBlock Text="{Binding Description}" TextWrapping="Wrap"/>
|
|
|
|
</Border>
|
2024-07-08 07:07:00 -07:00
|
|
|
|
|
|
|
<TextBox Margin="16"
|
|
|
|
MinWidth="300"
|
|
|
|
Height="32"
|
|
|
|
Text="{Binding Passphrase, Mode=TwoWay}"
|
|
|
|
PasswordChar="*"
|
2024-07-09 00:26:46 -07:00
|
|
|
RevealPassword="{Binding ShowPassword, Mode=OneWay}"
|
|
|
|
HorizontalAlignment="Stretch">
|
|
|
|
<TextBox.InnerRightContent>
|
|
|
|
<ToggleButton Grid.Column="6"
|
|
|
|
Classes="toggle_untracked"
|
|
|
|
Width="26" Height="14"
|
|
|
|
IsChecked="{Binding ShowPassword, Mode=TwoWay}"/>
|
|
|
|
</TextBox.InnerRightContent>
|
|
|
|
</TextBox>
|
2024-07-08 07:07:00 -07:00
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
|
<Button Classes="flat primary"
|
|
|
|
Width="80"
|
|
|
|
Content="{DynamicResource Text.Sure}"
|
|
|
|
Click="EnterPassword"
|
|
|
|
HotKey="Enter"/>
|
|
|
|
<Button Classes="flat"
|
|
|
|
Width="80"
|
|
|
|
Margin="16,0,0,0"
|
|
|
|
Content="{DynamicResource Text.Cancel}"
|
|
|
|
Click="CloseWindow"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</v:ChromelessWindow>
|