mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-23 02:45:45 +00:00
About window: Add changelog link under ver. number (#5095)
This commit is contained in:
parent
dd514a115c
commit
c9e297b74c
4 changed files with 42 additions and 1 deletions
|
@ -637,5 +637,7 @@
|
|||
"SettingsTabNetworkInterface": "Network Interface:",
|
||||
"NetworkInterfaceTooltip": "The network interface used for LAN features",
|
||||
"NetworkInterfaceDefault": "Default",
|
||||
"PackagingShaders": "Packaging Shaders"
|
||||
"PackagingShaders": "Packaging Shaders",
|
||||
"AboutChangelogButton": "View Changelog on GitHub",
|
||||
"AboutChangelogButtonTooltipMessage": "Click to open the changelog for this version in your default browser."
|
||||
}
|
|
@ -72,6 +72,18 @@
|
|||
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"
|
||||
|
|
22
src/Ryujinx/Ui/Windows/AboutWindow.Designer.cs
generated
22
src/Ryujinx/Ui/Windows/AboutWindow.Designer.cs
generated
|
@ -48,6 +48,8 @@ namespace Ryujinx.Ui.Windows
|
|||
private Label _patreonNamesLabel;
|
||||
private ScrolledWindow _patreonNamesScrolled;
|
||||
private TextView _patreonNamesText;
|
||||
private EventBox _changelogEventBox;
|
||||
private Label _changelogLinkLabel;
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
|
@ -148,6 +150,23 @@ namespace Ryujinx.Ui.Windows
|
|||
Margin = 5
|
||||
};
|
||||
|
||||
//
|
||||
// _changelogEventBox
|
||||
//
|
||||
_changelogEventBox = new EventBox();
|
||||
_changelogEventBox.ButtonPressEvent += ChangelogButton_Pressed;
|
||||
|
||||
//
|
||||
// _changelogLinkLabel
|
||||
//
|
||||
_changelogLinkLabel = new Label("View Changelog on GitHub")
|
||||
{
|
||||
TooltipText = "Click to open the changelog for this version in your default browser.",
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList()
|
||||
};
|
||||
_changelogLinkLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
|
||||
//
|
||||
// _disclaimerLabel
|
||||
//
|
||||
|
@ -464,8 +483,11 @@ namespace Ryujinx.Ui.Windows
|
|||
_socialBox.Add(_discordEventBox);
|
||||
_socialBox.Add(_twitterEventBox);
|
||||
|
||||
_changelogEventBox.Add(_changelogLinkLabel);
|
||||
|
||||
_leftBox.Add(_logoBox);
|
||||
_leftBox.Add(_versionLabel);
|
||||
_leftBox.Add(_changelogEventBox);
|
||||
_leftBox.Add(_disclaimerLabel);
|
||||
_leftBox.Add(_amiiboApiLink);
|
||||
_leftBox.Add(_socialBox);
|
||||
|
|
|
@ -76,5 +76,10 @@ namespace Ryujinx.Ui.Windows
|
|||
{
|
||||
OpenHelper.OpenUrl("https://github.com/Ryujinx/Ryujinx/graphs/contributors?type=a");
|
||||
}
|
||||
|
||||
private void ChangelogButton_Pressed(object sender, ButtonPressEventArgs args)
|
||||
{
|
||||
OpenHelper.OpenUrl("https://github.com/Ryujinx/Ryujinx/wiki/Changelog#ryujinx-changelog");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue