Skip to content

Commit 54c6eaa

Browse files
committed
Add see more uri button
1 parent 749dcc6 commit 54c6eaa

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@
365365
<system:String x:Key="LogLevelINFO">Info</system:String>
366366
<system:String x:Key="settingWindowFontTitle">Setting Window Font</system:String>
367367

368+
<!-- Release Notes Window -->
369+
<system:String x:Key="seeMoreReleaseNotes">See more release notes on GitHub</system:String>
370+
368371
<!-- FileManager Setting Dialog -->
369372
<system:String x:Key="fileManagerWindow">Select File Manager</system:String>
370373
<system:String x:Key="fileManager_learnMore">Learn more</system:String>

Flow.Launcher/ReleaseNotesWindow.xaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
x:Class="Flow.Launcher.ReleaseNotesWindow"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls"
56
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
67
xmlns:local="clr-namespace:Flow.Launcher"
78
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@@ -42,6 +43,7 @@
4243
<Grid.RowDefinitions>
4344
<RowDefinition Height="32" />
4445
<RowDefinition />
46+
<RowDefinition />
4547
</Grid.RowDefinitions>
4648
<!-- TitleBar and Control -->
4749
<Image
@@ -153,9 +155,17 @@
153155
</Path>
154156
</Button>
155157

158+
<Grid
159+
Grid.Row="1"
160+
Grid.Column="0"
161+
Grid.ColumnSpan="5"
162+
Margin="10 0 20 0">
163+
<cc:HyperLink x:Name="SeeMore" Text="{DynamicResource seeMoreReleaseNotes}" />
164+
</Grid>
165+
156166
<mdxam:MarkdownScrollViewer
157167
x:Name="MarkdownViewer"
158-
Grid.Row="1"
168+
Grid.Row="2"
159169
Grid.Column="0"
160170
Grid.ColumnSpan="5"
161171
Height="510"
@@ -168,7 +178,7 @@
168178

169179
<!-- Put this Grid in the same position as MarkdownViewer -->
170180
<Grid
171-
Grid.Row="1"
181+
Grid.Row="2"
172182
Grid.Column="0"
173183
Grid.ColumnSpan="5"
174184
Height="510"

Flow.Launcher/ReleaseNotesWindow.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ namespace Flow.Launcher
1515
{
1616
public partial class ReleaseNotesWindow : Window
1717
{
18+
private static readonly string ReleaseNotes = Properties.Settings.Default.GithubRepo + "/releases";
19+
1820
public ReleaseNotesWindow()
1921
{
2022
InitializeComponent();
23+
SeeMore.Uri = ReleaseNotes;
2124
ModernWpf.ThemeManager.Current.ActualApplicationThemeChanged += ThemeManager_ActualApplicationThemeChanged;
2225
}
2326

0 commit comments

Comments
 (0)