Open zufuliu opened 5 years ago
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.
'Set built-in style for Batch label to eolfilled.' Thank you very much.
I think dark mode / theme is ready, I added a new screenshot for v4.19.04.
Menu, toolbar and statusbar requires complicate custom drawing for dark mode, are not implemented.
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/.
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 can you try v4.19.12.r2604 and replace Notepad2 DarkTheme.ini with the one in zip.
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.
Unfortunately, Notepad2 doesn't auto discover theme files.
With the import feature, I can easily use my favorite light and dark!
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;
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
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?
Hi @ejm554, the settings menu is Scheme -> Style Theme.
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.
Hi @ejm554 please download latest release from https://github.com/zufuliu/notepad2/releases
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
Notepad3 using Windows 11 Default theme
Notepad2 using Windows 11 Dark theme
Notepad2 using Windows 11 Dark theme but Dark Style manually enabled
尝试了6个轻量级的编辑器,有的语法高亮、自动补全不够智能,有的折叠识别有问题,有的查找替换不好用,你的这个是最好用的,就是晚上太刺眼了,如果主界面也能应用黑暗模式就完美了。 感谢你一直以来的开发!
哈哈,通过简单的整合三方的代码,我已经完成了主界面的黑暗模式,效果如下图:
有需要可以到我的 fork 中下载预编译版本,或通过 cmake
自行编译 DarkMode
分支。
必须提到的是,因为本人不喜欢白模式,所以是直接硬编码无法设置回白天模式。
如果有暗模式和txt超链接,就不用notepad3当默认编辑器了。
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.