Skip to content

Commit 9314c08

Browse files
committed
Added about text block
1 parent cf465b3 commit 9314c08

4 files changed

Lines changed: 25 additions & 14 deletions

File tree

CutCode/App.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@
167167
</Setter.Value>
168168
</Setter>
169169
</Style>
170-
171-
172170
</s:ApplicationLoader>
173171
</Application.Resources>
174172
</Application>

CutCode/Helpers/AppColors.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

CutCode/Views/SettingView.xaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,17 @@
9696
<RowDefinition Height="Auto"/>
9797
<RowDefinition Height="*"/>
9898
</Grid.RowDefinitions>
99-
<Label Grid.Row="0" Content="Shortcut key" Foreground="{Binding mainTextColor}"
99+
<Label Grid.Row="0" Content="About" Foreground="{Binding mainTextColor}"
100100
FontSize="20" Margin="20,10,0,0" FontFamily="{StaticResource poppins_semibold}"/>
101101
<Grid Grid.Row="1">
102-
102+
<TextBlock FontFamily="{StaticResource poppins_regular}" Foreground="{Binding mainTextColor}"
103+
Margin="27,6,20,0" FontSize="14" TextWrapping="Wrap">
104+
This app is an open-source project made by <Bold>Abdella Solomon</Bold> for the community. It boosts programmer's job by helping them save their snippets in a safe place.
105+
<LineBreak/>
106+
Connect with me on
107+
<local:ExternalBrowserHyperlink NavigateUri="https://github.com/Abdesol">Github</local:ExternalBrowserHyperlink> and
108+
<local:ExternalBrowserHyperlink NavigateUri="https://twitter.com/AbdellaSolomon">Twitter</local:ExternalBrowserHyperlink>.
109+
</TextBlock>
103110
</Grid>
104111
</Grid>
105112
</Border>

CutCode/Views/SettingView.xaml.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics;
34
using System.Linq;
45
using System.Text;
56
using System.Threading.Tasks;
@@ -24,5 +25,20 @@ public SettingView()
2425
{
2526
InitializeComponent();
2627
}
28+
29+
}
30+
31+
public class ExternalBrowserHyperlink : Hyperlink
32+
{
33+
public ExternalBrowserHyperlink()
34+
{
35+
RequestNavigate += OnRequestNavigate;
36+
}
37+
38+
private void OnRequestNavigate(object sender, RequestNavigateEventArgs e)
39+
{
40+
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri) { UseShellExecute = true });
41+
e.Handled = true;
42+
}
2743
}
2844
}

0 commit comments

Comments
 (0)