Skip to content

Commit c477bc5

Browse files
committed
Use AccentButton instead of Hyperlink
1 parent 1fdb3fc commit c477bc5

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

Flow.Launcher/SettingPages/ViewModels/SettingsPaneAboutViewModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,10 @@ private void OpenReleaseNotes()
321321
var releaseNotesWindow = new ReleaseNotesWindow();
322322
releaseNotesWindow.Show();
323323
}
324+
325+
[RelayCommand]
326+
private void OpenSponsorPage()
327+
{
328+
App.API.OpenUrl(SponsorPage);
329+
}
324330
}

Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@
4040
x:Name="UpdateAppButton"
4141
Command="{Binding UpdateAppCommand}"
4242
Content="{DynamicResource checkUpdates}" />
43-
<Button Height="{Binding ElementName=UpdateAppButton, Path=ActualHeight}" Style="{StaticResource AccentButtonStyle}">
44-
<Hyperlink
45-
NavigateUri="{Binding SponsorPage}"
46-
RequestNavigate="OnRequestNavigate"
47-
TextDecorations="None">
48-
<TextBlock Foreground="{StaticResource SystemControlForegroundAltHighBrush}" Text="{DynamicResource BecomeASponsor}" />
49-
</Hyperlink>
50-
</Button>
43+
<Button
44+
Height="{Binding ElementName=UpdateAppButton, Path=ActualHeight}"
45+
Command="{Binding OpenSponsorPageCommand}"
46+
Content="{DynamicResource BecomeASponsor}"
47+
Cursor="Hand"
48+
Style="{StaticResource AccentButtonStyle}" />
5149
</ikw:SimpleStackPanel>
5250
</ui:SettingsCard>
5351

Flow.Launcher/SettingPages/Views/SettingsPaneAbout.xaml.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,4 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
2828
}
2929
base.OnNavigatedTo(e);
3030
}
31-
32-
private void OnRequestNavigate(object sender, RequestNavigateEventArgs e)
33-
{
34-
App.API.OpenUrl(e.Uri.AbsoluteUri);
35-
e.Handled = true;
36-
}
3731
}

0 commit comments

Comments
 (0)