This is the enhancement of a long time forgotten feature. To override the current toolbar icons, we needs 2 things: "toolbarIcons.xml" file and one icons set. Here are the instructions to customize toolbar icons: 1. Put the file "toolbarIcons.xml" (Note 1) in the same folder of "config.xml" file (Note 2). 2. Create a new folder "toolbarIcons" in the folder where you put "toolbarIcons.xml" file. 3. Edit the file "toolbarIcons.xml": put the icon set name you want in "icoFolderName" attribute (Note 3). for example: `<ToolBarIcons icoFolderName="myAwesomeIcons" />` 4. Go into "toolbarIcons" folder and create a new folder with the exact name of the icon set name you provided in "icoFolderName". 5. Put all your customized icons into "[toolbarIcons.xml's folder]\toolbarIcons\myAwesomeIcons\". 6. Now it's the magic moment: Relaunch Notepad++ and you'll see your icon set instead of the default icons. Note: 1. The content of "toolbarIcons.xml" is following: ```xml <?xml version="1.0" encoding="UTF-8" ?> <NotepadPlus> <ToolBarIcons icoFolderName="nppLagacyIcons" /> </NotepadPlus> ``` 2. If you find the file "doLocalConf.xml" in the Notepad++ installed directory, you will find the "config.xml" in Notepad++ installed directory. Otherwise it should be in "%APPDATA%\Notepad++\" directory. 3. if "icoFolderName" value is an emptty string, the path of icons will be in "[toolbarIcons.xml's folder]\toolbarIcons\default\" folder. Each replacing icon (45 icons) has the fixed and specific name: | index | Normal icon | Disabled icon | |-------|--------------------------|---------------------------------| |1 | new.ico | | |2 | open.ico | | |3 | save.ico | save_disabled.ico | |4 | save-all.ico | save-all_disabled.ico | |5 | close.ico | | |6 | close-all.ico | | |7 | print.ico | | |8 | cut.ico | cut_disabled.ico | |9 | copy.ico | copy_disabled.ico | |10 | paste.ico | paste_disabled.ico | |11 | undo.ico | undo_disabled.ico | |12 | redo.ico | redo_disabled.ico | |13 | find.ico | | |14 | replace.ico | | |15 | zoom-in.ico | | |16 | zoom-out.ico | | |17 | sync-vertical.ico | | |18 | sync-horizontal.ico | | |19 | word-wrap.ico | | |20 | all-chars.ico | | |21 | indent-guide.ico | | |22 | udl-dlg.ico | | |23 | doc-map.ico | | |24 | doc-list.ico | | |25 | function-list.ico | | |26 | folder-as-workspace.ico | | |27 | monitoring.ico | monitoring_disabled.ico | |28 | record.ico | record_disabled.ico | |29 | stop-record.ico | stop-record_disabled.ico | |30 | playback.ico | playback_disabled.ico | |31 | playback-multiple.ico | playback-multiple_disabled.ico | |32 | save-macro.ico | save-macro_disabled.ico | It's not necessary to have all complete set (45 icons). The absent icons won't just be substituted. Fix #9913pull/11722/head
parent
05dae4a720
commit
d85b9a7464
@ -1,94 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
This file is for customizing your toolbar icons.
|
||||
|
||||
To override the current toolbar icons, you needs 2 things: this file and your icons set.
|
||||
Here are the instructions to customize your toolbar icons:
|
||||
|
||||
1. Put this file ("toolbarIcons.xml") in the same folder of "config.xml" file (Note 1).
|
||||
2. Create a new folder "toolbarIcons" in the folder where you put "toolbarIcons.xml" file.
|
||||
3. Edit this file ("toolbarIcons.xml"): put the icon set name you want in "icoFolderName" attribute (Note 2).
|
||||
for example: <ToolBarIcons icoFolderName="myAwesomeIcons" />
|
||||
4. Go into "toolbarIcons" folder and create a new folder with the exact name of the icon set name you provided in "icoFolderName".
|
||||
5. Put all your customized icons into "[toolbarIcons.xml's folder]\toolbarIcons\myAwesomeIcons\".
|
||||
6. Now it's the magic moment: Relaunch Notepad++ and you'll see your icon set instead of the default icons.
|
||||
|
||||
Note:
|
||||
1. If you find the file "doLocalConf.xml" in the Notepad++ installed directory, you will find the "config.xml" in Notepad++ installed directory. Otherwise it should be in "%APPDATA%\Notepad++\" directory.
|
||||
2. if "icoFolderName" value is an emptty string, the path of icons will be in "[toolbarIcons.xml's folder]\toolbarIcons\default\" folder.
|
||||
|
||||
Each replacing icon (45 icons) has the fixed and specific name:
|
||||
|
||||
1 new.ico
|
||||
2 open.ico
|
||||
3 save.ico save_disabled.ico
|
||||
4 save-all.ico save-all_disabled.ico
|
||||
5 close.ico
|
||||
6 close-all.ico
|
||||
7 print.ico
|
||||
8 cut.ico cut_disabled.ico
|
||||
9 copy.ico copy_disabled.ico
|
||||
10 paste.ico paste_disabled.ico
|
||||
12 redo.ico redo_disabled.ico
|
||||
11 undo.ico undo_disabled.ico
|
||||
13 find.ico
|
||||
14 replace.ico
|
||||
15 zoom-in.ico
|
||||
16 zoom-out.ico
|
||||
17 sync-vertical.ico
|
||||
18 sync-horizontal.ico
|
||||
19 word-wrap.ico
|
||||
20 all-chars.ico
|
||||
21 indent-guide.ico
|
||||
22 udl-dlg.ico
|
||||
23 doc-map.ico
|
||||
24 doc-list.ico
|
||||
25 function-list.ico
|
||||
26 folder-as-workspace.ico
|
||||
27 monitoring.ico monitoring_disabled.ico
|
||||
28 record.ico record_disabled.ico
|
||||
29 stop-record.ico stop-record_disabled.ico
|
||||
30 playback.ico playback_disabled.ico
|
||||
31 playback-multiple.ico playback-multiple_disabled.ico
|
||||
32 save-macro.ico save-macro_disabled.ico
|
||||
|
||||
It's not necessary to have all complete set (45 icons). The absent icons won't just be substituted.
|
||||
-->
|
||||
<NotepadPlus>
|
||||
<ToolBarIcons>
|
||||
<Theme name = "virgin" pathPrefix = "">
|
||||
<Icon name = "new" id = "0">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "open" id = "1">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "save" id = "2">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "save all" id = "3">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "close" id = "4">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "close all" id = "5">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "cut" id = "6">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "copy" id = "7">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "paste" id = "8">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "undo" id = "9">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "redo" id = "10">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
<disabled></disabled>
|
||||
</Icon>
|
||||
<Icon name = "find" id = "11">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "replace" id = "12">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "zoom in" id = "13">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "zoom out" id = "14">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "wrap text" id = "15">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "invisible char" id = "16">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "indent guideline" id = "17">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "user language define panel" id = "18">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
<Icon name = "print" id = "19">
|
||||
<normal></normal>
|
||||
<hover></hover>
|
||||
</Icon>
|
||||
</Theme>
|
||||
</ToolBarIcons>
|
||||
</NotepadPlus>
|
||||
<ToolBarIcons icoFolderName="" />
|
||||
</NotepadPlus>
|
Loading…
Reference in new issue