mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-10-03 14:25:50 -05:00
[Ryujinx] Address dotnet-format issues (#5395)
* dotnet format style --severity info Some changes were manually reverted. * dotnet format analyzers --serverity info Some changes have been minimally adapted. * Restore a few unused methods and variables * Address dotnet format CA1816 warnings * Address or silence dotnet format CA2208 warnings * Address or silence dotnet format CA1806 and a few CA1854 warnings * Address dotnet format CA1822 warnings * Make dotnet format succeed in style mode * Address dotnet format CA2208 warnings properly * Address most dotnet format whitespace warnings * Apply dotnet format whitespace formatting A few of them have been manually reverted and the corresponding warning was silenced * Format if-blocks correctly * Another rebase, another dotnet format run * Run dotnet format whitespace after rebase * Run dotnet format after rebase and remove unused usings - analyzers - style - whitespace * Add comments to disabled warnings * Simplify properties and array initialization, Use const when possible, Remove trailing commas * Revert "Simplify properties and array initialization, Use const when possible, Remove trailing commas" This reverts commit 9462e4136c0a2100dc28b20cf9542e06790aa67e. * dotnet format whitespace after rebase * First dotnet format pass * Fix build issues * Apply suggestions from code review Co-authored-by: Ac_K <Acoustik666@gmail.com> * Second dotnet format pass * Update src/Ryujinx/Modules/Updater/Updater.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Add trailing commas and improve formatting * Fix formatting and naming issues * Rename nvStutterWorkaround to nvidiaStutterWorkaround * Use using declarations and extend resource lifetimes * Fix GTK issues * Add formatting for generated files * Add trailing commas --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
216
src/Ryujinx/Ui/Windows/AboutWindow.Designer.cs
generated
216
src/Ryujinx/Ui/Windows/AboutWindow.Designer.cs
generated
@@ -7,65 +7,63 @@ namespace Ryujinx.Ui.Windows
|
||||
{
|
||||
public partial class AboutWindow : Window
|
||||
{
|
||||
private Box _mainBox;
|
||||
private Box _leftBox;
|
||||
private Box _logoBox;
|
||||
private Image _ryujinxLogo;
|
||||
private Box _logoTextBox;
|
||||
private Label _ryujinxLabel;
|
||||
private Label _ryujinxPhoneticLabel;
|
||||
private EventBox _ryujinxLink;
|
||||
private Label _ryujinxLinkLabel;
|
||||
private Label _versionLabel;
|
||||
private Label _disclaimerLabel;
|
||||
private EventBox _amiiboApiLink;
|
||||
private Label _amiiboApiLinkLabel;
|
||||
private Box _socialBox;
|
||||
private EventBox _patreonEventBox;
|
||||
private Box _patreonBox;
|
||||
private Image _patreonLogo;
|
||||
private Label _patreonLabel;
|
||||
private EventBox _githubEventBox;
|
||||
private Box _githubBox;
|
||||
private Image _githubLogo;
|
||||
private Label _githubLabel;
|
||||
private Box _discordBox;
|
||||
private EventBox _discordEventBox;
|
||||
private Image _discordLogo;
|
||||
private Label _discordLabel;
|
||||
private EventBox _twitterEventBox;
|
||||
private Box _twitterBox;
|
||||
private Image _twitterLogo;
|
||||
private Label _twitterLabel;
|
||||
private Separator _separator;
|
||||
private Box _rightBox;
|
||||
private Label _aboutLabel;
|
||||
private Label _aboutDescriptionLabel;
|
||||
private Label _createdByLabel;
|
||||
private TextView _createdByText;
|
||||
private EventBox _contributorsEventBox;
|
||||
private Label _contributorsLinkLabel;
|
||||
private Label _patreonNamesLabel;
|
||||
private Box _mainBox;
|
||||
private Box _leftBox;
|
||||
private Box _logoBox;
|
||||
private Image _ryujinxLogo;
|
||||
private Box _logoTextBox;
|
||||
private Label _ryujinxLabel;
|
||||
private Label _ryujinxPhoneticLabel;
|
||||
private EventBox _ryujinxLink;
|
||||
private Label _ryujinxLinkLabel;
|
||||
private Label _versionLabel;
|
||||
private Label _disclaimerLabel;
|
||||
private EventBox _amiiboApiLink;
|
||||
private Label _amiiboApiLinkLabel;
|
||||
private Box _socialBox;
|
||||
private EventBox _patreonEventBox;
|
||||
private Box _patreonBox;
|
||||
private Image _patreonLogo;
|
||||
private Label _patreonLabel;
|
||||
private EventBox _githubEventBox;
|
||||
private Box _githubBox;
|
||||
private Image _githubLogo;
|
||||
private Label _githubLabel;
|
||||
private Box _discordBox;
|
||||
private EventBox _discordEventBox;
|
||||
private Image _discordLogo;
|
||||
private Label _discordLabel;
|
||||
private EventBox _twitterEventBox;
|
||||
private Box _twitterBox;
|
||||
private Image _twitterLogo;
|
||||
private Label _twitterLabel;
|
||||
private Separator _separator;
|
||||
private Box _rightBox;
|
||||
private Label _aboutLabel;
|
||||
private Label _aboutDescriptionLabel;
|
||||
private Label _createdByLabel;
|
||||
private TextView _createdByText;
|
||||
private EventBox _contributorsEventBox;
|
||||
private Label _contributorsLinkLabel;
|
||||
private Label _patreonNamesLabel;
|
||||
private ScrolledWindow _patreonNamesScrolled;
|
||||
private TextView _patreonNamesText;
|
||||
private EventBox _changelogEventBox;
|
||||
private Label _changelogLinkLabel;
|
||||
private TextView _patreonNamesText;
|
||||
private EventBox _changelogEventBox;
|
||||
private Label _changelogLinkLabel;
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
|
||||
#pragma warning disable CS0612
|
||||
|
||||
//
|
||||
// AboutWindow
|
||||
//
|
||||
CanFocus = false;
|
||||
Resizable = false;
|
||||
Modal = true;
|
||||
CanFocus = false;
|
||||
Resizable = false;
|
||||
Modal = true;
|
||||
WindowPosition = WindowPosition.Center;
|
||||
DefaultWidth = 800;
|
||||
DefaultHeight = 450;
|
||||
TypeHint = Gdk.WindowTypeHint.Dialog;
|
||||
DefaultWidth = 800;
|
||||
DefaultHeight = 450;
|
||||
TypeHint = Gdk.WindowTypeHint.Dialog;
|
||||
|
||||
//
|
||||
// _mainBox
|
||||
@@ -77,9 +75,9 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_leftBox = new Box(Orientation.Vertical, 0)
|
||||
{
|
||||
Margin = 15,
|
||||
MarginLeft = 30,
|
||||
MarginRight = 0
|
||||
Margin = 15,
|
||||
MarginStart = 30,
|
||||
MarginEnd = 0,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -92,8 +90,8 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_ryujinxLogo = new Image(new Gdk.Pixbuf(Assembly.GetAssembly(typeof(ConfigurationState)), "Ryujinx.Ui.Common.Resources.Logo_Ryujinx.png", 100, 100))
|
||||
{
|
||||
Margin = 10,
|
||||
MarginLeft = 15
|
||||
Margin = 10,
|
||||
MarginStart = 15,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -106,9 +104,9 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_ryujinxLabel = new Label("Ryujinx")
|
||||
{
|
||||
MarginTop = 15,
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList()
|
||||
MarginTop = 15,
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_ryujinxLabel.Attributes.Insert(new Pango.AttrScale(2.7f));
|
||||
|
||||
@@ -117,7 +115,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_ryujinxPhoneticLabel = new Label("(REE-YOU-JINX)")
|
||||
{
|
||||
Justify = Justification.Center
|
||||
Justify = Justification.Center,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -135,8 +133,8 @@ namespace Ryujinx.Ui.Windows
|
||||
_ryujinxLinkLabel = new Label("www.ryujinx.org")
|
||||
{
|
||||
TooltipText = "Click to open the Ryujinx website in your default browser.",
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList()
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_ryujinxLinkLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
|
||||
@@ -145,9 +143,9 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_versionLabel = new Label(Program.Version)
|
||||
{
|
||||
Expand = true,
|
||||
Expand = true,
|
||||
Justify = Justification.Center,
|
||||
Margin = 5
|
||||
Margin = 5,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -163,7 +161,7 @@ namespace Ryujinx.Ui.Windows
|
||||
{
|
||||
TooltipText = "Click to open the changelog for this version in your default browser.",
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList()
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_changelogLinkLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
|
||||
@@ -172,10 +170,10 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_disclaimerLabel = new Label("Ryujinx is not affiliated with Nintendo™,\nor any of its partners, in any way.")
|
||||
{
|
||||
Expand = true,
|
||||
Justify = Justification.Center,
|
||||
Margin = 5,
|
||||
Attributes = new AttrList()
|
||||
Expand = true,
|
||||
Justify = Justification.Center,
|
||||
Margin = 5,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_disclaimerLabel.Attributes.Insert(new Pango.AttrScale(0.8f));
|
||||
|
||||
@@ -184,7 +182,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_amiiboApiLink = new EventBox()
|
||||
{
|
||||
Margin = 5
|
||||
Margin = 5,
|
||||
};
|
||||
_amiiboApiLink.ButtonPressEvent += AmiiboApiButton_Pressed;
|
||||
|
||||
@@ -194,8 +192,8 @@ namespace Ryujinx.Ui.Windows
|
||||
_amiiboApiLinkLabel = new Label("AmiiboAPI (www.amiiboapi.com) is used\nin our Amiibo emulation.")
|
||||
{
|
||||
TooltipText = "Click to open the AmiiboAPI website in your default browser.",
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList()
|
||||
Justify = Justification.Center,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_amiiboApiLinkLabel.Attributes.Insert(new Pango.AttrScale(0.9f));
|
||||
|
||||
@@ -204,8 +202,8 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_socialBox = new Box(Orientation.Horizontal, 0)
|
||||
{
|
||||
Margin = 25,
|
||||
MarginBottom = 10
|
||||
Margin = 25,
|
||||
MarginBottom = 10,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -213,7 +211,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_patreonEventBox = new EventBox()
|
||||
{
|
||||
TooltipText = "Click to open the Ryujinx Patreon page in your default browser."
|
||||
TooltipText = "Click to open the Ryujinx Patreon page in your default browser.",
|
||||
};
|
||||
_patreonEventBox.ButtonPressEvent += PatreonButton_Pressed;
|
||||
|
||||
@@ -227,7 +225,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_patreonLogo = new Image(new Gdk.Pixbuf(Assembly.GetAssembly(typeof(ConfigurationState)), "Ryujinx.Ui.Common.Resources.Logo_Patreon_Light.png", 30, 30))
|
||||
{
|
||||
Margin = 10
|
||||
Margin = 10,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -235,7 +233,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_patreonLabel = new Label("Patreon")
|
||||
{
|
||||
Justify = Justification.Center
|
||||
Justify = Justification.Center,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -243,7 +241,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_githubEventBox = new EventBox()
|
||||
{
|
||||
TooltipText = "Click to open the Ryujinx GitHub page in your default browser."
|
||||
TooltipText = "Click to open the Ryujinx GitHub page in your default browser.",
|
||||
};
|
||||
_githubEventBox.ButtonPressEvent += GitHubButton_Pressed;
|
||||
|
||||
@@ -257,7 +255,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_githubLogo = new Image(new Gdk.Pixbuf(Assembly.GetAssembly(typeof(ConfigurationState)), "Ryujinx.Ui.Common.Resources.Logo_GitHub_Light.png", 30, 30))
|
||||
{
|
||||
Margin = 10
|
||||
Margin = 10,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -265,7 +263,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_githubLabel = new Label("GitHub")
|
||||
{
|
||||
Justify = Justification.Center
|
||||
Justify = Justification.Center,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -278,7 +276,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_discordEventBox = new EventBox()
|
||||
{
|
||||
TooltipText = "Click to open an invite to the Ryujinx Discord server in your default browser."
|
||||
TooltipText = "Click to open an invite to the Ryujinx Discord server in your default browser.",
|
||||
};
|
||||
_discordEventBox.ButtonPressEvent += DiscordButton_Pressed;
|
||||
|
||||
@@ -287,7 +285,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_discordLogo = new Image(new Gdk.Pixbuf(Assembly.GetAssembly(typeof(ConfigurationState)), "Ryujinx.Ui.Common.Resources.Logo_Discord_Light.png", 30, 30))
|
||||
{
|
||||
Margin = 10
|
||||
Margin = 10,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -295,7 +293,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_discordLabel = new Label("Discord")
|
||||
{
|
||||
Justify = Justification.Center
|
||||
Justify = Justification.Center,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -303,7 +301,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_twitterEventBox = new EventBox()
|
||||
{
|
||||
TooltipText = "Click to open the Ryujinx Twitter page in your default browser."
|
||||
TooltipText = "Click to open the Ryujinx Twitter page in your default browser.",
|
||||
};
|
||||
_twitterEventBox.ButtonPressEvent += TwitterButton_Pressed;
|
||||
|
||||
@@ -317,7 +315,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_twitterLogo = new Image(new Gdk.Pixbuf(Assembly.GetAssembly(typeof(ConfigurationState)), "Ryujinx.Ui.Common.Resources.Logo_Twitter_Light.png", 30, 30))
|
||||
{
|
||||
Margin = 10
|
||||
Margin = 10,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -325,7 +323,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_twitterLabel = new Label("Twitter")
|
||||
{
|
||||
Justify = Justification.Center
|
||||
Justify = Justification.Center,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -333,7 +331,7 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_separator = new Separator(Orientation.Vertical)
|
||||
{
|
||||
Margin = 15
|
||||
Margin = 15,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -341,8 +339,8 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_rightBox = new Box(Orientation.Vertical, 0)
|
||||
{
|
||||
Margin = 15,
|
||||
MarginTop = 40
|
||||
Margin = 15,
|
||||
MarginTop = 40,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -350,8 +348,8 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_aboutLabel = new Label("About :")
|
||||
{
|
||||
Halign = Align.Start,
|
||||
Attributes = new AttrList()
|
||||
Halign = Align.Start,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_aboutLabel.Attributes.Insert(new Pango.AttrWeight(Weight.Bold));
|
||||
_aboutLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
@@ -365,7 +363,7 @@ namespace Ryujinx.Ui.Windows
|
||||
"Developers interested in contributing can find out more on our GitHub or Discord.")
|
||||
{
|
||||
Margin = 15,
|
||||
Halign = Align.Start
|
||||
Halign = Align.Start,
|
||||
};
|
||||
|
||||
//
|
||||
@@ -373,8 +371,8 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_createdByLabel = new Label("Maintained by :")
|
||||
{
|
||||
Halign = Align.Start,
|
||||
Attributes = new AttrList()
|
||||
Halign = Align.Start,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_createdByLabel.Attributes.Insert(new Pango.AttrWeight(Weight.Bold));
|
||||
_createdByLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
@@ -384,11 +382,11 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_createdByText = new TextView()
|
||||
{
|
||||
WrapMode = Gtk.WrapMode.Word,
|
||||
Editable = false,
|
||||
WrapMode = Gtk.WrapMode.Word,
|
||||
Editable = false,
|
||||
CursorVisible = false,
|
||||
Margin = 15,
|
||||
MarginRight = 30
|
||||
Margin = 15,
|
||||
MarginEnd = 30,
|
||||
};
|
||||
_createdByText.Buffer.Text = "gdkchan, Ac_K, Thog, rip in peri peri, LDj3SNuD, emmaus, Thealexbarney, Xpl0itR, GoffyDude, »jD« and more...";
|
||||
|
||||
@@ -404,9 +402,9 @@ namespace Ryujinx.Ui.Windows
|
||||
_contributorsLinkLabel = new Label("See All Contributors...")
|
||||
{
|
||||
TooltipText = "Click to open the Contributors page in your default browser.",
|
||||
MarginRight = 30,
|
||||
Halign = Align.End,
|
||||
Attributes = new AttrList()
|
||||
MarginEnd = 30,
|
||||
Halign = Align.End,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_contributorsLinkLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
|
||||
@@ -415,8 +413,8 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_patreonNamesLabel = new Label("Supported on Patreon by :")
|
||||
{
|
||||
Halign = Align.Start,
|
||||
Attributes = new AttrList()
|
||||
Halign = Align.Start,
|
||||
Attributes = new AttrList(),
|
||||
};
|
||||
_patreonNamesLabel.Attributes.Insert(new Pango.AttrWeight(Weight.Bold));
|
||||
_patreonNamesLabel.Attributes.Insert(new Pango.AttrUnderline(Underline.Single));
|
||||
@@ -426,10 +424,10 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_patreonNamesScrolled = new ScrolledWindow()
|
||||
{
|
||||
Margin = 15,
|
||||
MarginRight = 30,
|
||||
Expand = true,
|
||||
ShadowType = ShadowType.In
|
||||
Margin = 15,
|
||||
MarginEnd = 30,
|
||||
Expand = true,
|
||||
ShadowType = ShadowType.In,
|
||||
};
|
||||
_patreonNamesScrolled.SetPolicy(PolicyType.Never, PolicyType.Automatic);
|
||||
|
||||
@@ -438,13 +436,11 @@ namespace Ryujinx.Ui.Windows
|
||||
//
|
||||
_patreonNamesText = new TextView()
|
||||
{
|
||||
WrapMode = Gtk.WrapMode.Word
|
||||
WrapMode = Gtk.WrapMode.Word,
|
||||
};
|
||||
_patreonNamesText.Buffer.Text = "Loading...";
|
||||
_patreonNamesText.SetProperty("editable", new GLib.Value(false));
|
||||
|
||||
#pragma warning restore CS0612
|
||||
|
||||
ShowComponent();
|
||||
}
|
||||
|
||||
@@ -512,4 +508,4 @@ namespace Ryujinx.Ui.Windows
|
||||
ShowAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user