I personally hate dark mode, but there is an increasing demand for it.
A recent
article from Vadz explains the basics, and looks straightforward to implement the call to SetAppearance() and a setting with three options: use system default, use light and use dark.
EDIT: probably cbStyledTextCtrl needs an update, so this may be not so straightforward.