Skip to content

Commit 529a283

Browse files
authored
Merge pull request kbilsted#96 from Fruchtzwerg94/dark_mode_icons
Replaced deprecated NPPM_ADDTOOLBARICON
2 parents 43cf1aa + 16d1228 commit 529a283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Visual Studio Project Template C#/PluginInfrastructure/NotepadPPGateway.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void AddToolbarIcon(int funcItemsIndex, toolbarIcons icon)
4141
Marshal.StructureToPtr(icon, pTbIcons, false);
4242
_ = Win32.SendMessage(
4343
PluginBase.nppData._nppHandle,
44-
(uint) NppMsg.NPPM_ADDTOOLBARICON,
44+
(uint) NppMsg.NPPM_ADDTOOLBARICON_FORDARKMODE,
4545
PluginBase._funcItems.Items[funcItemsIndex]._cmdID,
4646
pTbIcons);
4747
} finally {

0 commit comments

Comments
 (0)