From c4e251afa0793313907b5e68a94af852681dfb79 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Wed, 7 Feb 2024 13:09:59 +0100 Subject: [PATCH] UI Tweaks --- app/Settings.cs | 9 --------- app/UI/RForm.cs | 10 +++++++++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/Settings.cs b/app/Settings.cs index f3fe0d943..bbaec21c5 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -47,15 +47,6 @@ public partial class SettingsForm : RForm bool batteryMouseOver = false; bool batteryFullMouseOver = false; - protected override CreateParams CreateParams - { - get - { - CreateParams cp = base.CreateParams; - cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED - return cp; - } - } public SettingsForm() { diff --git a/app/UI/RForm.cs b/app/UI/RForm.cs index 804d6c6a4..2f203e01a 100644 --- a/app/UI/RForm.cs +++ b/app/UI/RForm.cs @@ -28,7 +28,15 @@ public class RForm : Form private static extern int DwmSetWindowAttribute(nint hwnd, int attr, int[] attrValue, int attrSize); public bool darkTheme = false; - + protected override CreateParams CreateParams + { + get + { + var parms = base.CreateParams; + parms.Style &= ~0x02000000; // Turn off WS_CLIPCHILDREN + return parms; + } + } public static void InitColors(bool darkTheme) { if (darkTheme)