notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

Dark Mode

Open zufuliu opened this issue 6 years ago • 31 comments

2nd default scheme now configured as base style for dark mode (commit f587369d0711c015ff42623f4e6dbedccb2ae509).

Built-in lexer styles still not configured for dark mode, some color (red, blue, etc.) is very ugly in dark mode. dark-python

zufuliu avatar Feb 27 '19 11:02 zufuliu

Basically, it would be nice if the color caret is the opposite of the background color. Even with various color background settings, the carats will be visible.

and, some opinion. issue - Batch - label 'fore: # C80000; back: # F4F4F4; eolfilled ' It would be nice to change it to the default value.

testinsovr avatar Feb 27 '19 12:02 testinsovr

'Set built-in style for Batch label to eolfilled.' Thank you very much.

testinsovr avatar Feb 27 '19 23:02 testinsovr

I think dark mode / theme is ready, I added a new screenshot for v4.19.04.

v4.19.04

Menu, toolbar and statusbar requires complicate custom drawing for dark mode, are not implemented.

zufuliu avatar Apr 08 '19 00:04 zufuliu

The white area above auto-completion box on win10 (above screenshot by v4.19.04) was removed in v4.19.06. Related discussion can be found at https://sourceforge.net/p/scintilla/feature-requests/1284/.

v4.19.06

zufuliu avatar Jun 10 '19 12:06 zufuliu

Hi,zu did you get this one patched for the new version? I am running 4.19.06 r2148 now, cursor is still invisible in the dark mode

jzhao2007 avatar Dec 16 '19 15:12 jzhao2007

@jzhao2007 can you try v4.19.12.r2604 and replace Notepad2 DarkTheme.ini with the one in zip.

zufuliu avatar Dec 16 '19 23:12 zufuliu

Hi! I created 18 color themes. maboroshin/Notepad2ColorTheme

My recommendations: In order, Solarized Dark, Iceburg (Dark), Solarized Light. My tweaks are now visible in probably all languages. In Solarized (Notepad2_Solarized.ini), color scheme 1 is light and color scheme 2 is dark. But some languages in this light theme are a bit darker.

maboroshin avatar Jan 21 '20 15:01 maboroshin

Unfortunately, Notepad2 doesn't auto discover theme files.

zufuliu avatar Jan 30 '20 14:01 zufuliu

With the import feature, I can easily use my favorite light and dark!

maboroshin avatar Jan 31 '20 15:01 maboroshin

There are code to detect system dark mode on Win 10:

https://sourceforge.net/p/scintilla/scite/ci/09b21fe9d954ba1b350289fdbe7b16d59f7134ac/

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize
    AppsUseLightTheme           REG_DWORD
    SystemUsesLightTheme        REG_DWORD
HIGHCONTRAST info{};
info.cbSize = sizeof(HIGHCONTRAST)
SystemParametersInfo(SPI_GETHIGHCONTRAST, 0, &info, 0);
info.dwFlags & HCF_HIGHCONTRASTON;

zufuliu avatar May 20 '20 12:05 zufuliu

This is simple.

If the system is in dark mode when Notepad2's auto-detection setting is on, apply the dark theme. New menu: Style Theme -> Auto Detect (or System Color ... etc)

Apps such as the following are already auto-detected.

maboroshin avatar Jun 01 '20 23:06 maboroshin

It can be added later. by the way, you can use DarkTheme.ini (in Notepad2 section in Notepad2.ini) to set custom theme file path, without import.

[Notepad2]
;Notepad2.ini=%LOCALAPPDATA%\Notepad2\Notepad2.ini
;DarkTheme.ini=%LOCALAPPDATA%\Notepad2\Notepad2 DarkTheme.ini
[Settings]
SettingsVersion=1

zufuliu avatar Jun 02 '20 00:06 zufuliu

Question from occasional user (but still a fan!) of Notepad2.

How do you turn Dark Mode on? Is there a setting in the GUI? Do I need to configure the .ini or other files?

ejm554 avatar Oct 29 '22 16:10 ejm554

Hi @ejm554, the settings menu is Scheme -> Style Theme.

zufuliu avatar Oct 29 '22 23:10 zufuliu

Thanks, but still struggling to find it. Is it in one of the following menus/windows? Or am I missing something? I also tried turning on the 2nd default scheme, as noted in the original post in this issue thread, but I didn't notice any changes.

If you could provide more explicit steps, maybe with screenshots, that might help! FYI, I'm running 4.2.25 r998.

image

image

ejm554 avatar Nov 19 '22 16:11 ejm554

Hi @ejm554 please download latest release from https://github.com/zufuliu/notepad2/releases Dark

zufuliu avatar Nov 19 '22 22:11 zufuliu

Hey all. Could full dark mode support be added where the entire UI can be made dark (preferably based on OS setting like previously mentioned in the thread)? I am a big fan of this fork of Notepad2 with all its features, but during night time I reluctantly use alternatives due to this.

Notepad3 implemented it using https://github.com/ysc3839/win32-darkmode/

Notepad3 using Windows 11 Dark theme np3dark

Notepad3 using Windows 11 Default theme np3light

Notepad2 using Windows 11 Dark theme np2dark

Notepad2 using Windows 11 Dark theme but Dark Style manually enabled np2darksyntax

spode avatar Feb 24 '23 11:02 spode