diff --git a/src/IpcManager.cs b/src/IpcManager.cs index 1faffaf..a31177c 100644 --- a/src/IpcManager.cs +++ b/src/IpcManager.cs @@ -66,9 +66,9 @@ public void ProcessArgs(string[] initialArgs) { foreach (string arg in initialArgs) { - if (arg.ToLower().StartsWith("/theme") && arg.IndexOf('=') != -1) + if (arg.StartsWith("/theme", StringComparison.OrdinalIgnoreCase) && arg.IndexOf('=') != -1) { - ProcessThemeArg(arg.ToLower()); + ProcessThemeArg(arg); } else if (arg.StartsWith('/')) { @@ -104,9 +104,9 @@ private void ProcessArgs(ApplicationContext app, string[] args) foreach (string arg in args) { - if (arg.ToLower().StartsWith("/theme") && arg.IndexOf('=') != -1) + if (arg.StartsWith("/theme", StringComparison.OrdinalIgnoreCase) && arg.IndexOf('=') != -1) { - string themeId = ProcessThemeArg(arg.ToLower()); + string themeId = ProcessThemeArg(arg); if (themeId != null) { ThemeShuffler.AddThemeToHistory(themeId); @@ -153,11 +153,11 @@ private string ProcessThemeArg(string arg) return null; } - if (arg.StartsWith("/theme=")) + if (arg.StartsWith("/theme=", StringComparison.OrdinalIgnoreCase)) { JsonConfig.settings.activeThemes[0] = themeId; } - else if (arg.StartsWith("/theme:L=")) + else if (arg.StartsWith("/theme:L=", StringComparison.OrdinalIgnoreCase)) { JsonConfig.settings.lockScreenTheme = themeId; JsonConfig.settings.lockScreenDisplayIndex = -1; diff --git a/src/resources/default_themes.yaml b/src/resources/default_themes.yaml index 46df22b..1ddce69 100644 --- a/src/resources/default_themes.yaml +++ b/src/resources/default_themes.yaml @@ -38,6 +38,11 @@ Peak: - https://gitlab.com/t1m0thyj/wdd-themes/-/package_files/50073297/download - https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Peak.ddw +Sequoia_Abstract: +- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/sequoia/Sequoia_Abstract.ddw +- https://gitlab.com/t1m0thyj/wdd-themes/-/package_files/144851881/download +- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Sequoia_Abstract.ddw + Solar_Gradients: - https://github.com/t1m0thyj/WDD-mac-themes/releases/download/mojave/Solar_Gradients.ddw - https://gitlab.com/t1m0thyj/wdd-themes/-/package_files/50073163/download diff --git a/src/resources/images/Sequoia_Abstract_day.jpg b/src/resources/images/Sequoia_Abstract_day.jpg new file mode 100644 index 0000000..4450af9 Binary files /dev/null and b/src/resources/images/Sequoia_Abstract_day.jpg differ diff --git a/src/resources/images/Sequoia_Abstract_night.jpg b/src/resources/images/Sequoia_Abstract_night.jpg new file mode 100644 index 0000000..8e8f81d Binary files /dev/null and b/src/resources/images/Sequoia_Abstract_night.jpg differ diff --git a/src/resources/images/Sequoia_Abstract_thumbnail.jpg b/src/resources/images/Sequoia_Abstract_thumbnail.jpg new file mode 100644 index 0000000..c8705b3 Binary files /dev/null and b/src/resources/images/Sequoia_Abstract_thumbnail.jpg differ