summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Monitor.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-13 23:54:44 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-13 23:54:44 -0400
commit0d5278a270a0d51baefe99cf908f532a66489602 (patch)
tree970ca05bc0c7997b4f7845161d53469318e6ccec /src/SMAPI/Framework/Monitor.cs
parent45f4f85b7e74e0cffd345310d6aabc95c12dac26 (diff)
downloadSMAPI-0d5278a270a0d51baefe99cf908f532a66489602.tar.gz
SMAPI-0d5278a270a0d51baefe99cf908f532a66489602.tar.bz2
SMAPI-0d5278a270a0d51baefe99cf908f532a66489602.zip
use light-background color scheme on Mac by default
Diffstat (limited to 'src/SMAPI/Framework/Monitor.cs')
-rw-r--r--src/SMAPI/Framework/Monitor.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Monitor.cs b/src/SMAPI/Framework/Monitor.cs
index da025ab9..a76afc3c 100644
--- a/src/SMAPI/Framework/Monitor.cs
+++ b/src/SMAPI/Framework/Monitor.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
+using StardewModdingAPI.Common;
using StardewModdingAPI.Framework.Logging;
using StardewModdingAPI.Framework.Models;
@@ -153,7 +154,12 @@ namespace StardewModdingAPI.Framework
{
// auto detect color scheme
if (colorScheme == MonitorColorScheme.AutoDetect)
- colorScheme = Monitor.IsDark(Console.BackgroundColor) ? MonitorColorScheme.DarkBackground : MonitorColorScheme.LightBackground;
+ {
+ if (Constants.TargetPlatform == Platform.Mac)
+ colorScheme = MonitorColorScheme.LightBackground; // MacOS doesn't provide console background color info, but it's usually white.
+ else
+ colorScheme = Monitor.IsDark(Console.BackgroundColor) ? MonitorColorScheme.DarkBackground : MonitorColorScheme.LightBackground;
+ }
// get colors for scheme
switch (colorScheme)