diff --git a/Ryujinx/ApplicationLibrary.cs b/Ryujinx/ApplicationLibrary.cs
index 25f4233a0d..62ae8e7ffd 100644
--- a/Ryujinx/ApplicationLibrary.cs
+++ b/Ryujinx/ApplicationLibrary.cs
@@ -94,7 +94,7 @@ namespace Ryujinx
byte[] IconData = Read(AssetOffset + IconOffset, (int)IconSize);
- return new Gdk.Pixbuf(IconData, 50, 50);
+ return new Gdk.Pixbuf(IconData, 75, 75);
}
else { return RyujinxROMIcon; }
}
diff --git a/Ryujinx/ControlSettings.cs b/Ryujinx/ControlSettings.cs
deleted file mode 100644
index ef379e8efd..0000000000
--- a/Ryujinx/ControlSettings.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using Gtk;
-using System;
-using System.IO;
-using System.Reflection;
-
-namespace Ryujinx
-{
- public class ControlSettings
- {
- public static void ControlSettingsMenu()
- {
- Window CSWin = new Window(WindowType.Toplevel);
- CSWin.Title = "Control Settings";
- CSWin.Icon = new Gdk.Pixbuf("./ryujinxIcon.png");
- CSWin.Resizable = false;
- CSWin.WindowPosition = WindowPosition.Center;
- CSWin.SetDefaultSize(854, 360);
-
- VBox box = new VBox(false, 2);
-
- //settings stuff will replace this block
- Label myLabel = new Label { Text = "Control Settings" };
- box.PackStart(myLabel, true, true, 3);
-
- HBox ButtonBox = new HBox(true, 3);
- Alignment BoxAlign = new Alignment(1, 0, 0, 0);
-
- Button Save = new Button("Save");
- Save.Pressed += (o, args) => Save_Pressed(o, args, CSWin);
- ButtonBox.Add(Save);
-
- Button Cancel = new Button("Cancel");
- Cancel.Pressed += (o, args) => Cancel_Pressed(o, args, CSWin);
- ButtonBox.Add(Cancel);
-
- BoxAlign.SetPadding(0, 5, 0, 7);
- BoxAlign.Add(ButtonBox);
- box.PackStart(BoxAlign, false, false, 3);
-
- CSWin.Add(box);
- CSWin.ShowAll();
- }
-
- static void Save_Pressed(object o, EventArgs args, Window window)
- {
- //save settings stuff will go here
- window.Destroy();
- }
-
- static void Cancel_Pressed(object o, EventArgs args, Window window)
- {
- window.Destroy();
- }
- }
-}
diff --git a/Ryujinx/GeneralSettings.cs b/Ryujinx/GeneralSettings.cs
index abc937fe5d..99c47f39a0 100644
--- a/Ryujinx/GeneralSettings.cs
+++ b/Ryujinx/GeneralSettings.cs
@@ -29,8 +29,8 @@ namespace Ryujinx
[GUI] CheckButton CustThemeToggle;
[GUI] Entry CustThemeDir;
[GUI] TextView GameDirsBox;
- [GUI] Button SaveButton;
- [GUI] Button CancelButton;
+ [GUI] ToggleButton SaveToggle;
+ [GUI] ToggleButton CloseToggle;
public static void ConfigureSettings(Configuration Instance) { SwitchConfig = Instance; }
@@ -42,8 +42,8 @@ namespace Ryujinx
builder.Autoconnect(this);
- SaveButton.Activated += SaveButton_Activated;
- CancelButton.Activated += CancelButton_Activated;
+ SaveToggle.Toggled += SaveToggle_Activated;
+ CloseToggle.Toggled += CloseToggle_Activated;
CustThemeToggle.Clicked += CustThemeToggle_Activated;
if (SwitchConfig.LoggingEnableError) { ErrorLogToggle.Click(); }
@@ -69,23 +69,19 @@ namespace Ryujinx
}
//Events
- private void SaveButton_Activated(object obj, EventArgs args)
- {
- //Saving code is about to make this a BIG boi
-
- File.WriteAllText("./GameDirs.dat", GameDirsBox.Buffer.Text);
-
- Destroy();
- }
-
- private void CancelButton_Activated(object obj, EventArgs args)
- {
- Destroy();
- }
-
private void CustThemeToggle_Activated(object obj, EventArgs args)
{
if (CustThemeToggle.Active == false) { CustThemeDir.Sensitive = false; } else { CustThemeDir.Sensitive = true; }
}
+
+ private void CloseToggle_Activated(object obj, EventArgs args)
+ {
+ Destroy();
+ }
+
+ private void SaveToggle_Activated(object obj, EventArgs args)
+ {
+ File.WriteAllText("./GameDirs.dat", GameDirsBox.Buffer.Text);
+ }
}
}
diff --git a/Ryujinx/GeneralSettings.glade b/Ryujinx/GeneralSettings.glade
index c6a4da0d23..c8012370e5 100644
--- a/Ryujinx/GeneralSettings.glade
+++ b/Ryujinx/GeneralSettings.glade
@@ -404,8 +404,8 @@
-
-
- Cancel
+
+ Toggle to Close
True
True
True
diff --git a/Ryujinx/MainMenu.cs b/Ryujinx/MainMenu.cs
index acf468080e..1426ecbfab 100644
--- a/Ryujinx/MainMenu.cs
+++ b/Ryujinx/MainMenu.cs
@@ -16,6 +16,7 @@ namespace Ryujinx
//UI Controls
[GUI] MenuItem NFC;
+ [GUI] MenuItem ControlSettingsMenu;
[GUI] TreeView GameTable;
public MainMenu(HLE.Switch _device, Application _gtkapp) : this(new Builder("Ryujinx.MainMenu.glade"), _device, _gtkapp) { }
@@ -40,7 +41,8 @@ namespace Ryujinx
DeleteEvent += Window_Close;
//disable some buttons
- NFC.Sensitive = false;
+ NFC.Sensitive = false;
+ ControlSettingsMenu.Sensitive = false;
//Games grid thing
GameTable.AppendColumn("Icon", new CellRendererPixbuf(), "pixbuf", 0);
@@ -203,11 +205,6 @@ namespace Ryujinx
GSWin.Show();
}
- private void Control_Settings_Pressed(object o, EventArgs args)
- {
- ControlSettings.ControlSettingsMenu();
- }
-
private void NFC_Pressed(object o, EventArgs args)
{
FileChooserDialog fc = new FileChooserDialog("Choose the file to open", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept);
diff --git a/Ryujinx/MainMenu.glade b/Ryujinx/MainMenu.glade
index 572f5b31ba..6bd0fe52c2 100644
--- a/Ryujinx/MainMenu.glade
+++ b/Ryujinx/MainMenu.glade
@@ -94,7 +94,6 @@
False
Control Settings
True
-
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs
index f55675d22d..3123782acd 100644
--- a/Ryujinx/Program.cs
+++ b/Ryujinx/Program.cs
@@ -8,7 +8,6 @@ using Ryujinx.Profiler;
using System;
using System.IO;
using System.Linq;
-using System.Reflection;
namespace Ryujinx
{
@@ -24,6 +23,8 @@ namespace Ryujinx
{
Console.Title = "Ryujinx Console";
+ Environment.SetEnvironmentVariable("Path", $"{new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory).Parent}\\bin;{Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Machine)}");
+
IGalRenderer renderer = new OglRenderer();
IAalOutput audioOut = InitializeAudioEngine();
diff --git a/Ryujinx/Theme.css b/Ryujinx/Theme.css
index c4e0f677b0..63cf860e9a 100644
--- a/Ryujinx/Theme.css
+++ b/Ryujinx/Theme.css
@@ -67,6 +67,11 @@ button {
color: #F4F6F7;
}
+filechooser #pathbarbox {
+ background-color: #272b2e;
+ border-bottom: 1px solid #595c5f;
+}
+
scrollbar {
-GtkScrollbar-has-backward-stepper: false;
-GtkScrollbar-has-forward-stepper: false;
diff --git a/Ryujinx/ryujinxROMIcon.png b/Ryujinx/ryujinxROMIcon.png
index afdec7c787..84dd5906c5 100644
Binary files a/Ryujinx/ryujinxROMIcon.png and b/Ryujinx/ryujinxROMIcon.png differ