mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Clearer clipboard action toast messages
Created a top menu button style
This commit is contained in:
@@ -385,13 +385,13 @@
|
|||||||
<value>History</value>
|
<value>History</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToastCopyLogin.Message" xml:space="preserve">
|
<data name="ToastCopyLogin.Message" xml:space="preserve">
|
||||||
<value>Login successfully copied!</value>
|
<value>Login copied to clipboard</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToastCopyPassword.Message" xml:space="preserve">
|
<data name="ToastCopyPassword.Message" xml:space="preserve">
|
||||||
<value>Password successfully copied!</value>
|
<value>Password copied to clipboard</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToastCopyUrl.Message" xml:space="preserve">
|
<data name="ToastCopyUrl.Message" xml:space="preserve">
|
||||||
<value>URL successfully copied!</value>
|
<value>URL copied to clipboard</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="EntryBackgroundColor.Text" xml:space="preserve">
|
<data name="EntryBackgroundColor.Text" xml:space="preserve">
|
||||||
<value>Background color</value>
|
<value>Background color</value>
|
||||||
|
@@ -385,13 +385,13 @@
|
|||||||
<value>Historique</value>
|
<value>Historique</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToastCopyLogin.Message" xml:space="preserve">
|
<data name="ToastCopyLogin.Message" xml:space="preserve">
|
||||||
<value>Login copié avec succès !</value>
|
<value>Login copié dans le presse-papiers</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToastCopyPassword.Message" xml:space="preserve">
|
<data name="ToastCopyPassword.Message" xml:space="preserve">
|
||||||
<value>Mot de passe copié avec succès !</value>
|
<value>Mot de passe copié dans le presse-papiers</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ToastCopyUrl.Message" xml:space="preserve">
|
<data name="ToastCopyUrl.Message" xml:space="preserve">
|
||||||
<value>URL copié avec succès !</value>
|
<value>URL copié dans le presse-papiers</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="EntryBackgroundColor.Text" xml:space="preserve">
|
<data name="EntryBackgroundColor.Text" xml:space="preserve">
|
||||||
<value>Couleur d'arrière plan</value>
|
<value>Couleur d'arrière plan</value>
|
||||||
|
@@ -5,23 +5,34 @@
|
|||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
<UserControl.Resources>
|
||||||
|
<Style BasedOn="{StaticResource NoBorderButtonStyle}" TargetType="Button" x:Key="MenuButtonStyle" >
|
||||||
|
<Setter Property="Padding" Value="25,0,25,0" />
|
||||||
|
<Setter Property="Background" Value="{ThemeResource ToggleButtonBackgroundThemeBrush}" />
|
||||||
|
<Setter Property="Height" Value="{StaticResource MenuSize}" />
|
||||||
|
</Style>
|
||||||
|
<Style BasedOn="{StaticResource NoBorderToggleButtonStyle}" TargetType="ToggleButton" x:Key="MenuToggleButtonStyle" >
|
||||||
|
<Setter Property="Padding" Value="25,0,25,0" />
|
||||||
|
<Setter Property="Height" Value="{StaticResource MenuSize}" />
|
||||||
|
</Style>
|
||||||
|
</UserControl.Resources>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<StackPanel Orientation="Horizontal" Visibility="{Binding OverflowButtonsVisibility, ElementName=UserControl}">
|
<StackPanel Orientation="Horizontal" Visibility="{Binding OverflowButtonsVisibility, ElementName=UserControl}">
|
||||||
<Button Command="{Binding RestoreCommand, ElementName=UserControl}" Visibility="{Binding RestoreButtonVisibility, ElementName=UserControl}" IsEnabled="{Binding IsRestoreButtonEnabled,ElementName=UserControl}" Click="RestoreButton_Click" Style="{StaticResource NoBorderButtonStyle}" Background="{ThemeResource ToggleButtonBackgroundThemeBrush}" Height="{StaticResource MenuSize}" Padding="25,0,25,0">
|
<Button Command="{Binding RestoreCommand, ElementName=UserControl}" Visibility="{Binding RestoreButtonVisibility, ElementName=UserControl}" IsEnabled="{Binding IsRestoreButtonEnabled,ElementName=UserControl}" Click="RestoreButton_Click" Style="{StaticResource MenuButtonStyle}">
|
||||||
<SymbolIcon Symbol="Undo">
|
<SymbolIcon Symbol="Undo">
|
||||||
<ToolTipService.ToolTip>
|
<ToolTipService.ToolTip>
|
||||||
<ToolTip x:Uid="TopMenuRestoreButton" />
|
<ToolTip x:Uid="TopMenuRestoreButton" />
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
</SymbolIcon>
|
</SymbolIcon>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding SaveCommand, ElementName=UserControl}" Style="{StaticResource NoBorderButtonStyle}" Background="{ThemeResource ToggleButtonBackgroundThemeBrush}" Height="{StaticResource MenuSize}" Padding="25,0,25,0">
|
<Button Command="{Binding SaveCommand, ElementName=UserControl}" Style="{StaticResource MenuButtonStyle}">
|
||||||
<SymbolIcon Symbol="Save">
|
<SymbolIcon Symbol="Save">
|
||||||
<ToolTipService.ToolTip>
|
<ToolTipService.ToolTip>
|
||||||
<ToolTip x:Uid="TopMenuSaveButton" />
|
<ToolTip x:Uid="TopMenuSaveButton" />
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
</SymbolIcon>
|
</SymbolIcon>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Visibility="{Binding SortButtonVisibility, ElementName=UserControl}" Style="{StaticResource NoBorderButtonStyle}" Background="{ThemeResource ToggleButtonBackgroundThemeBrush}" Height="{StaticResource MenuSize}" Padding="25,0,25,0">
|
<Button Visibility="{Binding SortButtonVisibility, ElementName=UserControl}" Style="{StaticResource MenuButtonStyle}">
|
||||||
<SymbolIcon Symbol="Sort">
|
<SymbolIcon Symbol="Sort">
|
||||||
<ToolTipService.ToolTip>
|
<ToolTipService.ToolTip>
|
||||||
<ToolTip x:Uid="TopMenuSortButton" />
|
<ToolTip x:Uid="TopMenuSortButton" />
|
||||||
@@ -34,14 +45,14 @@
|
|||||||
</MenuFlyout>
|
</MenuFlyout>
|
||||||
</Button.Flyout>
|
</Button.Flyout>
|
||||||
</Button>
|
</Button>
|
||||||
<ToggleButton Command="{Binding EditCommand, ElementName=UserControl}" IsChecked="{Binding IsEditButtonChecked, ElementName=UserControl, Mode=TwoWay}" Checked="EditButton_Click" Style="{StaticResource NoBorderToggleButtonStyle}" Height="{StaticResource MenuSize}" Padding="25,0,25,0">
|
<ToggleButton Command="{Binding EditCommand, ElementName=UserControl}" IsChecked="{Binding IsEditButtonChecked, ElementName=UserControl, Mode=TwoWay}" Checked="EditButton_Click" Style="{StaticResource MenuToggleButtonStyle}">
|
||||||
<SymbolIcon Symbol="Edit">
|
<SymbolIcon Symbol="Edit">
|
||||||
<ToolTipService.ToolTip>
|
<ToolTipService.ToolTip>
|
||||||
<ToolTip x:Uid="TopMenuEditButton" />
|
<ToolTip x:Uid="TopMenuEditButton" />
|
||||||
</ToolTipService.ToolTip>
|
</ToolTipService.ToolTip>
|
||||||
</SymbolIcon>
|
</SymbolIcon>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
<Button Command="{Binding DeleteCommand, ElementName=UserControl}" IsEnabled="{Binding IsDeleteButtonEnabled, ElementName=UserControl}" Visibility="{Binding DeleteButtonVisibility, ElementName=UserControl}" Click="DeleteButton_Click" Style="{StaticResource NoBorderButtonStyle}" Background="{ThemeResource ToggleButtonBackgroundThemeBrush}" Height="{StaticResource MenuSize}" Padding="25,0,25,0">
|
<Button Command="{Binding DeleteCommand, ElementName=UserControl}" IsEnabled="{Binding IsDeleteButtonEnabled, ElementName=UserControl}" Visibility="{Binding DeleteButtonVisibility, ElementName=UserControl}" Click="DeleteButton_Click" Style="{StaticResource MenuButtonStyle}">
|
||||||
<SymbolIcon Symbol="Delete">
|
<SymbolIcon Symbol="Delete">
|
||||||
<ToolTipService.ToolTip>
|
<ToolTipService.ToolTip>
|
||||||
<ToolTip x:Uid="TopMenuDeleteButton" />
|
<ToolTip x:Uid="TopMenuDeleteButton" />
|
||||||
@@ -49,7 +60,7 @@
|
|||||||
</SymbolIcon>
|
</SymbolIcon>
|
||||||
</Button>
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Button Visibility="{Binding MoreButtonVisibility, ElementName=UserControl}" Style="{StaticResource NoBorderButtonStyle}" Background="{ThemeResource ToggleButtonBackgroundThemeBrush}" Height="{StaticResource MenuSize}" Padding="25,0,25,0">
|
<Button Visibility="{Binding MoreButtonVisibility, ElementName=UserControl}" Style="{StaticResource MenuButtonStyle}">
|
||||||
<SymbolIcon Symbol="More" />
|
<SymbolIcon Symbol="More" />
|
||||||
<Button.Flyout>
|
<Button.Flyout>
|
||||||
<MenuFlyout Opening="OverflowFlyout_OnOpening">
|
<MenuFlyout Opening="OverflowFlyout_OnOpening">
|
||||||
|
Reference in New Issue
Block a user