From 1dc3cf591258453a282785335fa8107663d4811b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 24 Oct 2024 18:07:19 +0300 Subject: =?UTF-8?q?fixes=20#4758=20(StdMsg/Scriver:=20=D0=B4=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA?= =?UTF-8?q?=D1=83=20"=D0=B7=D0=B0=D1=87=D0=B5=D1=80=D0=BA=D0=BD=D1=83?= =?UTF-8?q?=D1=82=D1=8B=D0=B9=20=D1=82=D0=B5=D0=BA=D1=81=D1=82")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/Scriver/src/globals.cpp | 17 +++++++++-------- plugins/Scriver/src/msgs.cpp | 11 +++++++++-- plugins/Scriver/src/resource.h | 1 + 3 files changed, 19 insertions(+), 10 deletions(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/globals.cpp b/plugins/Scriver/src/globals.cpp index a6e7023f36..aa9966bcbe 100644 --- a/plugins/Scriver/src/globals.cpp +++ b/plugins/Scriver/src/globals.cpp @@ -52,14 +52,15 @@ static IconItem iconList2[] = { LPGEN("Bold"), "bold", IDI_BBOLD }, // 4 { LPGEN("Italics"), "italics", IDI_BITALICS }, // 5 { LPGEN("Underlined"), "underline", IDI_BUNDERLINE }, // 6 - { LPGEN("Smiley button"), "smiley", IDI_SMILEY }, // 7 - { LPGEN("Room history"), "history", IDI_HISTORY }, // 8 - { LPGEN("Room settings"), "settings", IDI_TOPICBUT }, // 9 - { LPGEN("Event filter disabled"), "filter", IDI_FILTER }, // 10 - { LPGEN("Event filter enabled"), "filter2", IDI_FILTER2 }, // 11 - { LPGEN("Hide nick list"), "nicklist", IDI_NICKLIST }, // 12 - { LPGEN("Show nick list"), "nicklist2", IDI_NICKLIST2 }, // 13 - { LPGEN("Icon overlay"), "overlay", IDI_OVERLAY }, // 14 + { LPGEN("Strike through"), "strikeout", IDI_STRIKEOUT }, // 7 + { LPGEN("Smiley button"), "smiley", IDI_SMILEY }, // 8 + { LPGEN("Room history"), "history", IDI_HISTORY }, // 9 + { LPGEN("Room settings"), "settings", IDI_TOPICBUT }, // 10 + { LPGEN("Event filter disabled"), "filter", IDI_FILTER }, // 11 + { LPGEN("Event filter enabled"), "filter2", IDI_FILTER2 }, // 12 + { LPGEN("Hide nick list"), "nicklist", IDI_NICKLIST }, // 13 + { LPGEN("Show nick list"), "nicklist2", IDI_NICKLIST2 }, // 14 + { LPGEN("Icon overlay"), "overlay", IDI_OVERLAY }, // 15 }; static IconItem iconList3[] = diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 7414955646..ee34ee0b91 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -417,15 +417,22 @@ int RegisterToolbarIcons(WPARAM, LPARAM) bbd.pwszTooltip = LPGENW("Make the text underlined (Ctrl+U)"); g_plugin.addButton(&bbd); - bbd.dwButtonID = IDC_SRMM_COLOR; + bbd.dwButtonID = IDC_SRMM_STRIKEOUT; bbd.dwDefPos = 25; + bbd.hIcon = g_plugin.getIconHandle(IDI_STRIKEOUT); + bbd.pwszText = LPGENW("&Strike-through "); + bbd.pwszTooltip = LPGENW("Make the text strike-through"); + g_plugin.addButton(&bbd); + + bbd.dwButtonID = IDC_SRMM_COLOR; + bbd.dwDefPos = 30; bbd.hIcon = g_plugin.getIconHandle(IDI_COLOR); bbd.pwszText = LPGENW("&Color"); bbd.pwszTooltip = LPGENW("Select a foreground color for the text (Ctrl+K)"); g_plugin.addButton(&bbd); bbd.dwButtonID = IDC_SRMM_BKGCOLOR; - bbd.dwDefPos = 30; + bbd.dwDefPos = 35; bbd.hIcon = g_plugin.getIconHandle(IDI_BKGCOLOR); bbd.pwszText = LPGENW("&Background color"); bbd.pwszTooltip = LPGENW("Select a background color for the text (Ctrl+L)"); diff --git a/plugins/Scriver/src/resource.h b/plugins/Scriver/src/resource.h index 9fc3b2e7dc..7b8c990c7f 100644 --- a/plugins/Scriver/src/resource.h +++ b/plugins/Scriver/src/resource.h @@ -43,6 +43,7 @@ #define IDI_BUNDERLINE 420 #define IDI_BBOLD 421 #define IDI_BITALICS 422 +#define IDI_STRIKEOUT 423 #define IDI_TOPICBUT 424 #define IDI_BKGCOLOR 425 #define IDI_CHANMGR 426 -- cgit v1.2.3