-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e793f6
commit cbf5b42
Showing
3 changed files
with
52 additions
and
19 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,6 +1,21 @@ | ||
namespace OpenBudgeteer.Core.Common; | ||
using OpenBudgeteer.Core.Common.Extensions; | ||
|
||
namespace OpenBudgeteer.Core.Common; | ||
|
||
public static class AppSettings | ||
{ | ||
public enum ThemeMode { Light, Dark } | ||
|
||
public static string Theme { get; set; } = "default"; | ||
|
||
public static ThemeMode Mode => Theme switch | ||
{ | ||
"cyborg" or | ||
"darkly" or | ||
"slate" or | ||
"solar" or | ||
"superhero" or | ||
"vapor" => ThemeMode.Dark, | ||
_ => ThemeMode.Light | ||
}; | ||
} |