Skip to content

Commit 33aea8d

Browse files
committed
Add GitHub Sponsors link to about view
1 parent 88354b6 commit 33aea8d

File tree

7 files changed

+78
-57
lines changed

7 files changed

+78
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Install Vocup for Android directly from the Google Play Store. **Limited functio
2424

2525
### macOS
2626

27-
Vocup is going to support macOS in the future [#18](https://github.com/daniel-lerch/vocup/issues/18).
27+
Vocup is going to support macOS in the future [#18](https://github.com/daniel-lerch/vocup/issues/18).
2828

2929
### iOS
3030

src/Vocup.Desktop/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22

33
using Avalonia;
4-
using Avalonia.ReactiveUI;
4+
using ReactiveUI.Avalonia;
55

66
namespace Vocup.Desktop;
77

src/Vocup/Lang/Resources.Designer.cs

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Vocup/Lang/Resources.de.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
<data name="AboutView.Components" xml:space="preserve">
121121
<value>Komponenten</value>
122122
</data>
123+
<data name="AboutView.Donate" xml:space="preserve">
124+
<value>Spenden</value>
125+
</data>
123126
<data name="AboutView.Download" xml:space="preserve">
124127
<value>Herunterladen</value>
125128
</data>

src/Vocup/Lang/Resources.nl.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
<data name="AboutView.Components" xml:space="preserve">
121121
<value>Componenten</value>
122122
</data>
123+
<data name="AboutView.Donate" xml:space="preserve">
124+
<value>Doneer</value>
125+
</data>
123126
<data name="AboutView.Download" xml:space="preserve">
124127
<value>Download</value>
125128
</data>

src/Vocup/Lang/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
<data name="AboutView.Components" xml:space="preserve">
121121
<value>Components</value>
122122
</data>
123+
<data name="AboutView.Donate" xml:space="preserve">
124+
<value>Donate</value>
125+
</data>
123126
<data name="AboutView.Download" xml:space="preserve">
124127
<value>Download</value>
125128
</data>

src/Vocup/Views/AboutView.axaml

Lines changed: 57 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,63 @@
11
<UserControl xmlns="https://github.com/avaloniaui"
2-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5-
xmlns:lang="clr-namespace:Vocup.Lang;assembly=Vocup.Avalonia"
6-
xmlns:views="clr-namespace:Vocup.Views;assembly=Vocup.Avalonia"
7-
xmlns:vm="clr-namespace:Vocup.ViewModels;assembly=Vocup.Avalonia"
8-
mc:Ignorable="d" d:DesignWidth="450" d:DesignHeight="450"
9-
x:Class="Vocup.Views.AboutView"
10-
x:DataType="vm:AboutViewModel">
11-
<Design.DataContext>
12-
<vm:AboutDesignViewModel />
13-
</Design.DataContext>
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
4+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5+
xmlns:lang="clr-namespace:Vocup.Lang;assembly=Vocup.Avalonia"
6+
xmlns:views="clr-namespace:Vocup.Views;assembly=Vocup.Avalonia"
7+
xmlns:vm="clr-namespace:Vocup.ViewModels;assembly=Vocup.Avalonia"
8+
mc:Ignorable="d" d:DesignWidth="450" d:DesignHeight="450"
9+
x:Class="Vocup.Views.AboutView"
10+
x:DataType="vm:AboutViewModel">
11+
<Design.DataContext>
12+
<vm:AboutDesignViewModel />
13+
</Design.DataContext>
1414

15-
<UserControl.Styles>
16-
<Style Selector="Grid.properties HyperlinkButton">
17-
<Setter Property="CornerRadius" Value="0" />
18-
<Setter Property="Padding" Value="0" />
19-
<Setter Property="Margin" Value="12,4,4,4" />
20-
</Style>
21-
<Style Selector="Grid.properties HyperlinkButton:pointerover /template/ ContentPresenter#PART_ContentPresenter">
22-
<Setter Property="Background" Value="Transparent" />
23-
</Style>
24-
<Style Selector="Grid.properties TextBlock">
25-
<Setter Property="Margin" Value="4,4,12,4" />
26-
</Style>
27-
</UserControl.Styles>
15+
<UserControl.Styles>
16+
<Style Selector="Grid.properties HyperlinkButton">
17+
<Setter Property="CornerRadius" Value="0" />
18+
<Setter Property="Padding" Value="0" />
19+
<Setter Property="Margin" Value="12,4,4,4" />
20+
</Style>
21+
<Style Selector="Grid.properties HyperlinkButton:pointerover /template/ ContentPresenter#PART_ContentPresenter">
22+
<Setter Property="Background" Value="Transparent" />
23+
</Style>
24+
<Style Selector="Grid.properties TextBlock">
25+
<Setter Property="Margin" Value="4,4,12,4" />
26+
</Style>
27+
</UserControl.Styles>
2828

29-
<ScrollViewer>
30-
<StackPanel Grid.IsSharedSizeScope="True">
31-
<Image Source="/Assets/legacy-rectangle-logo.png" Width="248" Margin="8" />
32-
<TextBlock Text="{Binding Version}" FontWeight="SemiBold" TextAlignment="Center" Margin="8" />
33-
<TextBlock Text="{Binding Copyright}" TextAlignment="Center" TextWrapping="Wrap" Margin="8" />
34-
<Grid Margin="4" Classes="properties" HorizontalAlignment="Center">
35-
<Grid.RowDefinitions>
36-
<RowDefinition Height="Auto" />
37-
<RowDefinition Height="Auto" />
38-
<RowDefinition Height="Auto" />
39-
<RowDefinition Height="Auto" />
40-
</Grid.RowDefinitions>
41-
<Grid.ColumnDefinitions>
42-
<ColumnDefinition SharedSizeGroup="A" Width="*" />
43-
<ColumnDefinition SharedSizeGroup="B" Width="*" />
44-
</Grid.ColumnDefinitions>
29+
<ScrollViewer>
30+
<StackPanel Grid.IsSharedSizeScope="True">
31+
<Image Source="/Assets/legacy-rectangle-logo.png" Width="248" Margin="8" />
32+
<TextBlock Text="{Binding Version}" FontWeight="SemiBold" TextAlignment="Center" Margin="8" />
33+
<TextBlock Text="{Binding Copyright}" TextAlignment="Center" TextWrapping="Wrap" Margin="8" />
34+
<Grid Margin="4" Classes="properties" HorizontalAlignment="Center">
35+
<Grid.RowDefinitions>
36+
<RowDefinition Height="Auto" />
37+
<RowDefinition Height="Auto" />
38+
<RowDefinition Height="Auto" />
39+
<RowDefinition Height="Auto" />
40+
<RowDefinition Height="Auto" />
41+
</Grid.RowDefinitions>
42+
<Grid.ColumnDefinitions>
43+
<ColumnDefinition SharedSizeGroup="A" Width="*" />
44+
<ColumnDefinition SharedSizeGroup="B" Width="*" />
45+
</Grid.ColumnDefinitions>
4546

46-
<TextBlock Grid.Row="0" Margin="4" Text="{x:Static lang:Resources.AboutView_License}" />
47-
<HyperlinkButton Grid.Row="0" Grid.Column="1" Content="AGPL-3.0" NavigateUri="https://github.com/daniel-lerch/vocup/blob/master/LICENSE" />
48-
<TextBlock Grid.Row="1" Text="{x:Static lang:Resources.AboutView_SourceCode}" />
49-
<HyperlinkButton Grid.Row="1" Grid.Column="1" Content="{x:Static lang:Resources.AboutView_VocupOnGithub}" NavigateUri="https://github.com/daniel-lerch/vocup" />
50-
<TextBlock Grid.Row="2" Text="{x:Static lang:Resources.AboutView_Download}" />
51-
<HyperlinkButton Grid.Row="2" Grid.Column="1" Content="Microsoft Store" NavigateUri="{Binding MicrosoftStoreLink}" />
52-
<TextBlock Grid.Row="3" Text="{x:Static lang:Resources.AboutView_Mail}" />
53-
<HyperlinkButton Grid.Row="3" Grid.Column="1" Content="daniel.dev@lerchen.net" NavigateUri="mailto:daniel.dev@lerchen.net" />
54-
</Grid>
55-
<TextBlock Text="{x:Static lang:Resources.AboutView_Components}" FontWeight="SemiBold" TextAlignment="Center" Margin="8"/>
56-
<views:LicensesControl DataContext="{Binding Licenses}" Margin="4" HorizontalAlignment="Center" />
57-
</StackPanel>
58-
</ScrollViewer>
47+
<TextBlock Grid.Row="0" Margin="4" Text="{x:Static lang:Resources.AboutView_License}" />
48+
<HyperlinkButton Grid.Row="0" Grid.Column="1" Content="AGPL-3.0" NavigateUri="https://github.com/daniel-lerch/vocup/blob/master/LICENSE" />
49+
<TextBlock Grid.Row="1" Text="{x:Static lang:Resources.AboutView_SourceCode}" />
50+
<HyperlinkButton Grid.Row="1" Grid.Column="1" Content="{x:Static lang:Resources.AboutView_VocupOnGithub}" NavigateUri="https://github.com/daniel-lerch/vocup" />
51+
<TextBlock Grid.Row="2" Text="{x:Static lang:Resources.AboutView_Download}" />
52+
<HyperlinkButton Grid.Row="2" Grid.Column="1" Content="Microsoft Store" NavigateUri="{Binding MicrosoftStoreLink}" />
53+
<TextBlock Grid.Row="3" Text="{x:Static lang:Resources.AboutView_Mail}" />
54+
<HyperlinkButton Grid.Row="3" Grid.Column="1" Content="daniel.dev@lerchen.net" NavigateUri="mailto:daniel.dev@lerchen.net" />
55+
<TextBlock Grid.Row="4" Text="{x:Static lang:Resources.AboutView_Donate}" />
56+
<HyperlinkButton Grid.Row="4" Grid.Column="1" Content="GitHub Sponsors" NavigateUri="https://github.com/sponsors/daniel-lerch" />
57+
</Grid>
58+
<TextBlock Text="{x:Static lang:Resources.AboutView_Components}" FontWeight="SemiBold" TextAlignment="Center" Margin="8"/>
59+
<views:LicensesControl DataContext="{Binding Licenses}" Margin="4" HorizontalAlignment="Center" />
60+
</StackPanel>
61+
</ScrollViewer>
5962

6063
</UserControl>

0 commit comments

Comments
 (0)