Project_Keywi/Project.View/NewEntry/NewEntry.axaml

113 lines
4.1 KiB
XML

<UserControl
Height="500"
Width="350"
x:Class="Project.View.NewEntry"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Styles>
<Style Selector="TextBlock">
<Setter Property="FontSize" Value="14" />
<Setter Property="FontWeight" Value="Medium" />
<Setter Property="Margin" Value="0,10,0,5" />
</Style>
<Style Selector="TextBox">
<Setter Property="Height" Value="40" />
<Setter Property="Margin" Value="0,0,0,10" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
<Style Selector="Button">
<Setter Property="Height" Value="35" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="Margin" Value="5" />
<Setter Property="Padding" Value="15,0" />
</Style>
</UserControl.Styles>
<Border
Background="White"
BoxShadow="0 4 8 0 #40000000"
CornerRadius="8"
Margin="10">
<Grid Margin="20">
<StackPanel>
<TextBlock
FontSize="24"
FontWeight="Bold"
Foreground="Gray"
HorizontalAlignment="Center"
Margin="0,0,0,20"
Text="New Entry" />
<TextBlock Text="Name:" />
<TextBox Watermark="Enter Name" x:Name="NameBox" />
<TextBlock Text="Username/E-Mail:" />
<TextBox Watermark="Enter username or email" x:Name="UsernameMailBox" />
<TextBlock Text="URL:" />
<TextBox Watermark="Enter URL" x:Name="URLBox" />
<TextBlock Text="Password:" />
<Grid ColumnDefinitions="*, Auto, Auto">
<TextBox
Grid.Column="0"
Name="NewentryPW"
PasswordChar="•"
Watermark="Enter password"
x:Name="PassBox" />
<Button
Background="#4CAF50"
Foreground="White"
Grid.Column="1"
IsEnabled="False"
Name="newentry_generate_password"
ToolTip.Tip="Generate secure password (WORK IN PROGRESS)">
🔒
</Button>
<Button
Background="#607D8B"
Click="NewEntry_ShowPW_Click"
Content="👁"
Foreground="White"
Grid.Column="2"
Name="newentry_show_password" />
</Grid>
<TextBlock Text="Note:" />
<TextBox
AcceptsReturn="True"
Height="80"
Watermark="Your note:"
x:Name="NoteBox" />
<StackPanel
HorizontalAlignment="Center"
Margin="0,20,0,0"
Orientation="Horizontal">
<Button
Background="#4CAF50"
Click="NewEntry_Save_Click"
Content="Save"
Foreground="White"
Name="newentry_save_button" />
<Button
Background="#FF5722"
Click="NewEntry_Cancel_Click"
Content="Cancel"
Foreground="White"
Name="newentry_cancel_button" />
</StackPanel>
</StackPanel>
</Grid>
</Border>
</UserControl>