aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/UI/Windows/AboutWindow.axaml
blob: 69fa82517abc59f8ee92bf70dddd6cf061370d2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<UserControl
    x:Class="Ryujinx.Ava.UI.Windows.AboutWindow"
    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"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
    xmlns:viewModel="clr-namespace:Ryujinx.Ava.UI.ViewModels"
    Width="550"
    Height="260"
    Margin="0,-12,0,0"
    d:DesignHeight="260"
    d:DesignWidth="550"
    x:DataType="viewModel:AboutWindowViewModel"
    Focusable="True"
    mc:Ignorable="d">
    <Design.DataContext>
        <viewModel:AboutWindowViewModel />
    </Design.DataContext>
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid
            Grid.Column="0"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <StackPanel
                Grid.Row="0"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"
                Spacing="10">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <StackPanel
                        Grid.Column="1"
                        Orientation="Horizontal"
                        HorizontalAlignment="Center"
                        Spacing="10">
                        <Image
                            Height="80"
                            Source="resm:Ryujinx.UI.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.UI.Common"
                            HorizontalAlignment="Center"
                            IsHitTestVisible="True" />
                        <WrapPanel
                            HorizontalAlignment="Right"
                            VerticalAlignment="Center"
                            Orientation="Vertical">
                            <TextBlock
                                FontSize="28"
                                FontWeight="Bold"
                                Text="Ryujinx"
                                TextAlignment="Start"
                                Width="110"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center" />
                            <TextBlock
                                FontSize="11"
                                Text="(REE-YOU-JINX)"
                                TextAlignment="Start"
                                Width="110"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center" />
                        </WrapPanel>
                    </StackPanel>
                </Grid>
                <TextBlock
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center"
                    FontSize="10"
                    LineHeight="12"
                    Text="{Binding Version}"
                    TextAlignment="Center" />
                <Button
                    Padding="5"
                    HorizontalAlignment="Center"
                    Background="Transparent"
                    Click="Button_OnClick"
                    Tag="https://github.com/Ryujinx/Ryujinx/wiki/Changelog#ryujinx-changelog">
                    <TextBlock
                        FontSize="10"
                        Text="{locale:Locale AboutChangelogButton}"
                        TextAlignment="Center"
                        ToolTip.Tip="{locale:Locale AboutChangelogButtonTooltipMessage}" />
                </Button>
            </StackPanel>
            <StackPanel
                Grid.Row="2"
                HorizontalAlignment="Stretch"
                VerticalAlignment="Stretch"
                Spacing="10">
                <TextBlock
                    Width="200"
                    HorizontalAlignment="Center"
                    FontSize="10"
                    LineHeight="12"
                    Text="{locale:Locale AboutDisclaimerMessage}"
                    TextAlignment="Center"
                    TextWrapping="Wrap" />
                <TextBlock
                    Name="AmiiboLabel"
                    Width="200"
                    HorizontalAlignment="Center"
                    FontSize="10"
                    LineHeight="12"
                    PointerPressed="AmiiboLabel_OnPointerPressed"
                    Text="{locale:Locale AboutAmiiboDisclaimerMessage}"
                    TextAlignment="Center"
                    TextWrapping="Wrap" />
                <StackPanel
                    HorizontalAlignment="Center"
                    Orientation="Horizontal"
                    Spacing="10">
                    <Button
                        MinWidth="30"
                        MinHeight="30"
                        MaxWidth="30"
                        MaxHeight="30"
                        Padding="8"
                        Background="Transparent"
                        Click="Button_OnClick"
                        CornerRadius="15"
                        Tag="https://www.patreon.com/ryujinx"
                        ToolTip.Tip="{locale:Locale AboutPatreonUrlTooltipMessage}">
                        <Image Source="{Binding PatreonLogo}" />
                    </Button>
                    <Button
                        MinWidth="30"
                        MinHeight="30"
                        MaxWidth="30"
                        MaxHeight="30"
                        Padding="8"
                        Background="Transparent"
                        Click="Button_OnClick"
                        CornerRadius="15"
                        Tag="https://github.com/Ryujinx/Ryujinx"
                        ToolTip.Tip="{locale:Locale AboutGithubUrlTooltipMessage}">
                        <Image Source="{Binding GithubLogo}" />
                    </Button>
                    <Button
                        MinWidth="30"
                        MinHeight="30"
                        MaxWidth="30"
                        MaxHeight="30"
                        Padding="8"
                        Background="Transparent"
                        Click="Button_OnClick"
                        CornerRadius="15"
                        Tag="https://discordapp.com/invite/N2FmfVc"
                        ToolTip.Tip="{locale:Locale AboutDiscordUrlTooltipMessage}">
                        <Image Source="{Binding DiscordLogo}" />
                    </Button>
                    <Button
                        MinWidth="30"
                        MinHeight="30"
                        MaxWidth="30"
                        MaxHeight="30"
                        Padding="8"
                        Background="Transparent"
                        Click="Button_OnClick"
                        CornerRadius="15"
                        Tag="https://twitter.com/RyujinxEmu"
                        ToolTip.Tip="{locale:Locale AboutTwitterUrlTooltipMessage}">
                        <Image Source="{Binding TwitterLogo}" />
                    </Button>
                    <Button
                        MinWidth="30"
                        MinHeight="30"
                        MaxWidth="30"
                        MaxHeight="30"
                        Padding="8"
                        Background="Transparent"
                        Click="Button_OnClick"
                        CornerRadius="15"
                        Tag="https://www.ryujinx.org"
                        ToolTip.Tip="{locale:Locale AboutUrlTooltipMessage}">
                        <ui:SymbolIcon Foreground="{DynamicResource ThemeForegroundColor}" Symbol="Link" />
                    </Button>
                </StackPanel>
            </StackPanel>
        </Grid>
        <Border
            Grid.Column="1"
            Width="1"
            Margin="20,0"
            VerticalAlignment="Stretch"
            BorderBrush="{DynamicResource ThemeControlBorderColor}"
            BorderThickness="1,0,0,0" />
        <Grid
            Grid.Column="2"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <StackPanel
                Grid.Row="0"
                Margin="0,10,0,0"
                Spacing="2">
                <TextBlock
                    FontSize="15"
                    FontWeight="Bold"
                    Text="{locale:Locale AboutRyujinxAboutTitle}" />
                <TextBlock
                    FontSize="10"
                    Text="{locale:Locale AboutRyujinxAboutContent}"
                    TextWrapping="Wrap" />
            </StackPanel>
            <StackPanel
                Grid.Row="1"
                Margin="0,10,0,0"
                Spacing="2">
                <TextBlock
                    FontSize="15"
                    FontWeight="Bold"
                    Text="{locale:Locale AboutRyujinxMaintainersTitle}" />
                <TextBlock
                    FontSize="10"
                    Text="{Binding Developers}"
                    TextWrapping="Wrap" />
                <Button
                    Padding="5"
                    HorizontalAlignment="Left"
                    Background="Transparent"
                    Click="Button_OnClick"
                    Tag="https://github.com/Ryujinx/Ryujinx/graphs/contributors?type=a">
                    <TextBlock
                        FontSize="10"
                        Text="{locale:Locale AboutRyujinxContributorsButtonHeader}"
                        TextAlignment="End"
                        ToolTip.Tip="{locale:Locale AboutRyujinxMaintainersContentTooltipMessage}" />
                </Button>
            </StackPanel>
            <StackPanel
                Grid.Row="2"
                Margin="0,10,0,0"
                Spacing="2">
                <TextBlock
                    FontSize="15"
                    FontWeight="Bold"
                    Text="{locale:Locale AboutRyujinxSupprtersTitle}" />
                <ScrollViewer
                    Height="70"
                    HorizontalScrollBarVisibility="Disabled"
                    VerticalScrollBarVisibility="Visible">
                    <TextBlock
                        Name="SupportersTextBlock"
                        VerticalAlignment="Top"
                        FontSize="10"
                        Text="{Binding Supporters}"
                        TextWrapping="Wrap" />
                </ScrollViewer>
            </StackPanel>
        </Grid>
    </Grid>
</UserControl>