Commit Graph

5887 Commits (3ee5ef02058e085c9bd461be891eec5c960a3a08)

Author SHA1 Message Date
Don Ho 3ee5ef0205 Make LoadIcon error message more clear 2024-06-20 21:36:58 +02:00
ozone10 46c5a0c226 Fix exception/crash on Windows Server Core 2022 (Datacenter)
The exception/crash occurs due to the unsupported icon format in Windows Server Core 2022 (due to the lack of a graphical library).

The commit tries to make loading icons fail-safe, and it represents a balance between the functionality of loading icons and the minimal graphic support required for Notepad++:
In the event of loading problems in a typical Windows version with complete graphical library support (which is unlikely but possible), users will receive alerts, and the ICO ID in question will be displayed in the caption.
However, under Windows Server Core 2022, multiple alert message boxes may appear during Notepad++ launch, but they can be stopped after the first one, allowing the user to use Notepad++ normally.

3 choices on the alert message: "Yes" for ignoring error(s) and launch Notepad++, "No" for stop lauching Notepad++ and quit it. "Cancel" for displaying all message error with the loading failure of ICO ID in caption, and launch Notepad++.

Fix #15313, close #15315
2024-06-20 21:04:55 +02:00
ozone10 965e24859f Fix a regression due to usage of double buffer (2nd part)
Fix black text background in Find dialog status bar
Regression introduced in 5b36e09
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15319#issuecomment-2177773329

Close #15320
2024-06-19 15:43:39 +02:00
ozone10 90762bbdda Fix a regression due to usage of double buffer
Regression introduced in 5b36e097c2
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15296#issuecomment-2171221062

Replace WM_PRINTCLIENT with WM_PRINT to avoid black parts when resizing tabbar in light mode.

Close #15319
2024-06-18 19:18:54 +02:00
ozone10 8760dd2c07 Replace tab bar close button BMP files with ICO
ref #15298

Close #15317
2024-06-18 15:39:47 +02:00
wilk 57a89b257a Update langs.model.xml - TCL keyword "then"
Added TCL's optional keyword "then": https://www.tcl.tk/man/tcl8.5/TclCmd/if.htm

Close #15309
2024-06-17 05:05:51 +02:00
xomx ace9f49679 Fix renamed last empty clean tab cannot be closed issue
Fix #15306, close #15312
2024-06-17 04:58:39 +02:00
Don Ho 9a27df8f13 Make NPPN_FILEBEFORERENAME notification more efficient 2024-06-16 23:55:42 +02:00
Jiri Hruska 5b36e097c2 Fix status bar and tab bar flicker when updated
Add double buffering for status bar and tab bar to avoid flickering.

Fix #15260, close #15296
2024-06-16 04:51:42 +02:00
Don Ho 6102687faf Fix crash of "Next Search Result" cmd on the empty search result (2nd)
Fix #15247, close #15293
2024-06-15 23:42:21 +02:00
Don Ho e6a1735236 Fix Find Replace size is not remembered through the sessions issue
Fix #15294
2024-06-15 20:45:58 +02:00
Don Ho fa2fce2b41 Fix crash of "Next Search Result" cmd on the empty search result
Fix #15247
2024-06-15 05:00:32 +02:00
ozone10 c7ee70cf32 Make panel tabbar icons using BMP use transparency
- modify standard ico files to use transparency

ref #14959

Close #15289
2024-06-15 03:15:35 +02:00
WildByDesign eb82aac284 Fluent Icons Alignment Fix
- improve the alignment of the Document List, Undo and Redo icons

Close #15288
2024-06-14 15:47:05 +02:00
Alan Kilborn 2e116251e2 Fix the Begin/End Select after deletion problem
Fix #15221, close #15278
2024-06-14 15:38:55 +02:00
WildByDesign 720f5f8a8e Fluent Icons - Tab Bar
- Adding the remaining Fluent icons for the tab bar
- 16x16, 20x20, 24x24, 32x32 and 48x48

