setupTitleColor method
Setup the title color.
Implementation
void setupTitleColor(int? titleColor) {
if (titleColor == null) return;
var value = malloc<COLORREF>()..value = titleColor;
DwmSetWindowAttribute(
hwnd,
DWMWINDOWATTRIBUTE.DWMWA_CAPTION_COLOR,
value,
sizeOf<COLORREF>(),
);
free(value);
}