-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable wallpaper sink to set individual wallpapers per screen
- Loading branch information
1 parent
03a63af
commit 678d096
Showing
16 changed files
with
315 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
AllMyLights/Connectors/Sinks/Wallpaper/WallpaperSinkInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace AllMyLights.Connectors.Sinks.Wallpaper | ||
{ | ||
public struct WallpaperSinkInfo | ||
{ | ||
public WallpaperSinkInfo( | ||
string relativeTo, | ||
IEnumerable<string> imageFiles, | ||
IEnumerable<int> screens) | ||
{ | ||
RelativeTo = relativeTo; | ||
ImageFiles = imageFiles; | ||
Screens = screens; | ||
} | ||
|
||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] | ||
public string RelativeTo { get; } | ||
|
||
|
||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "Available file names under specified directory")] | ||
public IEnumerable<string> ImageFiles { get; } | ||
public IEnumerable<int> Screens { get; } | ||
} | ||
} |
4 changes: 1 addition & 3 deletions
4
AllMyLights/Connectors/Sinks/Wallpaper/WallpaperSinkOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace AllMyLights.Extensions | ||
{ | ||
public static class Objects | ||
{ | ||
public static R Let<T, R>(this T self, Func<T, R> block) | ||
{ | ||
return block(self); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
namespace AllMyLights.Platforms | ||
using System.Collections.Generic; | ||
|
||
namespace AllMyLights.Platforms | ||
{ | ||
public interface IDesktop | ||
{ | ||
void SetBackground(string filePath); | ||
void SetBackgrounds(Dictionary<int, string> filePathByScreen); | ||
IEnumerable<int> GetScreens(); | ||
} | ||
} |
Oops, something went wrong.