Skip to content

Commit 8c1c6fb

Browse files
committed
Add Sequoia theme and fix theme CLI command
1 parent 2f0d9b2 commit 8c1c6fb

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

src/IpcManager.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public void ProcessArgs(string[] initialArgs)
6666
{
6767
foreach (string arg in initialArgs)
6868
{
69-
if (arg.ToLower().StartsWith("/theme") && arg.IndexOf('=') != -1)
69+
if (arg.StartsWith("/theme", StringComparison.OrdinalIgnoreCase) && arg.IndexOf('=') != -1)
7070
{
71-
ProcessThemeArg(arg.ToLower());
71+
ProcessThemeArg(arg);
7272
}
7373
else if (arg.StartsWith('/'))
7474
{
@@ -104,9 +104,9 @@ private void ProcessArgs(ApplicationContext app, string[] args)
104104

105105
foreach (string arg in args)
106106
{
107-
if (arg.ToLower().StartsWith("/theme") && arg.IndexOf('=') != -1)
107+
if (arg.StartsWith("/theme", StringComparison.OrdinalIgnoreCase) && arg.IndexOf('=') != -1)
108108
{
109-
string themeId = ProcessThemeArg(arg.ToLower());
109+
string themeId = ProcessThemeArg(arg);
110110
if (themeId != null)
111111
{
112112
ThemeShuffler.AddThemeToHistory(themeId);
@@ -153,11 +153,11 @@ private string ProcessThemeArg(string arg)
153153
return null;
154154
}
155155

156-
if (arg.StartsWith("/theme="))
156+
if (arg.StartsWith("/theme=", StringComparison.OrdinalIgnoreCase))
157157
{
158158
JsonConfig.settings.activeThemes[0] = themeId;
159159
}
160-
else if (arg.StartsWith("/theme:L="))
160+
else if (arg.StartsWith("/theme:L=", StringComparison.OrdinalIgnoreCase))
161161
{
162162
JsonConfig.settings.lockScreenTheme = themeId;
163163
JsonConfig.settings.lockScreenDisplayIndex = -1;

src/resources/default_themes.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ Peak:
3838
- https://gitlab.com/t1m0thyj/wdd-themes/-/package_files/50073297/download
3939
- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Peak.ddw
4040

41+
Sequoia_Abstract:
42+
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/sequoia/Sequoia_Abstract.ddw
43+
- https://gitlab.com/t1m0thyj/wdd-themes/-/package_files/144851881/download
44+
- https://bitbucket.org/t1m0thyj/wdd-themes/downloads/Sequoia_Abstract.ddw
45+
4146
Solar_Gradients:
4247
- https://github.com/t1m0thyj/WDD-mac-themes/releases/download/mojave/Solar_Gradients.ddw
4348
- https://gitlab.com/t1m0thyj/wdd-themes/-/package_files/50073163/download
48.6 KB
Loading
46.4 KB
Loading
Loading

0 commit comments

Comments
 (0)