Ryujinx/Ryujinx.Ava/UI/Windows/AboutWindow.axaml

240 lines
6.9 KiB
Text
Raw Normal View History

2022-12-30 17:16:59 +00:00
<UserControl
2022-06-23 18:59:02 +00:00
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
2022-12-30 17:16:59 +00:00
xmlns:flex="clr-namespace:Avalonia.Flexbox;assembly=Avalonia.Flexbox"
2022-12-31 18:10:59 +00:00
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
2023-01-01 15:41:35 +00:00
xmlns:viewModel="clr-namespace:Ryujinx.Ava.UI.ViewModels"
2022-06-23 18:59:02 +00:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
2022-12-31 18:10:59 +00:00
d:DesignHeight="260"
d:DesignWidth="550"
Height="260"
Width="550"
2022-12-30 17:16:59 +00:00
x:Class="Ryujinx.Ava.UI.Windows.AboutWindow"
2023-01-01 15:41:35 +00:00
x:DataType="viewModel:AboutWindowViewModel"
x:CompileBindings="True"
2022-12-31 18:10:59 +00:00
Margin="0 -12 0 0"
Focusable="True">
2023-01-01 15:41:35 +00:00
<Design.DataContext>
<viewModel:AboutWindowViewModel />
</Design.DataContext>
<Grid
2022-06-23 18:59:02 +00:00
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid
2022-06-23 18:59:02 +00:00
Grid.Column="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
2022-12-30 17:16:59 +00:00
<RowDefinition Height="*" />
2022-12-31 18:10:59 +00:00
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
2022-12-31 18:10:59 +00:00
<Grid
Grid.Row="0">
<Grid.ColumnDefinitions>
2022-12-31 18:10:59 +00:00
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Image
2022-12-31 18:10:59 +00:00
Grid.Column="0"
Height="80"
2022-06-23 18:59:02 +00:00
Source="resm:Ryujinx.Ui.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.Ui.Common" />
2022-12-30 17:16:59 +00:00
<flex:FlexPanel
2022-12-31 18:10:59 +00:00
Grid.Column="2"
2022-12-30 17:16:59 +00:00
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Direction="Column"
2022-12-31 18:10:59 +00:00
JustifyContent="SpaceAround"
RowSpacing="2">
<TextBlock
2022-12-31 18:10:59 +00:00
FontSize="28"
FontWeight="Bold"
2022-12-30 17:16:59 +00:00
Text="Ryujinx"
2022-12-31 18:10:59 +00:00
TextAlignment="Left" />
2022-12-30 17:16:59 +00:00
<TextBlock
Text="(REE-YOU-JINX)"
2022-12-31 18:10:59 +00:00
TextAlignment="Left" />
2022-12-30 17:16:59 +00:00
</flex:FlexPanel>
</Grid>
2022-12-31 18:10:59 +00:00
<StackPanel
Grid.Row="2"
Spacing="10"
2022-12-30 17:16:59 +00:00
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="{Binding Version}"
2022-12-31 18:10:59 +00:00
TextAlignment="Center"
FontSize="10"
LineHeight="12" />
2022-12-30 17:16:59 +00:00
<TextBlock
HorizontalAlignment="Center"
2023-01-03 23:33:17 +00:00
Width="200"
2022-12-30 17:16:59 +00:00
Text="{locale:Locale AboutDisclaimerMessage}"
2022-12-31 18:10:59 +00:00
TextAlignment="Center"
2023-01-03 23:33:17 +00:00
TextWrapping="Wrap"
2022-12-31 18:10:59 +00:00
FontSize="10"
LineHeight="12" />
2022-12-30 17:16:59 +00:00
<TextBlock
Name="AmiiboLabel"
HorizontalAlignment="Center"
2023-01-03 23:33:17 +00:00
Width="200"
2022-12-30 17:16:59 +00:00
PointerPressed="AmiiboLabel_OnPointerPressed"
Text="{locale:Locale AboutAmiiboDisclaimerMessage}"
2022-12-31 18:10:59 +00:00
TextAlignment="Center"
2023-01-03 23:33:17 +00:00
TextWrapping="Wrap"
2022-12-31 18:10:59 +00:00
FontSize="10"
LineHeight="12" />
2022-12-30 17:16:59 +00:00
<StackPanel
HorizontalAlignment="Center"
Orientation="Horizontal"
Spacing="10">
2022-12-31 18:10:59 +00:00
<Button
MaxHeight="30"
MaxWidth="30"
MinHeight="30"
MinWidth="30"
Padding="8"
CornerRadius="15"
Background="Transparent"
Click="Button_OnClick"
Tag="https://www.patreon.com/ryujinx">
2023-01-01 15:41:35 +00:00
<Image Source="{Binding PatreonLogo}" />
2022-12-31 18:10:59 +00:00
</Button>
<Button
MaxHeight="30"
MaxWidth="30"
MinHeight="30"
MinWidth="30"
Padding="8"
CornerRadius="15"
Background="Transparent"
Click="Button_OnClick"
Tag="https://github.com/Ryujinx/Ryujinx">
2023-01-01 15:41:35 +00:00
<Image Source="{Binding GithubLogo}" />
2022-12-31 18:10:59 +00:00
</Button>
<Button
MaxHeight="30"
MaxWidth="30"
MinHeight="30"
MinWidth="30"
Padding="8"
CornerRadius="15"
Background="Transparent"
Click="Button_OnClick"
Tag="https://discordapp.com/invite/N2FmfVc">
2023-01-01 15:41:35 +00:00
<Image Source="{Binding DiscordLogo}" />
2022-12-31 18:10:59 +00:00
</Button>
<Button
MaxHeight="30"
MaxWidth="30"
MinHeight="30"
MinWidth="30"
Padding="8"
CornerRadius="15"
Background="Transparent"
Click="Button_OnClick"
Tag="https://twitter.com/RyujinxEmu">
2023-01-01 15:41:35 +00:00
<Image Source="{Binding TwitterLogo}" />
2022-12-31 18:10:59 +00:00
</Button>
<Button
MaxHeight="30"
MaxWidth="30"
MinHeight="30"
MinWidth="30"
Padding="8"
CornerRadius="15"
Background="Transparent"
Click="Button_OnClick"
Tag="https://www.ryujinx.org">
2023-01-01 18:02:34 +00:00
<ui:SymbolIcon
2022-12-31 18:10:59 +00:00
Symbol="Link"
Foreground="{DynamicResource ThemeForegroundColor}" />
</Button>
</StackPanel>
2022-12-31 18:10:59 +00:00
</StackPanel>
</Grid>
<Border
2022-06-23 18:59:02 +00:00
Grid.Column="1"
2022-12-30 17:16:59 +00:00
Width="1"
2022-06-23 18:59:02 +00:00
VerticalAlignment="Stretch"
2022-12-31 18:10:59 +00:00
BorderBrush="{DynamicResource ThemeControlBorderColor}"
BorderThickness="1,0,0,0"
Margin="20 0"/>
<Grid
2022-06-23 18:59:02 +00:00
Grid.Column="2"
2022-12-31 18:10:59 +00:00
HorizontalAlignment="Stretch"
2022-06-23 18:59:02 +00:00
VerticalAlignment="Stretch">
2022-12-31 18:10:59 +00:00
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
2022-12-30 17:16:59 +00:00
<StackPanel
2022-12-31 18:10:59 +00:00
Grid.Row="0"
Spacing="2">
<TextBlock
2022-12-30 17:16:59 +00:00
FontWeight="Bold"
2022-12-31 18:10:59 +00:00
FontSize="15"
2022-12-30 17:16:59 +00:00
Text="{locale:Locale AboutRyujinxAboutTitle}" />
<TextBlock
2022-12-31 18:10:59 +00:00
FontSize="10"
2022-12-30 17:16:59 +00:00
TextWrapping="Wrap"
Text="{locale:Locale AboutRyujinxAboutContent}" />
</StackPanel>
<StackPanel
2022-12-31 18:10:59 +00:00
Grid.Row="1"
Spacing="2">
2022-12-30 17:16:59 +00:00
<TextBlock
FontWeight="Bold"
2022-12-31 18:10:59 +00:00
FontSize="15"
2022-12-30 17:16:59 +00:00
Text="{locale:Locale AboutRyujinxMaintainersTitle}" />
<TextBlock
2023-01-01 18:02:34 +00:00
FontSize="10"
2022-12-30 17:16:59 +00:00
TextWrapping="Wrap"
Text="{Binding Developers}" />
<Button
HorizontalAlignment="Right"
Background="Transparent"
Click="Button_OnClick"
2022-12-31 18:10:59 +00:00
Padding="5"
2022-12-30 17:16:59 +00:00
Tag="https://github.com/Ryujinx/Ryujinx/graphs/contributors?type=a">
<TextBlock
2022-12-31 18:10:59 +00:00
FontSize="10"
2022-12-30 17:16:59 +00:00
Text="{locale:Locale AboutRyujinxContributorsButtonHeader}"
TextAlignment="Right"
ToolTip.Tip="{locale:Locale AboutRyujinxMaintainersContentTooltipMessage}" />
</Button>
</StackPanel>
<StackPanel
2022-12-31 18:10:59 +00:00
Grid.Row="2"
Spacing="2">
2022-12-30 17:16:59 +00:00
<TextBlock
FontWeight="Bold"
2022-12-31 18:10:59 +00:00
FontSize="15"
2022-12-30 17:16:59 +00:00
Text="{locale:Locale AboutRyujinxSupprtersTitle}" />
2022-12-31 18:10:59 +00:00
<ScrollViewer
VerticalScrollBarVisibility="Visible"
HorizontalScrollBarVisibility="Disabled"
Height="70">
2022-12-30 17:16:59 +00:00
<TextBlock
Name="SupportersTextBlock"
VerticalAlignment="Top"
FontSize="10"
TextWrapping="Wrap"
Text="{Binding Supporters}" />
2022-12-31 18:10:59 +00:00
</ScrollViewer>
2022-12-30 17:16:59 +00:00
</StackPanel>
2022-12-31 18:10:59 +00:00
</Grid>
</Grid>
2023-01-01 18:02:34 +00:00
</UserControl>