Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
Added XML Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Jan 8, 2022
1 parent 64ad7d8 commit 1bc964c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions LeoCorpLibrary/Env.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,12 @@ public static void LaunchUWPApp(string packageFamilyName, string applicationID)
Process.Start("explorer.exe", $@"shell:appsFolder\{packageFamilyName}!{applicationID}"); // Synthax to launch UWP apps
}

/// <summary>
/// Gets the current <see cref="SystemThemes"/> of the operating system (Windows only).
/// </summary>
/// <remarks>
/// Returns <see cref="SystemThemes.Light"/> by default.
/// </remarks>
public static SystemThemes SystemTheme
{
get
Expand All @@ -554,10 +560,24 @@ public static SystemThemes SystemTheme
}
}

/// <summary>
/// Available themes on Windows.
/// </summary>
public enum SystemThemes
{
/// <summary>
/// Dark theme.
/// </summary>
Dark,

/// <summary>
/// Light theme.
/// </summary>
Light,

/// <summary>
/// Unknown theme/OS not supported.
/// </summary>
Unknown
}

Expand Down

0 comments on commit 1bc964c

Please # to comment.