Close #15287
2024-06-14 00:38:36 +02:00
Don Ho 638b5a2043 Make install/update easy & quiet
Add command line parameter "/runNppAfterSilentInstall" for Notepad++ installer.
This parameter launches installed Notepad++ after silent installation.
Of course, the parameter takes effect only when "/S" (silent installation) is used.

Fix partially #8514, follow up #15230

Close #15280
2024-06-13 11:41:02 +02:00
ozone10 dbdeca5b28 Add dark mode search results panel tab bar icon
ref #14959

Close #15286
2024-06-13 17:59:57 +02:00
WildByDesign 7f7dd1df01 Fluent Icons - Panels Toolbar & Tab bar
- Update Fluent Icons for Panels Toolbar and tabbar for better scaling.
- 16x16, 20x20, 24x24, 32x32 and 48x48

Close #15285
2024-06-13 16:02:40 +02:00
ozone10 f2fbeadfea Refactor docking panel tab bar to improve dpi compatibility
- reduce flickering when resizing panels

Ref #14959

Close #15282
2024-06-13 15:36:38 +02:00
Alan Kilborn 7a6768b029 Add Backspace unident option
Fix #15180, close #15277
2024-06-13 15:12:22 +02:00
ozone10 6cbb1273a3 Tweak Find in File Progress hits text position
- increase width for Find dialog In selection checkbox
- increase width for Preference Autocompletion html/xml close tag checkbox

According the community's decision:
https://community.notepad-plus-plus.org/topic/25874/poll-find-in-files-hits-position

ref https://github.com/notepad-plus-plus/notepad-plus-plus/pull/15187#issuecomment-2159602146

Fix #15244, fix #13426, close #15268
2024-06-13 14:47:06 +02:00
Coises f2e5739d4d Fix rectangular selection copy-paste bug
Restore old paste into rectangular selection behavior: only call pasteIntoMultiSelection for multiple stream selections and not for rectangular selections.

Fix #15139, fix #15151, close #15261
2024-06-12 15:56:23 +02:00
ozone10 dc53d1b7a7 Add F13-F24 keys to Shortcut Mapper
Fix #11975, close #15269
2024-06-12 02:19:13 +02:00
Alan Kilborn 721a845bec Fix unsaved tab containing tab character display glitch
Disallow tab character via pasting when renaming a file tab.

Fix #15202, close #15211
2024-06-12 01:24:42 +02:00
ozone10 f37f2d0ffe Use new dpi scaled size for docking panel tab icons
Ref #14959

Close #15267
2024-06-11 03:26:30 +02:00
xomx 83f1195bc1 Add installer new option '/closeRunningNpp'
New Notepad++ NSIS installer cmdline option.

If specified on the cmdline, it first tries to use the usual app-closing by sending the WM_CLOSE message to the running Notepad++.
If that standard closing fails, it uses consequently the forceful TerminateProcess WINAPI way.

Partially fix the #8514, followup of the #14251.

Close #15230
2024-06-09 21:19:42 +02:00
WildByDesign aea78d71e2 Show All Characters Icon Fix
- fixes the All Characters Icon which was blurry at 16x16

Close #15259
2024-06-09 03:22:32 +02:00
WildByDesign 7291823e1a Update Fluent toolbar icons
Updated icons for 16x16, 20x20, 24x24, 32x32, 40x40, 48x48, 64x64 and 96x96

Close #15253
2024-06-08 17:06:19 +02:00
xomx 8beda66cb8 Fixed the "lost" panels issue
Implement some size limits for the Notepad++ docked and floating panels, as the users often "lost" its panels (e.g. when they minimized them to zero width or height).

This also fixes the config.xml possible previous "out-of-the-allowed-range" data.

