Skip to content

Commit

Permalink
Bump version to 0.5.0. Add a default style configuration for dark mod…
Browse files Browse the repository at this point in the history
…e in the bundle and update instructions on how to use it
  • Loading branch information
blu3mania committed Oct 23, 2022
1 parent aff9eb2 commit 83f2c77
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
run: |
msbuild /m /p:Configuration=Release /p:Platform=${{ matrix.build_platform }} ${{ env.SOLUTION_FILE_PATH }}
copy bin\${{ matrix.build_platform }}\Papyrus.dll .
& "C:\Program Files\7-Zip\7z.exe" a PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.build_platform }}.zip Papyrus.dll Papyrus.xml extras
& "C:\Program Files\7-Zip\7z.exe" a PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.build_platform }}-with-manuals.zip Papyrus.dll Papyrus.xml extras ..\*.md
& "C:\Program Files\7-Zip\7z.exe" a PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.build_platform }}.zip Papyrus.dll Papyrus.xml extras themes
& "C:\Program Files\7-Zip\7z.exe" a PapyrusPlugin-${{ github.event.release.tag_name }}-${{ matrix.build_platform }}-with-manuals.zip Papyrus.dll Papyrus.xml extras themes ..\*.md
- name: Upload release package
uses: actions/upload-release-asset@v1
Expand Down
17 changes: 17 additions & 0 deletions Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ launch Notepad++ and the plugin should be able to automatically copy *"Papyrus.x
*"plugins\config"* directory under Notepad++'s data folder, similar to the handling when it's installed by
*Plugins Admin*.

**Dark Mode Note**

Above instructions are for normal (light) mode. If using dark mode, manual handling is needed for now since
Notepad++ doesn't handle themes/dark mode for external lexers' style configurations (see
[this reported issue](https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12190)). You need to
perform either of the two following actions:
- Use Notepad++'s *Style Configurator* dialog under *Settings* menu to change styles for Papyrus Script
manually (theme selector here doesn't really matter since Notepad++ always saves to the same style
configuration file for external lexers no matter what theme is currently selected, but for correctness
and proper UI styling you should choose *"DarkModeDefault"* in the theme selector).
- Copy bundled *"Papyrus.xml"* file under *"themes\DarkModeDefault"* to *"plugins\config"* directory under
Notepad++'s data folder.

**Note,** if you decide to switch back to normal mode you will need to do this again, i.e. use *Style
Configurator* to configure the styles again (choose *"Default (styles.xml)"* theme in this case), or copy
the bundled *"Papyrus.xml"* file to *"plugins\config"* directory under Notepad++'s data folder.

**WARNING:**
- Do not install versions prior to v0.3.0 if you are using Notepad++ v8.3+.
- Do not install v0.3.0+ if you are using a Notepad++ version prior to v8.3.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ enhancements, and made to work with the latest Notepad++ release.
*SKSE*, and even *SkyUI*.
- *Install function list support* - allows using *View -> Function List* menu to show all defined functions
in a Papyrus script file.
- **[UI]** Dark mode support (partial, only dialog UIs are handled automatically for now).

### Future plan
- **[Lexer/Compiler]** [Papyrus Projects (PPJ)](https://www.creationkit.com/fallout4/index.php?title=Papyrus_Projects)
Expand Down
58 changes: 58 additions & 0 deletions dist/themes/DarkModeDefault/Papyrus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" ?>

<!--
This file is part of Papyrus Plugin for Notepad++
Copyright (C) 2016 Tschilkroete <[email protected]> (original author)
Copyright (C) 2021 blu3mania (modified for Notepad++ 7.8.x-7.9.x)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<NotepadPlus lexerConfigVersion="3">
<Languages>
<Language name="Papyrus Script" ext="psc" commentLine="; " commentStart=";/" commentEnd="/;">
<!-- Make sure you keep keyword names instre1, instre2, type1 - type7 unchanged -->
<Keywords name="instre1">( ) [ ] , = + - * / % . ! &gt; &lt; | &amp; as is</Keywords>
<Keywords name="instre2">if else elseif endif while endwhile</Keywords>
<Keywords name="type1">bool float int string var</Keywords>
<Keywords name="type2">scriptname extends import debugonly betaonly default event endevent state endstate function endfunction global native struct endstruct property endproperty auto autoreadonly conditional hidden const mandatory group endgroup collapsed collapsedonref collapsedonbase new return length</Keywords>
<Keywords name="type3">none parent self true false</Keywords>
<Keywords name="type4">if while function struct property group event state</Keywords>
<Keywords name="type5">else elseif</Keywords>
<Keywords name="type6">endif endwhile endfunction native endstruct endproperty auto autoreadonly endgroup endevent endstate</Keywords>
</Language>
</Languages>
<LexerStyles>
<LexerType name="Papyrus Script" desc="Papyrus Script" ext="" excluded="no">
<WordsStyle name="Default" styleID="0" fgColor="DCDCCC" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" />
<WordsStyle name="Operator" styleID="1" fgColor="DCDCCC" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="instre1" />
<WordsStyle name="Flow control" styleID="2" fgColor="DFC47D" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="instre2" />
<WordsStyle name="Type" styleID="3" fgColor="CEDF99" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="type1" />
<WordsStyle name="Keyword" styleID="4" fgColor="DFC47D" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="type2" />
<WordsStyle name="Keyword2" styleID="5" fgColor="CEDF99" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="type3" />
<WordsStyle name="Fold (open)" styleID="6" fgColor="C000C0" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="type4" />
<WordsStyle name="Fold (middle)" styleID="7" fgColor="C000C0" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="type5" />
<WordsStyle name="Fold (close)" styleID="8" fgColor="C000C0" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" keywordClass="type6" />
<WordsStyle name="Comment (single line)" styleID="9" fgColor="3F9F3F" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="2" />
<WordsStyle name="Comment (multi-line)" styleID="10" fgColor="3F9F3F" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="2" />
<WordsStyle name="Comment (document)" styleID="11" fgColor="3F9F3F" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="2" />
<WordsStyle name="Number" styleID="12" fgColor="8CD0D3" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" />
<WordsStyle name="String" styleID="13" fgColor="CC9393" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" />
<WordsStyle name="Property" styleID="14" fgColor="3F9494" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="1" />
<WordsStyle name="Class" styleID="15" fgColor="418ECA" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" />
<WordsStyle name="Function" styleID="16" fgColor="FFCFAF" bgColor="3F3F3F" fontName="" fontSize="" fontStyle="0" />
</LexerType>
</LexerStyles>
</NotepadPlus>
2 changes: 1 addition & 1 deletion src/Plugin/Common/Resources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define PLUGIN_NAME L"Papyrus"
#define MAJOR_VERSION 0
#define MINOR_VERSION 4
#define MINOR_VERSION 5
#define PATCH_VERSION 0
#define BUILD_NUMBER 0 // This number will be replaced by build script
#define PLUGIN_VERSION STR(MAJOR_VERSION) L"." STR(MINOR_VERSION) L"." STR(PATCH_VERSION)
Expand Down

0 comments on commit 83f2c77

Please sign in to comment.