61 lines
3.4 KiB
XML
61 lines
3.4 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="RynthCore.App.Avalonia.FirstLoginDialog"
|
|
Width="560"
|
|
SizeToContent="Height"
|
|
CanResize="False"
|
|
WindowStartupLocation="CenterOwner"
|
|
Title="First Login"
|
|
Background="#132028">
|
|
<Window.Resources>
|
|
<!-- The same eye as the account editor's (AccountProfileDialog.axaml). -->
|
|
<StreamGeometry x:Key="EyeIcon">F0 M8,3 C4.4,3 1.6,5.3 0.5,8 C1.6,10.7 4.4,13 8,13 C11.6,13 14.4,10.7 15.5,8 C14.4,5.3 11.6,3 8,3 Z M8,4.3 C5.3,4.3 3,5.9 2,8 C3,10.1 5.3,11.7 8,11.7 C10.7,11.7 13,10.1 14,8 C13,5.9 10.7,4.3 8,4.3 Z M8,5.5 A2.5,2.5 0 1 1 8,10.5 A2.5,2.5 0 1 1 8,5.5 Z</StreamGeometry>
|
|
</Window.Resources>
|
|
<Grid RowDefinitions="*,Auto" Margin="18">
|
|
<StackPanel Spacing="10">
|
|
<TextBlock x:Name="HeaderText" Foreground="#EAF0F4" FontSize="16" FontWeight="SemiBold" TextWrapping="Wrap" />
|
|
<TextBlock x:Name="IntroText" Foreground="#9AA8B3" TextWrapping="Wrap" />
|
|
|
|
<TextBlock Text="Use an account you already have (optional)" Foreground="#EAF0F4" />
|
|
<ComboBox x:Name="KnownAccountBox" HorizontalAlignment="Stretch" PlaceholderText="Pick an account name, or type a new one below" />
|
|
|
|
<TextBlock Text="Account" Foreground="#EAF0F4" />
|
|
<TextBox x:Name="AccountBox" Watermark="A new name creates the account on this server's first login (ACE)" />
|
|
|
|
<CheckBox x:Name="ReuseSavedPasswordCheckBox" Foreground="#EAF0F4" IsVisible="False" />
|
|
|
|
<StackPanel x:Name="PasswordPanel" Spacing="10">
|
|
<TextBlock Text="Password" Foreground="#EAF0F4" />
|
|
<!-- The eyes only reveal what's typed (nothing is saved yet to show). -->
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<TextBox x:Name="PasswordBox" Grid.Column="0" Margin="0,0,6,0" PasswordChar="*" RevealPassword="False" />
|
|
<ToggleButton x:Name="ShowPasswordToggle" Grid.Column="1" VerticalAlignment="Stretch"
|
|
ToolTip.Tip="Show password" AutomationProperties.Name="Show password">
|
|
<PathIcon Data="{StaticResource EyeIcon}" Width="16" Height="16" />
|
|
</ToggleButton>
|
|
</Grid>
|
|
<TextBlock Text="Confirm password" Foreground="#EAF0F4" />
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<TextBox x:Name="ConfirmBox" Grid.Column="0" Margin="0,0,6,0" PasswordChar="*" RevealPassword="False" />
|
|
<ToggleButton x:Name="ShowConfirmToggle" Grid.Column="1" VerticalAlignment="Stretch"
|
|
ToolTip.Tip="Show password" AutomationProperties.Name="Show password">
|
|
<PathIcon Data="{StaticResource EyeIcon}" Width="16" Height="16" />
|
|
</ToggleButton>
|
|
</Grid>
|
|
</StackPanel>
|
|
<TextBlock Text="The password is saved encrypted for this Windows user, like the other accounts."
|
|
Foreground="#9AA8B3" TextWrapping="Wrap" />
|
|
|
|
<TextBlock Text="Log in as" Foreground="#EAF0F4" />
|
|
<ComboBox x:Name="LoginAsBox" HorizontalAlignment="Stretch" />
|
|
<TextBlock x:Name="LoginAsHintText" Foreground="#9AA8B3" TextWrapping="Wrap" />
|
|
|
|
<TextBlock x:Name="ValidationText" Foreground="#E2B348" TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8" Margin="0,16,0,0">
|
|
<Button x:Name="CancelButton" Content="Cancel" />
|
|
<Button x:Name="LoginButton" Content="Log In" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|