ozone10
912c5ee300
Make english language text with colon (':') consistent
...
Fix #4628 , close #15165
2024-05-21 14:31:40 +02:00
Don Ho
2d076b645a
Refactoring for new DPI management: avoiod the multiple inherence
...
Using the composition instead of the multiple inherence
1. For preventing from the diamond problem.
2. To fix the semantic problem by using DPIManagerV2 as class ancestor of class StaticDialog.
Remove also unecessary scaleX, unscaleX, scaleY & unscaleY methods.
2024-05-02 18:26:20 +02:00
Don Ho
188375e2ee
Adapt TabBar to new DPI management
...
ref #14959
Close #15054
2024-05-01 03:23:47 +02:00
ozone10
560f29fc8c
Add dpi support to Style Configurator dialog
...
- reorder controls for consistent tab switch
- make spacing and position more consistent
- use system aware or gdi scaling for Color dialog and Color popup
ref #14959
Close #15029
2024-04-23 05:07:28 +02:00
Don Ho
e6558a3618
Enhance source code
2024-04-20 02:54:38 +02:00
ozone10
fc52cd3f4f
Use dpi scaled fonts for some controls
...
- prepare static dialog for hiDPI
ref: #14959
Close #14947
2024-04-11 11:09:09 +02:00
ozone10
b31e7a31e0
Change History GUI enhancement and tweaks
...
- add 'Go to setting' for other Change History styles
- make spacing consistent in preference
- minor warning fix
Close #14883
2024-03-27 17:08:13 +01:00
Don Ho
12c6777bc1
Fix some "Go to settings" in Style Configurator go to wrong section
...
Fix #14882 , close #14903
2024-03-24 14:06:17 +01:00
Don Ho
aa0be9973b
Add support for Change History in the text
...
This commit follows the commit:
fd1f785b89
Close #14838
2024-03-10 05:17:08 +01:00
Don Ho
12548b6abb
Reorganize "Editing" sections in Preferences dialog
2024-02-26 05:40:42 +01:00
Don Ho
e08c547167
Fix customized extesion in Style Configurator not saved regression
...
This regression is due to commit:
950236bb8f
Fix #14437
2023-12-03 03:48:05 +01:00
Don Ho
dc6bfedb90
Fix Incomplete styler.xml crashes Notepad++ issue
...
And do some refactoring.
Fix #12101
2023-11-06 00:40:38 +01:00
Don Ho
950236bb8f
Fix 2 performance issue in Style Configurator
...
Fix #14321
2023-11-05 20:48:10 +01:00
ozone10
776a3fb945
GUI Enhancement: StylerDlg & URLCtrl
...
- prefer SystemParametersInfo fonts over DEFAULT_GUI_FONT
- optimize dark mode
- fix override warnings
Fix #13705 , close #13706
2023-05-30 18:42:51 +02:00
ozone10
278f694f3a
Code enhancement: fix GCC implicit-fallthrough warnings
...
Fix #13142 , close #13143
2023-02-17 15:00:53 +01:00
ArkadiuszMichalski
0c704fd66b
Make theme warning message translatable (switching unsaved theme to another)
...
Fix report from comment: #8972 (comment).
Close #13112
2023-02-14 04:37:01 +01:00
ozone10
aaab190763
Add show non-printable characters command
...
| Name | Codepoint | Abbreviation |
|------------------------------|-----------|--------------|
| No-Break Space | U+00A0 | NBSP |
| Ogham Space Mark | U+1680 | OSPM |
| Mongolian Vowel Separator | U+180E | MVS |
| En Quad | U+2000 | NQSP |
| Em Quad | U+2001 | MQSP |
| En Space | U+2002 | ENSP |
| Em Space | U+2003 | EMSP |
| Three-Per-Em Space | U+2004 | 3/MSP |
| Four-Per-Em Space | U+2005 | 4/MSP |
| Six-Per-Em Space | U+2006 | 6/MSP |
| Figure Space | U+2007 | FSP |
| Punctation Space | U+2008 | PSP |
| Thin Space | U+2009 | THSP |
| Hair Space | U+200A | HSP |
| Zero-Width Space | U+200B | ZWSP |
| Zero-Width Non-Joiner | U+200C | ZWNJ |
| Zero-Width Joiner | U+200D | ZWJ |
| Left-To-Right Mark | U+200E | LRM |
| Right-To-Left Mark | U+200F | RLM |
| Line Separator | U+2028 | LS |
| Paragraph Separator | U+2029 | PS |
| Left-To-Right Embedding | U+202A | LRE |
| Right-To-Left Embedding | U+202B | RLE |
| Pop Directional Formatting | U+202C | PDF |
| Left-To-Right Override | U+202D | LRO |
| Right-To-Left Override | U+202E | RLO |
| Narrow No-Break Space | U+202F | NNBSP |
| Medium Mathematical Space | U+205F | MMSP |
| Word Joiner | U+2060 | WJ |
| Left-To-Right Isolate | U+2066 | LRI |
| Right-To-Left Isolate | U+2067 | RLI |
| First Strong Isolate | U+2068 | FSI |
| Pop Directional Isolate | U+2069 | PDI |
| Inhibit Symmetric Swapping | U+206A | ISS |
| Activate Symmetric Swapping | U+206B | ASS |
| Inhibit Arabic Form Shaping | U+206C | IAFS |
| Activate Arabic Form Shaping | U+206D | AAFS |
| National Digit Shapes | U+206E | NADS |
| Nominal Digit Shapes | U+206F | NODS |
| Ideographic Space | U+3000 | IDSP |
| Zero-Width No-Break Space | U+FEFF | ZWNBSP |
Fix also issue with tooltips in preference dialog, when changing between dark/light mode.
Fix #827 , fix #4731 , fix #8284 , close #13020
2023-02-05 04:20:25 +01:00
Don Ho
432dcb7f15
Use wide char version's function directely (part1)
...
ref: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12613#discussion_r1045153278
2023-01-19 02:52:23 +01:00
ozone10
2fb7da73d7
Remove "stylerTheme" attribute in config.xml
...
Fix #12685 , close #12691
2022-12-26 15:20:16 +01:00
ArkadiuszMichalski
cf158689f7
Add Go to settings for "Change History margin" style in Style Configurator
...
Close #12650
2022-12-16 01:01:38 +01:00
ArkadiuszMichalski
e75bd80693
Fix Go to settings for URL hovered style
...
Close #12634
2022-12-15 17:13:31 +01:00
Don Ho
4c188c3019
Fix style.xml not remember by light mode
2022-11-22 16:59:50 +01:00
ozone10
e2a1234384
Dark mode enhancement
...
1. Add "Follow Windows dark/light mode".
2. Remember user's toolbar, tabbar and theme choices for dark mode and light mode separately.
3. Add 2 hidden options for applying tab background color from themes (for both dark mode and light mode).
Fix #9183 , fix #9992 , fix #10153 , fix #10239 , fix #10544 , fix #10644 , fix #11867 , fix #10239 , close #12466
2022-11-22 01:54:05 +01:00
Don Ho
67ab4d5527
Add some shortcuts in Styler Configurator to preferences dialog
...
Shortcuts to Preferences dialog are added only for the following styles (Global Styles):
1. "Current line background colour"
2. "Caret colour"
3. "Edge colour"
4. "Line number margin"
5. "Bookmark margin"
6. "Fold"
7. "Fold active"
8. "Fold margin"
9. "Smart Highlighting"
10. "Tags match highlighting"
11. "Tags attribute"
12. "Mark Style 1"
13. "Mark Style 2"
14. "Mark Style 3"
15. "Mark Style 4"
16. "Mark Style 5"
17. "URL hovered"
18. "EOL custom color"
Fix #11890 , close #11904
2022-07-12 18:57:20 +02:00
Don Ho
2d7b2093a1
Fix font definition for languages regression in Style Configurator
...
Defining font for languages is no more possible in Style Configurator.
This regression is due to commit 1567847 (PR #10483 ).
Fix #11786 , close #11787
2022-06-13 18:41:17 +02:00
Don Ho
79e766755d
Make EOL (CRLF) display customizable
...
Fix #11413 , close #11773
2022-06-12 19:41:09 +02:00
ozone10
d65967deab
Use edge colors in dark mode for listbox border
...
1. use edge colors in darkmode for edit control border.
2. tweaks to properly drawn listbox scrollbar, when using custom border.
3. disabled edge color to dark mode preference dialog.
4. use disabled edge color for disabled combobox.
Fix #11207 , fix #11376 , close #11756
2022-06-06 20:25:17 +02:00
Don Ho
0ee65fd826
Fix x64 build error in 3f1a582a36db175a4f86b35dcd47f3aa5bf331fa
...
Fix x64 build error, remove unnecessary codes and add enhancement for the previous commit 3f1a582a36db175a4f86b35dcd47f3aa5bf331fa
2022-04-13 04:43:08 +02:00
ozone10
3f1a582a36
Add dark mode support for autocomplete list & calltip
...
Fix fix #11522 , close #11523
2022-04-13 03:42:38 +02:00
ozone10
3afbf0ca14
Fix light mode disabled text color using dark mode customized color
...
Light mode disabled static text was using customized dark mode disabled static text color, this PR fixes the problem.
Fix #11514 , close #11515
2022-04-11 16:25:39 +02:00
Ashfaaq18
6086e819fd
Fix dark mode disabled static text color in Column Editor and Style configurator
...
Fix #11407 , close #11409
2022-03-22 18:38:50 +01:00
Don Ho
94154b0f0e
Code enhancement: Fix comparison of different signs integers
2022-02-09 20:06:59 +01:00
Don Ho
785453147b
Inialize all memebers of struct (instead of its 1st member) to zero
...
The curly brace initiator in C/C++ is quite confusing (at least to me).
The C style array uses {0} for initializing all the array to 0,
whereas C++ struct uses {0} for initializing only the 1st member's value to 0.
If we want to set all members' value in a struct to 0, we should use {} instread of {0}.
This commit fix the error which initialize only the 1st member's value to 0 in the structures.
Ref:
1. https://docs.microsoft.com/en-us/cpp/cpp/initializing-classes-and-structs-without-constructors-cpp?view=msvc-170
2. https://en.cppreference.com/w/c/language/struct_initialization
2022-02-09 16:41:56 +01:00
Don Ho
961a133a60
Remove 2GB file open restriction for x64 binary
...
Fix #10921 , close #11047
2022-01-25 18:08:05 +01:00
Don Ho
234941c180
Fix regression of bg/fg color disabling visual glitchy
...
The regression is due to:
7c9f4204ea (diff-473b357ab7088152f46cb49e9d3336344425ab463c209b10b2fe16df98cc3b76)
Fix #11051
2022-01-19 16:49:04 +01:00
jofon
38de8b2306
Fix language list not being reloaded issue in Style Configurator
...
Fix #9512 , close #10686
2021-10-21 15:47:00 +02:00
Don Ho
e5a800722b
Make code more sanitary
...
Fix some vulnerable codes detected by VS's analyzing.
Close #10541
2021-09-12 18:50:30 +02:00
Ivan Ustûžanin
156784722a
Make number of languages and and styles unlimited and independent
...
A clean version of #10483 thanks to @ozone10 and @chcg.
The proper fix for #10206 without any compile-time limits.
Fix #10483 , fix #10206 , close #10491
2021-09-05 16:31:18 +02:00
ozone10
68d293e711
Allow custom color for Document Map
...
Fix #10052 , close #10422
2021-08-26 01:03:18 +02:00
ozone10
8ac13d9065
Make dark mode compatible with Windows 11
...
Use documented way to enable UxTheme dialog texture.
Remove undocumented way.
Disable UxTheme dialog texture in dark mode.
Fix #10299 , close #10383
2021-08-20 12:08:41 +02:00
Don Ho
7c9f4204ea
Refactoring: Improve the code organization for color picker displaying
2021-07-29 03:13:22 +02:00
ozone10
31c72b7388
Apply dark mode on color popup
...
Fix use of dark mode edge color in light mode for color picker button.
Properly redraw disabled color picker button.
Fix #10269 , close #10270
2021-07-28 17:29:30 +02:00
ozone10
7c4a428e47
Make dark colors consistent
...
1. Make dark colors consistent for panel toolbars.
2. Make dark colors consistent style configurator edit controls.
3. Make dark colors consistent for docking elements.
* BackgroundColor(), BackgroundBrush() – should be used for items which have some interactions, or need to be different from Darker variant.
* DarkerBackgroundColor(), DarkerBackgroundBrush() – should be used for static/top backgrounds.
* SofterBackgroundColor(), SofterBackgroundBrush() – should be used for items , which have interactions, or have focus.
Fix #10242 , close #10243
2021-07-26 15:00:49 +02:00
ozone10
e627de438b
Apply dark mode on Style Configurator
...
Create link text color to be used too in about, debug and preference dialog.
Fix #10226 , close #10227
2021-07-24 00:48:03 +02:00
Don Ho
831d3ba9cc
Add customizing dynamically dark mode colors capacity
...
Let users customize whole set of dark mode colors (except title bar, menu items and scroll bar colors).
Close #10145
2021-07-14 03:33:36 +02:00
Don Ho
3347044595
Fix edit zone not being applied to dark mode issue
...
Problem:
After installing Notepad++ v8.1 under an user account (with admin privilege), then switch to another user account (with or without admin privilege), launch Notepad++ and turn dark mode on. The dark theme on edit zone won't be applied.
Solution:
Notepad++ installer copies all theme files in installed directory instead of "%APPDATA%\Notepad++\themes\".
When theme is choosen or modified, it'll be saved in "%APPDATA%\Notepad++\themes\", and the saved theme file will override the original theme in installation directory.
New behaviour of theme:
Any theme selected via Style Configurator will be copied from its installation directory (C:\Program Files\Notepad++\themes\) into "%APPDATA%\Notepad++\themes\".
If the theme exists in "%APPDATA%\Notepad++\themes", the original one in s installation directory (C:\Program Files\Notepad++\themes) will be ignored.
Fix #10076 , close #10077
2021-06-27 16:42:01 +02:00
Don HO
4aa459ef47
Switch to default dark theme as dark mode is enabled
...
1. Add default dark theme.
2. Switch to default dark theme when dark mode is enabled considering both situations:
Style Configurator is or ont launched.
Close #9847
2021-05-10 09:56:35 +02:00
Don HO
cd1a468b1c
Make select text foreground color setting optional
...
Make selected text with syntax highlighting as default behaviour.
To override the default behaviour, user can add an empty xml file named "enableSelectFgColor.xml" (beside of "config.xml") to set the select foreground color in Style Configurator.
2021-05-01 20:02:09 +02:00
Don HO
ab5c1d3e2a
Upgrade Notepad++ License
...
Update GPL version from v2 to v3.
Fix #9425 , close #9441
2021-01-24 01:51:19 +01:00
Scott Sumner
c28116a04f
Add color samples on menu items for styling features
...
Fix #8983 , close #9089
2020-11-02 15:15:37 +01:00