Skip to content

Commit

Permalink
Replace KoFi with Github Sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerra24 committed Aug 12, 2024
1 parent 08610a5 commit 5941784
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 17 deletions.
1 change: 1 addition & 0 deletions LRReader.Shared/ViewModels/Base/TankoubonBaseViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ private async Task Delete()
{
WeakReferenceMessenger.Default.Send(new DeleteTankoubonMessage(Tankoubon));
Tabs.CloseTabWithId("Tankoubon_" + Tankoubon.id);
Tabs.CloseTabWithId("TankoubonEdit_" + Tankoubon.id);
await TankoubonsProvider.DeleteTankoubon(Tankoubon.id);
}
}
Expand Down
Binary file removed LRReader.UWP/Assets/Other/Ko-fi.png
Binary file not shown.
3 changes: 1 addition & 2 deletions LRReader.UWP/LRReader.UWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@
<Content Include="Assets\LargeTile.scale-400.png" />
<Content Include="Assets\Other\GitHub-light.png" />
<Content Include="Assets\Other\GitHub-dark.png" />
<Content Include="Assets\Other\Ko-fi.png" />
<Content Include="Assets\Other\LANraragi-dark.png" />
<Content Include="Assets\Other\LANraragi-light.png" />
<Content Include="Assets\SmallTile.scale-100.png" />
Expand Down Expand Up @@ -448,7 +447,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Labs.Uwp.TokenView">
<Version>0.1.240731-build.1703</Version>
<Version>0.1.240801-build.1708</Version>
</PackageReference>
<PackageReference Include="CommunityToolkit.Uwp.Animations">
<Version>8.0.240109</Version>
Expand Down
2 changes: 1 addition & 1 deletion LRReader.UWP/Strings/en/Settings.resw
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<data name="About.Github.Description" xml:space="preserve">
<value>Source code, suggestions and support</value>
</data>
<data name="About.KoFi.Description" xml:space="preserve">
<data name="About.GhSponsor.Description" xml:space="preserve">
<value>Donations</value>
</data>
<data name="About.License.Content" xml:space="preserve">
Expand Down
2 changes: 1 addition & 1 deletion LRReader.UWP/Strings/es/Settings.resw
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<data name="About.Github.Description" xml:space="preserve">
<value>Código fuente, sugerencias y soporte técnico</value>
</data>
<data name="About.KoFi.Description" xml:space="preserve">
<data name="About.GhSponsor.Description" xml:space="preserve">
<value>Donaciones</value>
</data>
<data name="About.License.Content" xml:space="preserve">
Expand Down
2 changes: 1 addition & 1 deletion LRReader.UWP/Strings/ru/Settings.resw
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<data name="About.Github.Description" xml:space="preserve">
<value>Исходный код, предложения и поддержка</value>
</data>
<data name="About.KoFi.Description" xml:space="preserve">
<data name="About.GhSponsor.Description" xml:space="preserve">
<value>Пожертвования</value>
</data>
<data name="About.License.Content" xml:space="preserve">
Expand Down
2 changes: 1 addition & 1 deletion LRReader.UWP/Strings/zh-cn/Settings.resw
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<data name="About.Github.Description" xml:space="preserve">
<value>源代码、建议和支持</value>
</data>
<data name="About.KoFi.Description" xml:space="preserve">
<data name="About.GhSponsor.Description" xml:space="preserve">
<value>捐赠</value>
</data>
<data name="About.License.Content" xml:space="preserve">
Expand Down
6 changes: 3 additions & 3 deletions LRReader.UWP/Views/Content/Settings/About.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
</controls:ModernInput.Icon>
</controls:ModernInput>
<controls:ModernInput
x:Uid="/Settings/About/KoFi" Title="Ko-Fi"
x:Uid="/Settings/About/GhSponsor" Title="Github Sponsors"
Command="{x:Bind Data.OpenLinkCommand}"
CommandParameter="https://ko-fi.com/guerra24" IsButton="True" RightGlyph="&#xE8A7;">
CommandParameter="https://github.com/sponsors/Guerra24" IsButton="True" RightGlyph="&#xE8A7;">
<controls:ModernInput.Icon>
<muxc:ImageIcon Height="20" Source="ms-appx:///Assets/Other/Ko-fi.png" />
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="&#xEB51;" Foreground="#C72335" FontWeight="ExtraBold" />
</controls:ModernInput.Icon>
</controls:ModernInput>
</controls:ModernGroup>
Expand Down
17 changes: 12 additions & 5 deletions LRReader.UWP/Views/Tabs/TankoubonTab.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,18 @@
<TextBlock MaxWidth="200" Text="{x:Bind TabContent.Data.Tankoubon.name, Mode=OneWay}" TextTrimming="CharacterEllipsis" />
</muxc:TabViewItem.Header>
<controls:ModernTab.CustomTabControl>
<Button x:Uid="/Generic/RefreshTT" Command="{x:Bind TabContent.Data.RefreshCommand}">
<Viewbox MaxWidth="16" MaxHeight="16">
<SymbolIcon Symbol="Refresh" />
</Viewbox>
</Button>
<StackPanel Orientation="Horizontal" Spacing="2">
<Button Command="{x:Bind TabContent.Data.EditCommand}">
<Viewbox MaxWidth="16" MaxHeight="16">
<SymbolIcon Symbol="Edit" />
</Viewbox>
</Button>
<Button x:Uid="/Generic/RefreshTT" Command="{x:Bind TabContent.Data.RefreshCommand}">
<Viewbox MaxWidth="16" MaxHeight="16">
<SymbolIcon Symbol="Refresh" />
</Viewbox>
</Button>
</StackPanel>
</controls:ModernTab.CustomTabControl>

<content:Tankoubon x:Name="TabContent" />
Expand Down
6 changes: 3 additions & 3 deletions LRReader.UWP/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"UAP,Version=v10.0.17763": {
"CommunityToolkit.Labs.Uwp.TokenView": {
"type": "Direct",
"requested": "[0.1.240731-build.1703, )",
"resolved": "0.1.240731-build.1703",
"contentHash": "YqR0HNFKfSi1D1l1u8a9fewDH6riy5kt1euDyvKHeEPQL5rPrl37ycJDkx2fnJvBcEjQGJWZeYQkUEnaS5KmSQ==",
"requested": "[0.1.240801-build.1708, )",
"resolved": "0.1.240801-build.1708",
"contentHash": "aZd4w5obnxmVYAje5Ff/At+9hpB2Eyj+yphrHUjPYGXJbxUuVcv1IIAnH8CIz5SuKTNuvklbGCSAecAAV1BhQQ==",
"dependencies": {
"CommunityToolkit.Uwp.Controls.Primitives": "8.0.230907",
"CommunityToolkit.Uwp.Extensions": "8.0.230907",
Expand Down

0 comments on commit 5941784

Please sign in to comment.