summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Models
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-13 23:00:49 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-13 23:00:49 -0400
commit504733dec7d629335b83841af38cd5da91d5231f (patch)
tree8cbf16a7218996e48bca3de20dc502ea37bd68c4 /src/SMAPI/Framework/Models
parenta3ade7a5126642f42794281057349fa5ff737cdd (diff)
downloadSMAPI-504733dec7d629335b83841af38cd5da91d5231f.tar.gz
SMAPI-504733dec7d629335b83841af38cd5da91d5231f.tar.bz2
SMAPI-504733dec7d629335b83841af38cd5da91d5231f.zip
fix console color scheme for PowerShell, and make it configurable
Diffstat (limited to 'src/SMAPI/Framework/Models')
-rw-r--r--src/SMAPI/Framework/Models/MonitorColorScheme.cs15
-rw-r--r--src/SMAPI/Framework/Models/SConfig.cs3
2 files changed, 18 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Models/MonitorColorScheme.cs b/src/SMAPI/Framework/Models/MonitorColorScheme.cs
new file mode 100644
index 00000000..d8289d08
--- /dev/null
+++ b/src/SMAPI/Framework/Models/MonitorColorScheme.cs
@@ -0,0 +1,15 @@
+namespace StardewModdingAPI.Framework.Models
+{
+ /// <summary>A monitor color scheme to use.</summary>
+ internal enum MonitorColorScheme
+ {
+ /// <summary>Choose a color scheme automatically.</summary>
+ AutoDetect,
+
+ /// <summary>Use lighter text colors that look better on a black or dark background.</summary>
+ DarkBackground,
+
+ /// <summary>Use darker text colors that look better on a white or light background.</summary>
+ LightBackground
+ }
+}
diff --git a/src/SMAPI/Framework/Models/SConfig.cs b/src/SMAPI/Framework/Models/SConfig.cs
index 2d6da0fa..b504f38b 100644
--- a/src/SMAPI/Framework/Models/SConfig.cs
+++ b/src/SMAPI/Framework/Models/SConfig.cs
@@ -20,5 +20,8 @@ namespace StardewModdingAPI.Framework.Models
/// <summary>Whether SMAPI should log more information about the game context.</summary>
public bool VerboseLogging { get; set; }
+
+ /// <summary>The console color scheme to use.</summary>
+ public MonitorColorScheme ColorScheme { get; set; }
}
}