From 34cc5e618c5738b61e44d03f418e28d48d382e67 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Mon, 7 Nov 2022 02:57:19 +0100 Subject: [PATCH 1/2] +fix: Linker must generate Manifest (???) --- src/Notepad3.vcxproj | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Notepad3.vcxproj b/src/Notepad3.vcxproj index a1f6cc5c0..910e72dfd 100644 --- a/src/Notepad3.vcxproj +++ b/src/Notepad3.vcxproj @@ -119,42 +119,42 @@ - false + true ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\obj\$(ProjectName)\ false ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\ true - false + true ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\obj\$(ProjectName)\ false ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\ true - false + true ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\obj\$(ProjectName)\ false ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\ true - false + true ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\obj\$(ProjectName)\ false ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\ true - false + true ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\obj\$(ProjectName)\ false ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\ true - false + true ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\obj\$(ProjectName)\ false ..\Bin\$(Configuration)_$(PlatformShortName)_$(PlatformToolset)\ @@ -198,6 +198,7 @@ true uxtheme.dll true + @@ -271,6 +272,7 @@ true uxtheme.dll true + @@ -354,6 +356,7 @@ NoErrorReport false true + @@ -430,6 +433,7 @@ uxtheme.dll true true + @@ -512,6 +516,7 @@ NoErrorReport false true + @@ -587,6 +592,7 @@ uxtheme.dll true true + From 20cb2880f750fca4d0ffd1f7693bd0d579df6533 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Mon, 7 Nov 2022 22:58:36 +0100 Subject: [PATCH 2/2] +fix: Common Base Whitespace style not cleared if default --- src/Styles.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Styles.c b/src/Styles.c index 932386e5f..d6aa6bc51 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -1486,6 +1486,7 @@ void Style_SetLexer(HWND hwnd, PEDITLEXER pLexNew) #define _SC_INDIC_IME_UNKNOWN INDIC_IME_MAX COLORREF rgb = RGB(0xFF, 0xA0, 0x00); + COLORREF rgbWrt = RGB(0xFF, 0xA0, 0x00); Style_StrGetColor(pCurrentStandard->Styles[STY_IME_COLOR].szValue, FOREGROUND_LAYER, &rgb, NULL, true); // IME foregr SciCall_IndicSetFore(_SC_INDIC_IME_INPUT, rgb); SciCall_IndicSetFore(_SC_INDIC_IME_TARGET, rgb); @@ -1543,8 +1544,9 @@ void Style_SetLexer(HWND hwnd, PEDITLEXER pLexNew) // whitespace colors rgb = RGB(0, 0, 0); - if (Style_StrGetColor(pCurrentStandard->Styles[STY_WHITESPACE].szValue, FOREGROUND_LAYER, &rgb, NULL, false)) { - Style_PrintfCchColor(wch, COUNTOF(wch), L"; ", FOREGROUND_LAYER, rgb); + rgbWrt = rgb; + if (Style_StrGetColor(pCurrentStandard->Styles[STY_WHITESPACE].szValue, FOREGROUND_LAYER, &rgb, &rgbWrt, false)) { + Style_PrintfCchColor(wch, COUNTOF(wch), L"; ", FOREGROUND_LAYER, rgbWrt); StringCchCat(wchSpecificStyle, COUNTOF(wchSpecificStyle), wch); if (Style_StrGetAlpha(pCurrentStandard->Styles[STY_WHITESPACE].szValue, &iValue, true)) { @@ -1558,8 +1560,9 @@ void Style_SetLexer(HWND hwnd, PEDITLEXER pLexNew) } rgb = RGB(0, 0, 0); - if (Style_StrGetColor(pCurrentStandard->Styles[STY_WHITESPACE].szValue, BACKGROUND_LAYER, &rgb, NULL, true)) { - Style_PrintfCchColor(wch, COUNTOF(wch), L"; ", FOREGROUND_LAYER, rgb); + rgbWrt = rgb; + if (Style_StrGetColor(pCurrentStandard->Styles[STY_WHITESPACE].szValue, BACKGROUND_LAYER, &rgb, &rgbWrt, true)) { + Style_PrintfCchColor(wch, COUNTOF(wch), L"; ", FOREGROUND_LAYER, rgbWrt); StringCchCat(wchSpecificStyle, COUNTOF(wchSpecificStyle), wch); //~ always opaque, no translucency possible in Win32 @@ -1612,6 +1615,7 @@ void Style_SetLexer(HWND hwnd, PEDITLEXER pLexNew) SciCall_SetCaretWidth(iValue); } + if (CARETSTYLE_OVERSTRIKE_BLOCK == ovrstrk_mode) { StringCchCat(wchSpecificStyle, COUNTOF(wchSpecificStyle), L"; ovrblck"); } @@ -1627,8 +1631,9 @@ void Style_SetLexer(HWND hwnd, PEDITLEXER pLexNew) } // caret fore rgb = GetModeTextColor(UseDarkMode()); - if (Style_StrGetColor(pCurrentStandard->Styles[STY_CARET].szValue, FOREGROUND_LAYER, &rgb, NULL, false)) { - Style_PrintfCchColor(wch, COUNTOF(wch), L"; ", FOREGROUND_LAYER, rgb); + rgbWrt = rgb; + if (Style_StrGetColor(pCurrentStandard->Styles[STY_CARET].szValue, FOREGROUND_LAYER, &rgb, &rgbWrt, false)) { + Style_PrintfCchColor(wch, COUNTOF(wch), L"; ", FOREGROUND_LAYER, rgbWrt); StringCchCat(wchSpecificStyle,COUNTOF(wchSpecificStyle),wch); } if (!VerifyContrast(rgb, SciCall_StyleGetBack(0))) {