Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
Added "Credits" window (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Apr 20, 2022
1 parent 43abfc8 commit 7b365a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Gerayis/Pages/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,13 @@
<TextBlock Text="{x:Static lang:Resources.SeeLicenses}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
</StackPanel>
<Button x:Name="CreditsBtn" Foreground="{Binding Source={StaticResource AccentColor}}" FontSize="14" FontWeight="Bold" Cursor="Hand" Click="CreditsBtn_Click" HorizontalAlignment="Left" Style="{DynamicResource LinkButtonStyle}" Padding="5" Margin="0,0,10,10" Background="{x:Null}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="&#xF583;" FontFamily="..\Fonts\#FluentSystemIcons-Regular" FontWeight="Regular" Margin="0,0,10,0" VerticalAlignment="Center"/>
<TextBlock Text="{x:Static lang:Resources.CreditsAndThanks}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
</StackPanel>
</Expander>
</StackPanel>
</Grid>
Expand Down
9 changes: 9 additions & 0 deletions Gerayis/Pages/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -645,4 +645,13 @@ private void QrCodePageBorder_MouseLeftButtonUp(object sender, MouseButtonEventA
Global.Settings.StartupPage = AppPages.QRCode; // Set
SettingsManager.Save(); // Save changes
}

private void CreditsBtn_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show($"{Properties.Resources.CreditsAndThanks}\n\n" +
$"@dependabot\n" +
$"@Leo-Peyronnet\n" +
$"@wcxu21",
Properties.Resources.CreditsAndThanks, MessageBoxButton.OK, MessageBoxImage.Information);
}
}

0 comments on commit 7b365a2

Please sign in to comment.