fix dark mode window title bar color and support uosc exclamation mark menu syntax

This commit is contained in:
stax76
2023-11-05 11:15:35 +01:00
parent 1d3fe0a924
commit 684e103e12
3 changed files with 19 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ public partial class MainForm : Form
{
InitializeComponent();
if (Environment.OSVersion.Version >= new Version(10, 0, 18985))
if (Environment.OSVersion.Version >= new Version(10, 0, 18985) && Theme.DarkMode)
DwmSetWindowAttribute(Handle, 20, new[] { 1 }, 4); // DWMWA_USE_IMMERSIVE_DARK_MODE = 20
try