Fix #13084, close #15236
2024-06-08 03:58:43 +02:00
ozone10 e7e88a380a Add "Show All Character" context menu on toolbar button
Fix #14832, close #15235
2024-06-07 00:47:31 +02:00
Don Ho 7a401cface Enlarge the labels of indent settings 2024-06-06 19:58:35 +02:00
ozone10 07e95038cb Add message box with information about disabled backward regex searching
Fix #15239, close #15243
2024-06-06 18:05:13 +02:00
ozone10 ea71d5ea4e Fix small width for "Ignore case" checkbox in UDL for some languages
Fix #15233, close #15234
2024-06-05 18:16:41 +02:00
xomx 9f6e9c0cfc Update English translation for v8.6.8 (indentation setting)
Related to: #15203

Close #15237
2024-06-05 17:21:19 +02:00
Don Ho df4e8f5b73 Fix integer overflow issue in Column Editor
Fix #15167, close #15222
2024-06-05 00:58:56 +02:00
Don Ho 61bcf3a2bc Notepad++ v8.6.8 - Support Taiwan's Sovereignty 2024-06-04 03:55:45 +02:00
popcorner bc1436a5c0 Update chineseSimplified.xml
Close #15154
2024-06-04 00:41:16 +02:00
ozone10 6cd6aa3843 Make clang warnings flags in makefile and msvc consistent
PR #15189 added option to use clang with gcc makefile.
This PR makes clang warnings flags in makefile and msvc consistent.

Close #15227
2024-06-01 01:26:04 +02:00
ozone10 fedaabf0f8 Fix toolbar pressed button visual glitch in dark mode
Use custom draw for main toolbar in dark mode.

Fix #15225, close #15226
2024-06-01 00:58:08 +02:00
ozone10 cfcb0d73cf Fix file opening issue with control characters initial appearence
Fix #13988, close #15219
2024-05-31 03:56:10 +02:00
ozone10 6c660a71b3 Add missing monitoring icon for disabled state
Fix #15217, close #15218
2024-05-31 03:37:52 +02:00
Christian Grasser b4b76ff770 Code enhancement: Nullpointer checks
- zero init LexSearchResult.cxx lineBuffer
- WindowsDlg::resetSelection() add nullpointer check as assert just triggers on debug builds
- added missing nullpointer checks in Utf8_16.cpp on allocated memory
- added missing nullpointer check on notifyView for case SCN_AUTOCSELECTION in NppNotification.cpp
- added missing nullpointer check on clipboardData in NppCommands.cpp

Close #15195
2024-05-31 02:57:39 +02:00
ozone10 c89033bd8a Replace bmp with ico for panels with toolbar
- use correct styles for toolbar
- change panel toolbar icons if dark/light mode has changed
- align panel toolbar icons
- add initialization

ref #14959

Close #15204
2024-05-29 00:04:55 +02:00
Don Ho 0019e20f82 Make naming correct for indent settings of Preferences dialog
Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15180#issuecomment-2129892136

Close #15203
2024-05-28 18:41:56 +02:00
ozone10 cdf32d198b Reorganize icons folder
- remove unused delete icon and code related to it
- remove notepadPlus.Resource.targets
- fix dark mode edit control in preference file association subdialog

ref https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14959#issuecomment-2131289263

Close #15192
2024-05-27 03:14:37 +02:00
Christian Grasser 2ed6c77dfe CI enhancement
- update CI link from appveyor to GH action
- add option to makefile build mingw build also with Clang++ instead of g++
- add option to makefile to enable clang analyzer

Close #15189
2024-05-25 16:19:47 +02:00
Alan Kilborn b3b90a5dc0 Add auto-indent feature for Python
Fix #15122, close #15159
2024-05-25 15:56:55 +02:00
ozone10 9c1f972ee3 Add new dpi support to Find in Files Progress window
ref #14959

Fix #15027, close #15187
2024-05-25 03:42:17 +02:00
ozone10 6c5f0009b4 Use gdi dpi scaling for Windows dialog
- tweak dpi scaling for ColourPopup dialog.

ref #14959

Close #15186
2024-05-25 03:26:06 +02:00