File tree Expand file tree Collapse file tree 5 files changed +29
-8
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 5 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public static class Constant
45
45
public const string Logs = "Logs" ;
46
46
47
47
public const string Website = "https://flowlauncher.com" ;
48
+ public const string SponsorPage = "https://github.com/sponsors/Flow-Launcher" ;
48
49
public const string GitHub = "https://github.com/Flow-Launcher/Flow.Launcher" ;
49
50
public const string Docs = "https://flowlauncher.com/docs" ;
50
51
}
Original file line number Diff line number Diff line change 191
191
<system : String x : Key =" icons" >Icons</system : String >
192
192
<system : String x : Key =" about_activate_times" >You have activated Flow Launcher {0} times</system : String >
193
193
<system : String x : Key =" checkUpdates" >Check for Updates</system : String >
194
+ <system : String x : Key =" BecomeASponsor" >Become A Sponsor</system : String >
194
195
<system : String x : Key =" newVersionTips" >New version {0} is available, would you like to restart Flow Launcher to use the update?</system : String >
195
196
<system : String x : Key =" checkUpdatesFailed" >Check updates failed, please check your connection and proxy settings to api.github.com.</system : String >
196
197
<system : String x : Key =" downloadUpdatesFailed" >
Original file line number Diff line number Diff line change 1
- <Window
1
+ <Window
2
2
x : Class =" Flow.Launcher.SettingWindow"
3
3
xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4
4
xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
2848
2848
Text =" {Binding Version}" />
2849
2849
<TextBlock Style =" {DynamicResource SettingSubTitleLabel}" Text =" {DynamicResource version}" />
2850
2850
</StackPanel >
2851
- <Button
2852
- Grid.Column=" 1"
2853
- Margin =" 0,0,-14,0"
2854
- HorizontalAlignment =" Right"
2855
- Click =" OnCheckUpdates"
2856
- Content =" {DynamicResource checkUpdates}"
2857
- Style =" {StaticResource AccentButtonStyle}" />
2851
+ <StackPanel Grid.Column=" 2" Orientation =" Horizontal" >
2852
+ <Button
2853
+ Margin =" 0,0,10,0"
2854
+ HorizontalAlignment =" Right"
2855
+ Click =" OnCheckUpdates"
2856
+ Content =" {DynamicResource checkUpdates}" />
2857
+ <Button
2858
+ Margin =" 0,0,14,0"
2859
+ Padding =" 0"
2860
+ HorizontalAlignment =" Right"
2861
+ Style =" {StaticResource AccentButtonStyle}" >
2862
+ <Hyperlink
2863
+ NavigateUri =" {Binding SponsorPage, Mode=OneWay}"
2864
+ RequestNavigate =" OnRequestNavigate"
2865
+ TextDecorations =" None" >
2866
+ <TextBlock
2867
+ Padding =" 10,5,10,5"
2868
+ Foreground =" White"
2869
+ Text =" {DynamicResource BecomeASponsor}" />
2870
+ </Hyperlink >
2871
+ </Button >
2872
+
2873
+ </StackPanel >
2858
2874
<TextBlock Style =" {StaticResource Glyph}" >
2859
2875

2860
2876
</TextBlock >
Original file line number Diff line number Diff line change 10
10
using ModernWpf ;
11
11
using ModernWpf . Controls ;
12
12
using System ;
13
+ using System . Diagnostics ;
13
14
using System . IO ;
15
+ using System . Security . Policy ;
14
16
using System . Windows ;
15
17
using System . Windows . Data ;
16
18
using System . Windows . Forms ;
Original file line number Diff line number Diff line change @@ -799,6 +799,7 @@ public bool ShortcutExists(string key)
799
799
#region about
800
800
801
801
public string Website => Constant . Website ;
802
+ public string SponsorPage => Constant . SponsorPage ;
802
803
public string ReleaseNotes => _updater . GitHubRepository + @"/releases/latest" ;
803
804
public string Documentation => Constant . Documentation ;
804
805
public string Docs => Constant . Docs ;
You can’t perform that action at this time.
0 commit comments