Skip to content

Commit

Permalink
Added a report bug button to the About Me window
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaoticz committed Dec 31, 2024
1 parent c1c38fc commit 73da876
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 47 deletions.
25 changes: 0 additions & 25 deletions NadekoHub/Avalonia/Styles/NadekoStyles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,6 @@
</Style>
</Style>

<!--Button styled like a hyperlink text-->
<Style Selector="Button.link-11">
<Setter Property="Foreground" Value="{DynamicResource HyperlinkColor}" />
<Setter Property="Padding" Value="0" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Template">
<ControlTemplate>
<ContentPresenter Content="{TemplateBinding Content}">
<ContentPresenter.Styles>
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="{TemplateBinding Foreground}"/>
<!--This should be binding to the template's FontSize, but since I'm overriding-->
<!--the main TextBlock class, this doesn't seem to work properly, so I have to set-->
<!--the value manually-->
<Setter Property="FontSize" Value="11"/>
<Setter Property="TextDecorations" Value="Underline"/>
</Style>
</ContentPresenter.Styles>
</ContentPresenter>
</ControlTemplate>
</Setter>
</Style>

<!--Circular Border-->
<Style Selector="Border.circular">
<Setter Property="ClipToBounds" Value="True" />
Expand Down
49 changes: 28 additions & 21 deletions NadekoHub/Features/AppConfig/Views/Windows/AboutMeView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,34 +54,41 @@
<Separator Margin="20"
HorizontalAlignment="Stretch" />

<TextBlock Text="This tool was made by Kotz. If it has been useful to you, consider showing your support on Ko-fi."
<TextBlock Text="This tool was made by Kotz. If it has been useful to you, consider showing your support."
TextAlignment="Center"
Margin="0 0 0 10" />

<Button HorizontalAlignment="Center"
CommandParameter="https://ko-fi.com/kaoticz"
Command="{Binding OpenUrl}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Buy me a Ko-fi " />
<Image Classes="icon-url"
Source="{DynamicResource UrlIcon}" />
</StackPanel>
</Button>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button Margin="0 0 5 0"
HorizontalAlignment="Center"
CommandParameter="https://ko-fi.com/kaoticz"
Command="{Binding OpenUrl}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Buy me a Ko-fi " />
<Image Classes="icon-url"
Source="{DynamicResource UrlIcon}" />
</StackPanel>
</Button>
<Button Margin="5 0 0 0"
HorizontalAlignment="Center"
CommandParameter="https://github.com/Kaoticz/NadekoHub/issues/new/choose"
Command="{Binding OpenUrl}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Report a bug " />
<Image Classes="icon-url"
Source="{DynamicResource UrlIcon}" />
</StackPanel>
</Button>
</StackPanel>

<TextBlock Text="© 2023 Kotz"
FontSize="11"
HorizontalAlignment="Center"
Margin="0 30 0 0"/>

<StackPanel Orientation="Horizontal"
HorizontalAlignment="Center">
<TextBlock Text="License: "
FontSize="11" />
<Button Classes="link-11"
FontSize="11"
Content="GNU General Public License Version 3"
CommandParameter="https://github.com/Kaoticz/NadekoHub/blob/main/LICENSE"
Command="{Binding OpenUrl}" />
</StackPanel>
<HyperlinkButton FontSize="11"
HorizontalAlignment="Center"
Content="GNU General Public License Version 3"
CommandParameter="https://github.com/Kaoticz/NadekoHub/blob/main/LICENSE"
Command="{Binding OpenUrl}" />
</StackPanel>
</Window>
3 changes: 2 additions & 1 deletion NadekoHub/Features/Home/Services/AppResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ await GetDownloadUrlAsync(latestVersion, cToken),

// Move the new file to the application's directory.
// ...
// This is a workaround for really weird bug with Unix applications published as single-file:
// This is a workaround for a really weird bug with Unix applications published as single-file.
// The moving operation works, but invoking any process from the shell results in:
// FileNotFoundException: Could not load file or assembly 'System.IO.Pipes, Version=9.0.0.0 [...]
if (Environment.OSVersion.Platform is not PlatformID.Unix)
File.Move(newFileUri, destinationUri, true);
Expand Down

0 comments on commit 73da876

Please sign in to comment.