Fix inconsistent application of colours from GTK theme, if available

still no idea why I can set dark theme on Ubuntu but not Manjaro, but now menus
won't use a white-to-black gradient with white text
This commit is contained in:
YoshiRulz 2022-11-23 02:48:35 +10:00
parent 0711c2b1d6
commit b967e6028d
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 1 additions and 18 deletions

View File

@ -7,7 +7,6 @@ using System.Windows.Forms;
using BizHawk.Client.Common;
using BizHawk.Common;
using BizHawk.WinForms.Controls;
namespace BizHawk.Client.EmuHawk
{
@ -31,7 +30,7 @@ namespace BizHawk.Client.EmuHawk
}
}
public static readonly ToolStripRenderer GlobalToolStripRenderer = new ToolStripProfessionalRenderer(new LinuxColorTable());
public static readonly ToolStripSystemRenderer GlobalToolStripRenderer = new();
private string? _windowTitleStatic;

View File

@ -1,16 +0,0 @@
#nullable enable
using System.Drawing;
using System.Windows.Forms;
namespace BizHawk.WinForms.Controls
{
public sealed class LinuxColorTable : ProfessionalColorTable
{
public override Color MenuStripGradientBegin { get; } = Color.WhiteSmoke;
public override Color ToolStripDropDownBackground { get; } = Color.WhiteSmoke;
public override Color ToolStripGradientEnd { get; } = Color.WhiteSmoke;
}
}