Skip to content

Commit 8a55b66

Browse files
committed
correct add darkmode support
1 parent ec4a874 commit 8a55b66

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

NppPlugin/src/NppDarkModeDummy.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#include "stdafx.h" //ADDED BY PYTHONSCRIPT
12
#include "NppDarkMode.h"
23
#include "PluginInterface.h"
34

4-
extern NppData nppData;
5+
//extern NppData nppData;
56

67
static constexpr COLORREF HEXRGB(DWORD rrggbb) {
78
// from 0xRRGGBB like natural #RRGGBB
@@ -17,7 +18,12 @@ namespace NppDarkMode
1718
{
1819
bool isEnabled()
1920
{
20-
return ::SendMessage(nppData._nppHandle, NPPM_ISDARKMODEENABLED, 0, 0);
21+
return false; // ::SendMessage(nppData._nppHandle, NPPM_ISDARKMODEENABLED, 0, 0);
22+
}
23+
24+
HBRUSH getDlgBackgroundBrush()
25+
{
26+
return ::CreateSolidBrush(HEXRGB(0x202020));
2127
}
2228

2329
HBRUSH getDarkerBackgroundBrush()

0 commit comments

Comments
 (0)