// Decompiled with JetBrains decompiler // Type: Raton.Classes.DarkMode // Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null // MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7 // Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe using DarkModeForms; using System; using System.Drawing; using System.Runtime.InteropServices; using System.Windows.Forms; #nullable disable namespace Raton.Classes; public static class DarkMode { private static readonly DarkModeCS.DisplayMode darkMode = DarkModeCS.DisplayMode.DarkMode; private const int DWMWA_BORDER_COLOR = 34; [DllImport("dwmapi.dll")] private static extern int DwmSetWindowAttribute( IntPtr hwnd, int dwAttribute, ref int pvAttribute, int cbAttribute); public static void Start(Form form) { new DarkModeCS(form).ColorMode = DarkMode.darkMode; Color color = Color.FromArgb(174, (int) sbyte.MaxValue, 226); DarkMode.SetBorderColor(form, color); } private static void SetBorderColor(Form form, Color color) { int pvAttribute = (int) color.R | (int) color.G << 8 | (int) color.B << 16 /*0x10*/; DarkMode.DwmSetWindowAttribute(form.Handle, 34, ref pvAttribute, 4); } }