Skip to content

Commit 5f1e7bd

Browse files
committed
Replaced deprecated NPPM_ADDTOOLBARICON with NPPM_ADDTOOLBARICON_FORDARKMODE to support dark mode icons
1 parent 2efb1fc commit 5f1e7bd

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)