Dark UI mode hacked into SciTE for Win 10/11

64 views
Skip to first unread message

Frank Schuster

unread,
Oct 21, 2024, 4:37:30 AM10/21/24
to scite-interest
Hi Neil, hi list,

since there are more and more vampire coders who can't stand light
(UIs), I recently hacked full dark UI mode into SciTE for Windows 10/11,
and I thought I'd share the result with you:

https://github.com/59de44955ebd/Dark-SciTE-for-Windows

Screenshot:
https://github.com/59de44955ebd/Dark-SciTE-for-Windows/blob/main/screenshots/dark-scite-win11.png

Direct link to the x64 release:
https://github.com/59de44955ebd/Dark-SciTE-for-Windows/releases/download/v1.0/scite-win-x64.zip

For now it's only a proof of concept, the changes would need some cleanup before providing patches.

Best regards

Neil Hodgson

unread,
Oct 21, 2024, 6:13:09 PM10/21/24
to scite-interest
Hi 59de44955ebd,

since there are more and more vampire coders who can't stand light

One day we will be able to assist those who have strayed back to the side of light and righteousness.

(UIs), I recently hacked full dark UI mode into SciTE for Windows 10/11,
and I thought I'd share the result with you:

That really is hacked. Moving the directories and files around makes it more difficult to understand how it has changed.

I see that there are copies of the button images with inverted colours. This can be done programmatically from the original images. There is some code like this in the GTK version where the grey-scale values are converted to alphas in WCheckDraw::Create.

The macOS version of SciTE supports the system-wide dark appearance.
https://www.scintilla.org/DarkModeMac.png

For now it's only a proof of concept, the changes would need some cleanup before providing patches.

Yes.  

Neil

Frank Schuster

unread,
Oct 22, 2024, 5:12:41 AM10/22/24
to scite-interest
Hi Neil,


> That really is hacked. Moving the directories and files around makes it more difficult to understand how it has changed.

I completely understand, but I had to rearrange the code only a little for myself to be able to handle it in Visual Studio.
But I only made those 2 changes to the structure:

- I renamed previous folder "win32" to "win"
- I moved all non-code files (BMPs etc) from "win" to a new folder "res", so "win" now only contains code (.cxx and .h)

That's it.

I only added the following 2 new files to the code base:
- win/Dark.cxx (https://github.com/59de44955ebd/Dark-SciTE-for-Windows/blob/main/src/win/Dark.cxx)
- win/Dark.h (https://github.com/59de44955ebd/Dark-SciTE-for-Windows/blob/main/src/win/Dark.h)

And the only existing files I changed are those that now include "Dark.h" at the top, those are:
- win/SciTEWin.cxx
- win/SciTEWinBar.cxx
- win/SciTEWinDlg.cxx
- win/Strips.cxx

Other than that, nothing has changed.

The new dark toolbar BMPs "toolbar.bmp" and "toolbar24.bmp" are not just inverted versions of existing images, that didn't look good, so I instead used some new b/w icons for those.

Best regards
Reply all
Reply to author
Forward
0 new messages