diff --git a/src/BizHawk.Client.EmuHawk/FormBase.cs b/src/BizHawk.Client.EmuHawk/FormBase.cs index a0ca4c8b31..04f01394ca 100644 --- a/src/BizHawk.Client.EmuHawk/FormBase.cs +++ b/src/BizHawk.Client.EmuHawk/FormBase.cs @@ -13,6 +13,8 @@ namespace BizHawk.Client.EmuHawk { private const string PLACEHOLDER_TITLE = "(will take value from WindowTitle/WindowTitleStatic)"; + private static readonly bool IsUsingGTKThemeWorkaround = string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GTK_DATA_PREFIX") ?? "UNSET"); + /// /// Under Mono, SystemColors.Control returns an ugly beige.
/// This method recursively replaces the of the given (can be a ) with @@ -76,7 +78,7 @@ namespace BizHawk.Client.EmuHawk Close(); return; } - if (OSTailoredCode.IsUnixHost) FixBackColorOnControls(this); + if (OSTailoredCode.IsUnixHost && !IsUsingGTKThemeWorkaround) FixBackColorOnControls(this); UpdateWindowTitle(); }