Skip to content

Commit

Permalink
Added new About section (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Aug 17, 2024
1 parent 78dba3c commit 453ae2f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
14 changes: 14 additions & 0 deletions ColorPicker/Pages/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
Padding="20"
HorizontalAlignment="Center"
Background="{DynamicResource CardBackground}"
BorderBrush="{DynamicResource LightAccentColor}"
BorderThickness="1"
CornerRadius="5">
<Border.Effect>
<DropShadowEffect
Expand Down Expand Up @@ -108,6 +110,18 @@
FontSize="14"
Foreground="{DynamicResource Foreground1}"
Style="{DynamicResource DefaultButton}" />
<Button
x:Name="GitHubBtn"
Margin="5"
Padding="3"
VerticalAlignment="Center"
Background="{DynamicResource Background3}"
Click="GitHubBtn_Click"
Content="&#xF1FB;"
FontFamily="..\Fonts\#FluentSystemIcons-Regular"
FontSize="14"
Foreground="{DynamicResource Foreground1}"
Style="{DynamicResource DefaultButton}" />
</StackPanel>
</StackPanel>
</Border>
Expand Down
7 changes: 6 additions & 1 deletion ColorPicker/Pages/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,12 @@ private void UpperCaseHexChk_Checked(object sender, RoutedEventArgs e)
XmlSerializerManager.SaveToXml(Global.Settings, Global.SettingsPath);
}

private void ResetSynethiaLink_Click(object sender, RoutedEventArgs e)
private void GitHubBtn_Click(object sender, RoutedEventArgs e)
{
Process.Start("explorer.exe", "https://github.com/Leo-Corporation/ColorPicker");
}

private void ResetSynethiaLink_Click(object sender, RoutedEventArgs e)
{
// Ask the user a confirmation
if (MessageBox.Show(Properties.Resources.SynethiaDeleteMsg, Properties.Resources.Settings, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.No)
Expand Down

0 comments on commit 453ae2f

Please sign in to comment.