Skip to content

Commit

Permalink
Changed "Strength" page icons to filled icons (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Oct 13, 2021
1 parent c63f70d commit d96b695
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Binary file added Passliss/Fonts/FluentSystemIcons-Filled.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion Passliss/Pages/StrenghtPage.xaml
Expand Up @@ -30,7 +30,7 @@
</StackPanel>

<StackPanel Grid.Row="1">
<TextBlock x:Name="IconTxt" Margin="10" Text="&#xEA38;" Foreground="{Binding Source={StaticResource Gray}}" FontFamily="..\Fonts\#FluentlyIcons" FontSize="72" HorizontalAlignment="Center"/>
<TextBlock x:Name="IconTxt" Margin="10" Text="&#xEA38;" Foreground="{Binding Source={StaticResource Gray}}" FontFamily="..\Fonts\#FluentSystemIcons-Filled" FontSize="72" HorizontalAlignment="Center"/>
<TextBlock x:Name="CommentTxt" Text="{x:Static lang:Resources.EnterPassword}" Foreground="{Binding Source={StaticResource Foreground1}}" HorizontalAlignment="Center" FontWeight="Bold" FontSize="16" Margin="0,0,0,15"/>
</StackPanel>

Expand Down
10 changes: 5 additions & 5 deletions Passliss/Pages/StrenghtPage.xaml.cs
Expand Up @@ -55,11 +55,11 @@ private string GetStrenghtCaracter(PasswordStrenght passwordStrenght)
{
return passwordStrenght switch
{
PasswordStrenght.VeryGood => "", // If the password strenght is very good
PasswordStrenght.Good => "", // If the password strenght is good
PasswordStrenght.Medium => "", // If the password strenght is medium
PasswordStrenght.Low => "", // If the password strenght is low
_ => "" // If the password strenght is unknown
PasswordStrenght.VeryGood => "\uF29D", // If the password strenght is very good
PasswordStrenght.Good => "\uF299", // If the password strenght is good
PasswordStrenght.Medium => "\uF882", // If the password strenght is medium
PasswordStrenght.Low => "\uF36E", // If the password strenght is low
_ => "\uF4AB" // If the password strenght is unknown
};
}

Expand Down
4 changes: 4 additions & 0 deletions Passliss/Passliss.csproj
Expand Up @@ -21,6 +21,7 @@

<ItemGroup>
<None Remove="Fonts\FluentlyIcons.ttf" />
<None Remove="Fonts\FluentSystemIcons-Filled.ttf" />
<None Remove="Fonts\FluentSystemIcons-Regular.ttf" />
<None Remove="Fonts\Montserrat-Bold.ttf" />
<None Remove="Fonts\Montserrat-Regular.ttf" />
Expand Down Expand Up @@ -60,6 +61,9 @@
<Resource Include="Fonts\FluentlyIcons.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Resource Include="Fonts\FluentSystemIcons-Filled.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Resource Include="Fonts\FluentSystemIcons-Regular.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
Expand Down

0 comments on commit d96b695

Please sign in to comment.