Skip to content

Commit

Permalink
Add Sequoia theme and fix theme CLI command
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Aug 25, 2024
1 parent 2f0d9b2 commit 8c1c6fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/IpcManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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('/'))
{
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/resources/default_themes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added src/resources/images/Sequoia_Abstract_day.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/resources/images/Sequoia_Abstract_night.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c1c6fb

Please sign in to comment.