Apply Dark Theme to Your MsgBox
Posted: 18 Apr 2024, 15:39
The original built-in MsgBox is too bright to you? Try this!
Get Code
For v2.1-alpha.9 users: Click here
For v2.0 users: Click here
Example for v2.1-alpha.9
Example for v2.0
Note
Win 10 doesn't support these 3 lines. So, the result might look slightly different.
Get Code
For v2.1-alpha.9 users: Click here
For v2.0 users: Click here
Example for v2.1-alpha.9
Code: Select all
#requires AutoHotkey v2.1-alpha.9
#include <Dark_MsgBox>
MsgBox "HELLO", "QQQQ"
Code: Select all
#requires AutoHotkey v2
#include <Dark_MsgBox_v2>
MsgBox "HELLO", "QQQQ"
Note
Win 10 doesn't support these 3 lines. So, the result might look slightly different.
Code: Select all
#requires AutoHotkey v2
/* Set DWMWA_SYSTEMBACKDROP with DWMSBT_MAINWINDOW */
DwmSetWindowAttribute(hwnd, 38, 2)
/* Change border color */
DwmSetWindowAttribute(hwnd, 34, 0xFFFFFFFE)
/* Change Title bar color */
DwmSetWindowAttribute(hwnd, 35, 0x2b2b2b)