mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-16 01:51:17 +00:00
[GUI] New box "About" in configuration (#165)
* Added about tab with github and discord * Added discord & github svgs and svg support * Changed svg to pngs and localization text in english & spanish
This commit is contained in:
BIN
assets/images/discord.png
Normal file
BIN
assets/images/discord.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 698 B |
BIN
assets/images/github.png
Normal file
BIN
assets/images/github.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 802 B |
@@ -125,5 +125,13 @@
|
|||||||
"Dialog.PsExecutables": "PS executables",
|
"Dialog.PsExecutables": "PS executables",
|
||||||
"Dialog.SaveLogFile": "Select where to save the Log file",
|
"Dialog.SaveLogFile": "Select where to save the Log file",
|
||||||
"Dialog.PlainTextFiles": "Plain Text Files",
|
"Dialog.PlainTextFiles": "Plain Text Files",
|
||||||
"Dialog.LogFiles": "Log Files"
|
"Dialog.LogFiles": "Log Files",
|
||||||
|
|
||||||
|
"Options.About" : "About",
|
||||||
|
"About.Github.Label": "GitHub",
|
||||||
|
"About.Github.Desc": "Source code, issues and project development.",
|
||||||
|
"About.Discord.Label": "Discord",
|
||||||
|
"About.Discord.Desc": "Join the community, get support and follow development.",
|
||||||
|
"About.GithubButton": "Contribute in GitHub!",
|
||||||
|
"About.DiscordButton": "Join our Discord!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,5 +125,13 @@
|
|||||||
"Dialog.PsExecutables": "Ejecutables de PS",
|
"Dialog.PsExecutables": "Ejecutables de PS",
|
||||||
"Dialog.SaveLogFile": "Selecciona dónde guardar el archivo de Logs",
|
"Dialog.SaveLogFile": "Selecciona dónde guardar el archivo de Logs",
|
||||||
"Dialog.PlainTextFiles": "Archivos en texto plano",
|
"Dialog.PlainTextFiles": "Archivos en texto plano",
|
||||||
"Dialog.LogFiles": "Archivos de Log"
|
"Dialog.LogFiles": "Archivos de Log",
|
||||||
|
|
||||||
|
"Options.About" : "Informacion",
|
||||||
|
"About.Github.Label": "GitHub",
|
||||||
|
"About.Github.Desc": "Código fuente, issues y desarrollo del proyecto.",
|
||||||
|
"About.Discord.Label": "Discord",
|
||||||
|
"About.Discord.Desc": "Únete a la comunidad, recibe soporte y sigue el desarrollo.",
|
||||||
|
"About.GithubButton": "Contribuye en GitHub!",
|
||||||
|
"About.DiscordButton": "Únete a nuestro Discord!"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -317,7 +317,73 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
</Grid>
|
</Grid>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
<Border Classes="card">
|
||||||
|
<StackPanel Spacing="14">
|
||||||
|
<TextBlock x:Name="AboutSectionTitle"
|
||||||
|
Classes="sectionTitle"
|
||||||
|
Text="ABOUT" />
|
||||||
|
|
||||||
|
<!--Github-->
|
||||||
|
<Grid ColumnDefinitions="*,Auto">
|
||||||
|
<StackPanel Grid.Column="0"
|
||||||
|
Orientation="Horizontal"
|
||||||
|
Spacing="8"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<Image Source="avares://SharpEmu.GUI/Assets/github.png"
|
||||||
|
Width="20"
|
||||||
|
Height="20"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
<StackPanel VerticalAlignment="Center"
|
||||||
|
Spacing="2">
|
||||||
|
<TextBlock x:Name="GithubLabel"
|
||||||
|
Text="GitHub"
|
||||||
|
FontSize="13" />
|
||||||
|
<TextBlock x:Name="GithubDesc"
|
||||||
|
Text="Source code, issues and project development."
|
||||||
|
FontSize="11"
|
||||||
|
Foreground="{StaticResource MutedBrush}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Button Grid.Column="1"
|
||||||
|
x:Name="GithubButton"
|
||||||
|
Classes="ghost"
|
||||||
|
Content="Open"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<!--Discord-->
|
||||||
|
<Grid ColumnDefinitions="*,Auto">
|
||||||
|
<StackPanel Grid.Column="0"
|
||||||
|
Orientation="Horizontal"
|
||||||
|
Spacing="8"
|
||||||
|
VerticalAlignment="Center">
|
||||||
|
<Image Source="avares://SharpEmu.GUI/Assets/discord.png"
|
||||||
|
Width="20"
|
||||||
|
Height="20"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
<StackPanel VerticalAlignment="Center"
|
||||||
|
Spacing="2">
|
||||||
|
<TextBlock x:Name="DiscordServerLabel"
|
||||||
|
Text="Discord"
|
||||||
|
FontSize="13" />
|
||||||
|
<TextBlock x:Name="DiscordServerDesc"
|
||||||
|
Text="Join the community, get support and follow development."
|
||||||
|
FontSize="11"
|
||||||
|
Foreground="{StaticResource MutedBrush}"
|
||||||
|
TextWrapping="Wrap" />
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Button Grid.Column="1"
|
||||||
|
x:Name="DiscordButton"
|
||||||
|
Classes="ghost"
|
||||||
|
Content="Join"
|
||||||
|
VerticalAlignment="Center" />
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
|||||||
@@ -147,6 +147,25 @@ public partial class MainWindow : Window
|
|||||||
};
|
};
|
||||||
_gamepadTimer.Tick += (_, _) => PollGamepad();
|
_gamepadTimer.Tick += (_, _) => PollGamepad();
|
||||||
_gamepadTimer.Start();
|
_gamepadTimer.Start();
|
||||||
|
|
||||||
|
|
||||||
|
GithubButton.Click += (_, _) =>
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = "https://github.com/par274/sharpemu",
|
||||||
|
UseShellExecute = true
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
DiscordButton.Click += (_, _) =>
|
||||||
|
{
|
||||||
|
Process.Start(new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = "https://discord.com/invite/6GejPEDqpc",
|
||||||
|
UseShellExecute = true
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -443,6 +462,14 @@ public partial class MainWindow : Window
|
|||||||
LaunchButton.Content = loc.Get("Launch.Launch");
|
LaunchButton.Content = loc.Get("Launch.Launch");
|
||||||
StopButton.Content = loc.Get("Launch.Stop");
|
StopButton.Content = loc.Get("Launch.Stop");
|
||||||
|
|
||||||
|
AboutSectionTitle.Text = loc.Get("Options.About");
|
||||||
|
GithubLabel.Text = loc.Get("About.Github.Label");
|
||||||
|
GithubDesc.Text = loc.Get("About.Github.Desc");
|
||||||
|
DiscordServerLabel.Text = loc.Get("About.Discord.Label");
|
||||||
|
DiscordServerDesc.Text = loc.Get("About.Discord.Desc");
|
||||||
|
GithubButton.Content = loc.Get("About.GithubButton");
|
||||||
|
DiscordButton.Content = loc.Get("About.DiscordButton");
|
||||||
|
|
||||||
UpdateEmptyStateTexts();
|
UpdateEmptyStateTexts();
|
||||||
UpdateSelectedGameTexts();
|
UpdateSelectedGameTexts();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AvaloniaResource Include="..\..\assets\images\SharpEmu.ico" Link="Assets/SharpEmu.ico" />
|
<AvaloniaResource Include="..\..\assets\images\SharpEmu.ico" Link="Assets/SharpEmu.ico" />
|
||||||
|
<AvaloniaResource Include="..\..\assets\images\github.png" Link="Assets/github.png" />
|
||||||
|
<AvaloniaResource Include="..\..\assets\images\discord.png" Link="Assets/discord.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user