-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from jeremyknight-me/full-screen-mode
Full screen mode thanks to @LoganRupe
- Loading branch information
Showing
29 changed files
with
832 additions
and
277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
using PhotoCollage.Common.Enums; | ||
|
||
namespace PhotoCollage.Common | ||
namespace PhotoCollage.Common; | ||
|
||
public class CollageSettings | ||
{ | ||
public class CollageSettings | ||
{ | ||
public string Directory { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); | ||
public bool IsGrayscale { get; set; } = false; | ||
public bool IsRandom { get; set; } = true; | ||
public int MaximumRotation { get; set; } = 15; | ||
public int MaximumSize { get; set; } = 500; | ||
public int NumberOfPhotos { get; set; } = 10; | ||
public double Opacity { get; set; } = 1.0; | ||
public BorderType PhotoBorderType { get; set; } = BorderType.Border; | ||
public ScreensaverSpeed Speed { get; set; } = ScreensaverSpeed.Medium; | ||
public bool UseVerboseLogging { get; set; } = false; | ||
} | ||
public string Directory { get; set; } = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); | ||
public bool IsGrayscale { get; set; } = false; | ||
public bool IsRandom { get; set; } = true; | ||
public int MaximumRotation { get; set; } = 15; | ||
public int MaximumSize { get; set; } = 500; | ||
public bool IsFullScreen { get; set; } = false; | ||
public bool RotateBasedOnEXIF { get; set; } = false; | ||
public int NumberOfPhotos { get; set; } = 10; | ||
public double Opacity { get; set; } = 1.0; | ||
public BorderType PhotoBorderType { get; set; } = BorderType.Border; | ||
public ScreensaverSpeed Speed { get; set; } = ScreensaverSpeed.Medium; | ||
public FullScreenMode PhotoFullScreenMode { get; set; } = FullScreenMode.Centered; | ||
public bool UseVerboseLogging { get; set; } = false; | ||
} |
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,7 @@ | ||
namespace PhotoCollage.Common.Enums; | ||
|
||
public enum FullScreenMode | ||
{ | ||
Stretched, | ||
Centered | ||
} |
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,20 @@ | ||
namespace PhotoCollage.Common.Enums; | ||
|
||
public static class FullScreenModeHelper | ||
{ | ||
public const string Stretched = "Stretched"; | ||
public const string Centered = "Centered"; | ||
|
||
public static IDictionary<FullScreenMode, KeyValuePair<string, string>> MakeDictionary() | ||
=> new Dictionary<FullScreenMode, KeyValuePair<string, string>> | ||
{ | ||
{ | ||
FullScreenMode.Stretched, | ||
new KeyValuePair<string, string>(Stretched.ToLower(), Stretched) | ||
}, | ||
{ | ||
FullScreenMode.Centered, | ||
new KeyValuePair<string, string> (Centered.ToLower(), Centered) | ||
} | ||
}; | ||
} |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
public enum ScreensaverSpeed | ||
{ | ||
SuperSlow = 20, | ||
ReallySlow = 10, | ||
Slow = 6, | ||
Medium = 4, | ||
Fast = 2 | ||
|
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
Oops, something went wrong.