Page 1 of 1

Apply Dark Theme to Your MsgBox

Posted: 18 Apr 2024, 15:39
by NPerovic
The original built-in MsgBox is too bright to you? Try this!

image.png
(18.27 KiB) Downloaded 46 times

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"
Example for v2.0

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)

Re: Apply Dark Theme to Your MsgBox

Posted: 11 May 2024, 23:57
by Joeyy
Thanks! Can you share the code for dark UIAViewer?