mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add Become A Sponsor Button
This commit is contained in:
parent
9051e3ead3
commit
313a8b5f44
5 changed files with 30 additions and 8 deletions
|
|
@ -45,6 +45,7 @@ namespace Flow.Launcher.Infrastructure
|
|||
public const string Logs = "Logs";
|
||||
|
||||
public const string Website = "https://flowlauncher.com";
|
||||
public const string SponsorPage = "https://opencollective.com/flow-launcher";
|
||||
public const string GitHub = "https://github.com/Flow-Launcher/Flow.Launcher";
|
||||
public const string Docs = "https://flowlauncher.com/docs";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,6 +191,7 @@
|
|||
<system:String x:Key="icons">Icons</system:String>
|
||||
<system:String x:Key="about_activate_times">You have activated Flow Launcher {0} times</system:String>
|
||||
<system:String x:Key="checkUpdates">Check for Updates</system:String>
|
||||
<system:String x:Key="BecomeASponsor">Become A Sponsor</system:String>
|
||||
<system:String x:Key="newVersionTips">New version {0} is available, would you like to restart Flow Launcher to use the update?</system:String>
|
||||
<system:String x:Key="checkUpdatesFailed">Check updates failed, please check your connection and proxy settings to api.github.com.</system:String>
|
||||
<system:String x:Key="downloadUpdatesFailed">
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Window
|
||||
<Window
|
||||
x:Class="Flow.Launcher.SettingWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
|
|
@ -2848,13 +2848,30 @@
|
|||
Text="{Binding Version}" />
|
||||
<TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource version}" />
|
||||
</StackPanel>
|
||||
<Button
|
||||
Grid.Column="1"
|
||||
Margin="0,0,-14,0"
|
||||
HorizontalAlignment="Right"
|
||||
Click="OnCheckUpdates"
|
||||
Content="{DynamicResource checkUpdates}"
|
||||
Style="{StaticResource AccentButtonStyle}" />
|
||||
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
||||
<Button
|
||||
Margin="0,0,10,0"
|
||||
HorizontalAlignment="Right"
|
||||
Click="OnCheckUpdates"
|
||||
Content="{DynamicResource checkUpdates}" />
|
||||
<Button
|
||||
Margin="0,0,14,0"
|
||||
Padding="0"
|
||||
HorizontalAlignment="Right"
|
||||
Style="{StaticResource AccentButtonStyle}">
|
||||
<Hyperlink
|
||||
NavigateUri="{Binding SponsorPage, Mode=OneWay}"
|
||||
RequestNavigate="OnRequestNavigate"
|
||||
TextDecorations="None">
|
||||
|
||||
<TextBlock
|
||||
Padding="10,5,10,5"
|
||||
Foreground="White"
|
||||
Text="{DynamicResource BecomeASponsor}" />
|
||||
</Hyperlink>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
<TextBlock Style="{StaticResource Glyph}">
|
||||

|
||||
</TextBlock>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@ using Flow.Launcher.ViewModel;
|
|||
using ModernWpf;
|
||||
using ModernWpf.Controls;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Security.Policy;
|
||||
using System.Windows;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Forms;
|
||||
|
|
|
|||
|
|
@ -799,6 +799,7 @@ namespace Flow.Launcher.ViewModel
|
|||
#region about
|
||||
|
||||
public string Website => Constant.Website;
|
||||
public string SponsorPage => Constant.SponsorPage;
|
||||
public string ReleaseNotes => _updater.GitHubRepository + @"/releases/latest";
|
||||
public string Documentation => Constant.Documentation;
|
||||
public string Docs => Constant.Docs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue