aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/App.axaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Ava/App.axaml.cs')
-rw-r--r--src/Ryujinx.Ava/App.axaml.cs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/Ryujinx.Ava/App.axaml.cs b/src/Ryujinx.Ava/App.axaml.cs
index c1a3ab3e..54e61c67 100644
--- a/src/Ryujinx.Ava/App.axaml.cs
+++ b/src/Ryujinx.Ava/App.axaml.cs
@@ -12,7 +12,6 @@ using Ryujinx.Ui.Common.Configuration;
using Ryujinx.Ui.Common.Helper;
using System;
using System.Diagnostics;
-using System.IO;
namespace Ryujinx.Ava
{
@@ -90,8 +89,6 @@ namespace Ryujinx.Ava
try
{
string baseStyle = ConfigurationState.Instance.Ui.BaseStyle;
- string themePath = ConfigurationState.Instance.Ui.CustomThemePath;
- bool enableCustomTheme = ConfigurationState.Instance.Ui.EnableCustomTheme;
if (string.IsNullOrWhiteSpace(baseStyle))
{
@@ -106,24 +103,6 @@ namespace Ryujinx.Ava
"Dark" => ThemeVariant.Dark,
_ => ThemeVariant.Default,
};
-
- if (enableCustomTheme)
- {
- if (!string.IsNullOrWhiteSpace(themePath))
- {
- try
- {
- var themeContent = File.ReadAllText(themePath);
- var customStyle = AvaloniaRuntimeXamlLoader.Parse<IStyle>(themeContent);
-
- Styles.Add(customStyle);
- }
- catch (Exception ex)
- {
- Logger.Error?.Print(LogClass.Application, $"Failed to Apply Custom Theme. Error: {ex.Message}");
- }
- }
- }
}
catch (Exception)
{