mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-05-08 09:26:30 +03:00
add logo instead of text in RepositoryWindow
This commit is contained in:
@@ -15,27 +15,23 @@
|
|||||||
<Window.DataTemplates>
|
<Window.DataTemplates>
|
||||||
<DataTemplate DataType="{x:Type vm:UnlockedRepositoryViewModel}">
|
<DataTemplate DataType="{x:Type vm:UnlockedRepositoryViewModel}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<!-- Синий левый край -->
|
<!-- Синий левый край -->
|
||||||
<Border Width="200"
|
<Border Width="224"
|
||||||
Background="#2328C4"
|
Background="#2A2ABB"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch">
|
||||||
|
|
||||||
<StackPanel Margin="20" HorizontalAlignment="Left">
|
<StackPanel Margin="20" HorizontalAlignment="Left">
|
||||||
|
|
||||||
<!-- Надпись KeyKeeper -->
|
<Svg Path="/Assets/logo_en.svg"
|
||||||
<TextBlock Text="KeyKeeper"
|
Stretch="Uniform" />
|
||||||
FontSize="32"
|
|
||||||
FontWeight="Bold"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Margin="0,0,0,20"/>
|
|
||||||
|
|
||||||
<!-- Таймер блокировки под надписью KeyKeeper -->
|
<!-- Таймер блокировки под надписью KeyKeeper -->
|
||||||
<Border Background="#CC000000"
|
<Border Background="#CC000000"
|
||||||
CornerRadius="6"
|
CornerRadius="6"
|
||||||
Padding="8,4"
|
Padding="8,4"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Margin="0,0,0,12"
|
Margin="0,12,0,12"
|
||||||
IsVisible="{Binding $parent[Window].DataContext.LockTimerDisplay,
|
IsVisible="{Binding $parent[Window].DataContext.LockTimerDisplay,
|
||||||
Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
|
Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
|
||||||
|
|
||||||
@@ -43,64 +39,65 @@
|
|||||||
|
|
||||||
<!-- Иконка замка (Material Design lock outline) -->
|
<!-- Иконка замка (Material Design lock outline) -->
|
||||||
<Path Fill="White"
|
<Path Fill="White"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Width="13" Height="13"
|
Width="13" Height="13"
|
||||||
Stretch="Uniform"
|
Stretch="Uniform"
|
||||||
Data="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
|
Data="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
|
||||||
|
|
||||||
<TextBlock Text="{Binding $parent[Window].DataContext.LockTimerDisplay}"
|
<TextBlock Text="{Binding $parent[Window].DataContext.LockTimerDisplay}"
|
||||||
Foreground="White"
|
Foreground="White"
|
||||||
FontSize="13"
|
FontSize="13"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<!-- Рамочка -->
|
<!-- Рамочка -->
|
||||||
<!-- <Border BorderBrush="Gray"
|
<!-- <Border BorderBrush="Gray"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
CornerRadius="5"
|
CornerRadius="5"
|
||||||
Padding="20"
|
Padding="20"
|
||||||
Background="#F5F5F5"
|
Background="#F5F5F5"
|
||||||
HorizontalAlignment="Left">
|
HorizontalAlignment="Left">
|
||||||
|
|
||||||
<StackPanel HorizontalAlignment="Left">
|
<StackPanel HorizontalAlignment="Left">
|
||||||
<Button Content="All Passwords"
|
<Button Content="All Passwords"
|
||||||
Width="120"
|
Width="120"
|
||||||
Height="30"
|
Height="30"
|
||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
</Border> -->
|
</Border> -->
|
||||||
<!-- Save Passwords -->
|
<!-- Save Passwords -->
|
||||||
<Button Content="Save Passwords"
|
<Button Content="Save Passwords"
|
||||||
Classes="accentSidebarButton"
|
Classes="accentSidebarButton"
|
||||||
Click="SaveButton_Click"
|
Click="SaveButton_Click"
|
||||||
Height="30"
|
Height="30"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Margin="0,20,0,0"/>
|
Margin="0,20,0,0"/>
|
||||||
|
|
||||||
<!-- New Entry -->
|
<!-- New Entry -->
|
||||||
<Button Content="New Entry"
|
<Button Content="New Entry"
|
||||||
Classes="accentSidebarButton"
|
Classes="accentSidebarButton"
|
||||||
Click="AddEntryButton_Click"
|
Click="AddEntryButton_Click"
|
||||||
Height="30"
|
Height="30"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Margin="0,20,0,0"/>
|
Margin="0,20,0,0"/>
|
||||||
|
|
||||||
<!-- Edit Selected Entry -->
|
<!-- Edit Selected Entry -->
|
||||||
<Button Content="Edit Selected Entry"
|
<Button Content="Edit Selected Entry"
|
||||||
Classes="accentSidebarButton"
|
Classes="accentSidebarButton"
|
||||||
Click="EditEntryButton_Click"
|
Click="EditEntryButton_Click"
|
||||||
Height="30"
|
Height="30"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Margin="0,20,0,0"/>
|
Margin="0,20,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
|
||||||
<!-- ListBox с паролями -->
|
<!-- ListBox с паролями -->
|
||||||
<ListBox x:Name="PasswordsListBox"
|
<ListBox x:Name="PasswordsListBox"
|
||||||
Width="580"
|
Width="580"
|
||||||
Margin="210 10 10 10"
|
Margin="286 10 10 10"
|
||||||
ItemsSource="{Binding Passwords}"
|
ItemsSource="{Binding Passwords}"
|
||||||
Background="Transparent"
|
Background="Transparent"
|
||||||
SelectionMode="Single">
|
SelectionMode="Single">
|
||||||
|
|||||||
Reference in New Issue
Block a user