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:
parent
0711c2b1d6
commit
b967e6028d
|
@ -7,7 +7,6 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
using BizHawk.Client.Common;
|
using BizHawk.Client.Common;
|
||||||
using BizHawk.Common;
|
using BizHawk.Common;
|
||||||
using BizHawk.WinForms.Controls;
|
|
||||||
|
|
||||||
namespace BizHawk.Client.EmuHawk
|
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;
|
private string? _windowTitleStatic;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue