Skip to content

Commit e67fe57

Browse files
committed
Improve ReleaseNotesWindow
1 parent 78e8f85 commit e67fe57

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Flow.Launcher/ReleaseNotesWindow.xaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
MinHeight="600"
1717
Background="{DynamicResource PopuBGColor}"
1818
Closed="Window_Closed"
19+
DataContext="{Binding RelativeSource={RelativeSource Self}}"
1920
Foreground="{DynamicResource PopupTextColor}"
2021
Loaded="Window_Loaded"
2122
ResizeMode="CanResize"
@@ -44,7 +45,7 @@
4445
</Grid.ColumnDefinitions>
4546
<Grid.RowDefinitions>
4647
<RowDefinition Height="32" />
47-
<RowDefinition Height="24" />
48+
<RowDefinition Height="Auto" />
4849
<RowDefinition Height="*" />
4950
</Grid.RowDefinitions>
5051
<!-- TitleBar and Control -->
@@ -161,8 +162,11 @@
161162
Grid.Row="1"
162163
Grid.Column="0"
163164
Grid.ColumnSpan="5"
164-
Margin="18 0 18 0">
165-
<cc:HyperLink x:Name="SeeMore" Text="{DynamicResource seeMoreReleaseNotes}" />
165+
Margin="8 0 18 0">
166+
<ui:HyperlinkButton
167+
x:Name="SeeMore"
168+
Content="{DynamicResource seeMoreReleaseNotes}"
169+
NavigateUri="{Binding ReleaseNotes}" />
166170
</Grid>
167171

168172
<!-- Do not use scroll function of MarkdownViewer because it does not support smooth scroll -->

Flow.Launcher/ReleaseNotesWindow.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ namespace Flow.Launcher
1616
{
1717
public partial class ReleaseNotesWindow : Window
1818
{
19-
private static readonly string ReleaseNotes = Properties.Settings.Default.GithubRepo + "/releases";
19+
public string ReleaseNotes => Properties.Settings.Default.GithubRepo + "/releases";
2020

2121
public ReleaseNotesWindow()
2222
{
2323
InitializeComponent();
24-
SeeMore.Uri = ReleaseNotes;
2524
ThemeManager.Current.ActualApplicationThemeChanged += ThemeManager_ActualApplicationThemeChanged;
2625
}
2726

0 commit comments

Comments
 (0)