Skip to content

Commit

Permalink
Added some ppl
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDotH committed May 3, 2023
1 parent 8855bed commit e0c0d05
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ public class SettingsCreditsViewModel : ViewModelBase
{
public ReactiveCommand<Unit, Unit> OpenEimaenGithubCommand { get; }
public ReactiveCommand<Unit, Unit> OpenD3SOXGithubCommand { get; }

public ReactiveCommand<Unit, Unit> OpenPKMNPlatinGithubCommand { get; }

public SettingsCreditsViewModel()
{
OpenEimaenGithubCommand = ReactiveCommand.Create(()=>ProcessUtils.OpenBrowser("https://github.com/Eimaen"));
OpenD3SOXGithubCommand = ReactiveCommand.Create(()=>ProcessUtils.OpenBrowser("https://github.com/D3SOX"));
OpenPKMNPlatinGithubCommand = ReactiveCommand.Create(()=>ProcessUtils.OpenBrowser("https://github.com/PKMNPlatin"));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
x:Class="OpenLyricsClient.Frontend.View.Custom.Badges.Other.DesignerBadge">

<Border CornerRadius="10" Background="{DynamicResource LightBackgroundBrush}">

<StackPanel Orientation="Horizontal" Spacing="0">

<Border CornerRadius="5" Background="#CC52D2">

<StackPanel Orientation="Horizontal" Spacing="5" Margin="4">

<TextBlock Text="Designer"
FontWeight="Normal"
Margin="5,5,0,5"
FontSize="14"/>

<avalonia:MaterialIcon Kind="Art"
VerticalAlignment="Center"
HorizontalAlignment="Stretch"/>
</StackPanel>
</Border>

</StackPanel>
</Border>
</UserControl>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;

namespace OpenLyricsClient.Frontend.View.Custom.Badges.Other;

public partial class DesignerBadge : UserControl
{
public DesignerBadge()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
VerticalAlignment="Top"
Margin="10,0,10,0">

<StackPanel Margin="0,20,0,0"
<StackPanel Margin="0,20,0,20"
HorizontalAlignment="Center"
Width="800">

Expand Down Expand Up @@ -198,6 +198,96 @@
</StackPanel>
</StackPanel>
</elements:GroupBox>

<elements:GroupBox Classes="clean"
Background="{DynamicResource SecondaryBackgroundBrush}">
<StackPanel Margin="15"
Orientation="Vertical"
Spacing="15">

<TextBlock FontSize="14"
VerticalAlignment="Top"
HorizontalAlignment="Left"
FontWeight="Bold"
Text="PKMNPlatin">
</TextBlock>

<TextBlock FontSize="14"
VerticalAlignment="Top"
HorizontalAlignment="Left"
FontWeight="Normal"
TextWrapping="Wrap"
Foreground="{DynamicResource SecondaryFontColorBrush}"
Text="The logo designer for the OpenLyricsClient">
</TextBlock>

<Panel Background="{DynamicResource LightBackgroundBrush}"
Height="1"
HorizontalAlignment="Stretch"/>

<StackPanel Orientation="Horizontal"
Spacing="15">

<plattform:WindowsBadge/>

<plattform:LinuxBadge/>

<other:DesignerBadge/>

</StackPanel>

<StackPanel Orientation="Horizontal"
Spacing="15">

<Button Width="35"
Height="35"
Command="{Binding OpenPKMNPlatinGithubCommand}"
Background="{DynamicResource LightBackgroundBrush}">

<avalonia:MaterialIcon Kind="Github"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"/>
</Button>
</StackPanel>
</StackPanel>
</elements:GroupBox>

<elements:GroupBox Classes="clean"
Background="{DynamicResource SecondaryBackgroundBrush}">
<StackPanel Margin="15"
Orientation="Vertical"
Spacing="15">

<TextBlock FontSize="14"
VerticalAlignment="Top"
HorizontalAlignment="Left"
FontWeight="Bold"
Text="Jhannes">
</TextBlock>

<TextBlock FontSize="14"
VerticalAlignment="Top"
HorizontalAlignment="Left"
FontWeight="Normal"
TextWrapping="Wrap"
Foreground="{DynamicResource SecondaryFontColorBrush}"
Text="One of the early tester of the OpenLyricsClient">
</TextBlock>

<Panel Background="{DynamicResource LightBackgroundBrush}"
Height="1"
HorizontalAlignment="Stretch"/>

<StackPanel Orientation="Horizontal"
Spacing="15">

<plattform:WindowsBadge/>

<other:TesterBadge/>

</StackPanel>
</StackPanel>
</elements:GroupBox>
</StackPanel>
</StackPanel>
</ScrollViewer>
Expand Down

0 comments on commit e0c0d05

Please sign in to comment.