Is is possible to change the appearance of the scroll bar of Scintilla/SciTE?

41 views
Skip to first unread message

Kevin Wang

unread,
Aug 18, 2024, 9:26:09 AMAug 18
to scintilla...@googlegroups.com
Hi, Neil and other buddies who love Scintilla,

I want to change Scintilla into dark mode, but seems I cannot change the scroll bar. I know Scintilla is using the standard scrollbar of Windows. Is it possible to change it to "Dark" mode?

image.png

Here is the outlook of Notepad++, seems it is good:
image.png

Regards,

Kevin

Robert Di Pardo

unread,
Aug 18, 2024, 12:55:27 PMAug 18
to scintilla-interest
Notepad++ achieves this by invoking a Windows API that became available in build 17763 of Windows, or W10 1809:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/c1954e5c447cdaaeb004315ed7db2c0cf29d764c/PowerEditor/src/NppDarkMode.cpp#L3137-L3145

The given application is responsible for its own window appearance. Scintilla is only an editing component.

Kevin Wang

unread,
Aug 18, 2024, 6:49:00 PMAug 18
to scintilla...@googlegroups.com
Thank you Robert!

Please check the below picture. I only add one line and it looks what I am seeking!!!

Thank you!

image.png

--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-inter...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/124ad46d-ae4e-45cc-98c2-5d078a75e1d6n%40googlegroups.com.

Andrew Truckle

unread,
Aug 20, 2024, 2:09:05 PMAug 20
to scintilla-interest
Interesting. I see that this code will give dark mode scroll bars:

SetWindowTheme(m_pMainWnd->GetSafeHwnd(), L"DarkMode_Explorer", nullptr);

But, as I expected, on Windows 11 my MFC dialog itself does not render dark mode. I can get the title bar to render dark mode. But nothing else. 
Reply all
Reply to author
Forward
0 new messages