Update default themes (#2475)

This commit is contained in:
Veronica Berglyd Olsen
2025-07-16 16:28:30 +02:00
committed by GitHub
10 changed files with 34 additions and 34 deletions
+5 -5
View File
@@ -110,18 +110,18 @@ A colour theme ``.conf`` file consists of the following settings:
headertag = green:L135 headertag = green:L135
emphasis = orange emphasis = orange
dialog = blue dialog = blue
altdialog = blue altdialog = red
note = yellow:D125 note = yellow:D125
hidden = faded hidden = faded
shortcode = green shortcode = blue
keyword = red keyword = red
tag = green tag = green
value = blue value = green
optional = green optional = blue
spellcheckline = red spellcheckline = red
errorline = green errorline = green
replacetag = green replacetag = green
modifier = green modifier = blue
texthighlight = yellow:72 texthighlight = yellow:72
+2 -2
View File
@@ -63,11 +63,11 @@ dialog = blue
altdialog = red altdialog = red
note = yellow note = yellow
hidden = faded hidden = faded
shortcode = green shortcode = blue
keyword = red keyword = red
tag = green tag = green
value = green value = green
optional = green optional = blue
spellcheckline = red spellcheckline = red
errorline = green errorline = green
replacetag = green replacetag = green
+2 -2
View File
@@ -63,11 +63,11 @@ dialog = blue
altdialog = red altdialog = red
note = yellow:D125 note = yellow:D125
hidden = faded hidden = faded
shortcode = green shortcode = blue
keyword = red keyword = red
tag = green tag = green
value = green value = green
optional = green optional = blue
spellcheckline = red spellcheckline = red
errorline = green errorline = green
replacetag = green replacetag = green
+3 -3
View File
@@ -1,12 +1,12 @@
%%~name: John Smith %%~name: John Smith
%%~path: f7e2d9f330615/14298de4d9524 %%~path: f7e2d9f330615/14298de4d9524
%%~kind: CHARACTER/NOTE %%~kind: CHARACTER/NOTE
%%~hash: f85b4da6ba4a557db0c4d5f1b59f33ba01542606 %%~hash: d344894f612ee7b6f75e60a8d2cfdf32c78d1b0a
%%~date: Unknown/2024-01-30 10:58:18 %%~date: Unknown/2025-07-16 12:09:00
# John Smith # John Smith
@tag: John | John Smith @tag: John | John Smith
% Short: The sidekick %Short: The sidekick
Hes pretty cool. Not Brad Pitt though. Hes pretty cool. Not Brad Pitt though.
+3 -3
View File
@@ -1,13 +1,13 @@
%%~name: Chapter One %%~name: Chapter One
%%~path: 7031beac91f75/6a2d6d5f4f401 %%~path: 7031beac91f75/6a2d6d5f4f401
%%~kind: NOVEL/DOCUMENT %%~kind: NOVEL/DOCUMENT
%%~hash: 89687756c204742d17f1d37a0ba7fa3aadaf00f2 %%~hash: 4310d3f9d399b5cf1eef66d7d7caa8b022fc6663
%%~date: Unknown/2023-08-25 16:51:56 %%~date: Unknown/2025-07-16 12:09:14
## So it Begins ## So it Begins
@pov: Jane @pov: Jane
@location: Earth @location: Earth
% Synopsis: We can add a chapter document, but keep the scene files separate. In the chapter document we can set the meta data that applies to the whole chapter if we wish to. You can add the scenes as child documents directly under the chapter. %Synopsis: We can add a chapter document, but keep the scene files separate. In the chapter document we can set the meta data that applies to the whole chapter if we wish to. You can add the scenes as child documents directly under the chapter.
A chapter can contain leading text before the first scene, like this piece of text. A chapter can contain leading text before the first scene, like this piece of text.
+3 -3
View File
@@ -1,13 +1,13 @@
%%~name: Chapter One %%~name: Chapter One
%%~path: e5e47ebf63b1c/a520879ca0b45 %%~path: e5e47ebf63b1c/a520879ca0b45
%%~kind: NOVEL/DOCUMENT %%~kind: NOVEL/DOCUMENT
%%~hash: 2285256b970dbb3ccf833d9275cd5f8935b6aff1 %%~hash: 223ba31c0cd6c59ebb14df7f26e722c3ef3eea42
%%~date: Unknown/2023-08-25 16:52:02 %%~date: Unknown/2025-07-16 12:09:42
## Chapter One ## Chapter One
@pov: Jane @pov: Jane
% Synopsis: Remember Jane and John? %Synopsis: Remember Jane and John?
### Scene One ### Scene One
+3 -3
View File
@@ -1,10 +1,10 @@
%%~name: Title Page %%~name: Title Page
%%~path: e5e47ebf63b1c/bacb7059e3083 %%~path: e5e47ebf63b1c/bacb7059e3083
%%~kind: NOVEL/DOCUMENT %%~kind: NOVEL/DOCUMENT
%%~hash: 16b55dd0f8dc6bbba266384930a87ec211d471df %%~hash: 4805628d99711129c7296b01e5059410993ebd02
%%~date: Unknown/2023-08-25 16:52:01 %%~date: Unknown/2025-07-16 12:09:35
#! Sequel Novel #! Sequel Novel
>> **By Jane Doh** << >> **By Jane Doh** <<
% Synopsis: Jane and John are back in a sequel to My Novel! %Synopsis: Jane and John are back in a sequel to My Novel!
+3 -3
View File
@@ -1,12 +1,12 @@
%%~name: Jane Smith %%~name: Jane Smith
%%~path: f7e2d9f330615/bb2c23b3c42cc %%~path: f7e2d9f330615/bb2c23b3c42cc
%%~kind: CHARACTER/NOTE %%~kind: CHARACTER/NOTE
%%~hash: 10f072a4bf7389b0c178a4181e50833d39b945af %%~hash: d3911172cd384130e57b3754ea8a3ff30633f825
%%~date: Unknown/2024-01-30 11:05:37 %%~date: Unknown/2025-07-16 12:09:50
# Jane Smith # Jane Smith
@tag: Jane | Jane Smith @tag: Jane | Jane Smith
% Short: The heroine %Short: The heroine
Shes pretty cool. Not Angelina Jolie though. Shes pretty cool. Not Angelina Jolie though.
+7 -7
View File
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<novelWriterXML appVersion="2.8a1" hexVersion="0x020800a1" fileVersion="1.5" fileRevision="6" timeStamp="2025-07-13 18:58:02"> <novelWriterXML appVersion="2.8a1" hexVersion="0x020800a1" fileVersion="1.5" fileRevision="6" timeStamp="2025-07-16 12:10:17">
<project id="e2be99af-f9bf-4403-857a-c3d1ac25abea" saveCount="2279" autoCount="301" editTime="99977"> <project id="e2be99af-f9bf-4403-857a-c3d1ac25abea" saveCount="2282" autoCount="304" editTime="100292">
<name>Sample Project</name> <name>Sample Project</name>
<author>Jane Smith</author> <author>Jane Smith</author>
</project> </project>
@@ -54,7 +54,7 @@
<name status="s90e6c9" import="ia857f0" active="yes">Part One</name> <name status="s90e6c9" import="ia857f0" active="yes">Part One</name>
</item> </item>
<item handle="6a2d6d5f4f401" parent="7031beac91f75" root="7031beac91f75" order="3" type="FILE" class="NOVEL" layout="DOCUMENT"> <item handle="6a2d6d5f4f401" parent="7031beac91f75" root="7031beac91f75" order="3" type="FILE" class="NOVEL" layout="DOCUMENT">
<meta expanded="yes" heading="H2" charCount="95" wordCount="18" paraCount="1" cursorPos="291" /> <meta expanded="yes" heading="H2" charCount="95" wordCount="18" paraCount="1" cursorPos="47" />
<name status="sf24ce6" import="ia857f0" active="yes">Chapter One</name> <name status="sf24ce6" import="ia857f0" active="yes">Chapter One</name>
</item> </item>
<item handle="636b6aa9b697b" parent="6a2d6d5f4f401" root="7031beac91f75" order="0" type="FILE" class="NOVEL" layout="DOCUMENT"> <item handle="636b6aa9b697b" parent="6a2d6d5f4f401" root="7031beac91f75" order="0" type="FILE" class="NOVEL" layout="DOCUMENT">
@@ -86,11 +86,11 @@
<name status="sf12341" import="ia857f0">Sequel</name> <name status="sf12341" import="ia857f0">Sequel</name>
</item> </item>
<item handle="bacb7059e3083" parent="e5e47ebf63b1c" root="e5e47ebf63b1c" order="0" type="FILE" class="NOVEL" layout="DOCUMENT"> <item handle="bacb7059e3083" parent="e5e47ebf63b1c" root="e5e47ebf63b1c" order="0" type="FILE" class="NOVEL" layout="DOCUMENT">
<meta expanded="no" heading="H1" charCount="27" wordCount="5" paraCount="1" cursorPos="100" /> <meta expanded="no" heading="H1" charCount="27" wordCount="5" paraCount="1" cursorPos="41" />
<name status="sc24b8f" import="ia857f0" active="yes">Title Page</name> <name status="sc24b8f" import="ia857f0" active="yes">Title Page</name>
</item> </item>
<item handle="a520879ca0b45" parent="e5e47ebf63b1c" root="e5e47ebf63b1c" order="1" type="FILE" class="NOVEL" layout="DOCUMENT"> <item handle="a520879ca0b45" parent="e5e47ebf63b1c" root="e5e47ebf63b1c" order="1" type="FILE" class="NOVEL" layout="DOCUMENT">
<meta expanded="no" heading="H2" charCount="299" wordCount="55" paraCount="2" cursorPos="387" /> <meta expanded="no" heading="H2" charCount="299" wordCount="55" paraCount="2" cursorPos="29" />
<name status="s8ae72a" import="ia857f0" active="yes">Chapter One</name> <name status="s8ae72a" import="ia857f0" active="yes">Chapter One</name>
</item> </item>
<item handle="f6622b4617424" parent="None" root="f6622b4617424" order="2" type="ROOT" class="CHARACTER"> <item handle="f6622b4617424" parent="None" root="f6622b4617424" order="2" type="ROOT" class="CHARACTER">
@@ -102,11 +102,11 @@
<name status="sf12341" import="ia857f0">Main Characters</name> <name status="sf12341" import="ia857f0">Main Characters</name>
</item> </item>
<item handle="14298de4d9524" parent="f7e2d9f330615" root="f6622b4617424" order="0" type="FILE" class="CHARACTER" layout="NOTE"> <item handle="14298de4d9524" parent="f7e2d9f330615" root="f6622b4617424" order="0" type="FILE" class="CHARACTER" layout="NOTE">
<meta expanded="no" heading="H1" charCount="49" wordCount="9" paraCount="1" cursorPos="23" /> <meta expanded="no" heading="H1" charCount="49" wordCount="9" paraCount="1" cursorPos="40" />
<name status="sf12341" import="i2d7a54" active="yes">John Smith</name> <name status="sf12341" import="i2d7a54" active="yes">John Smith</name>
</item> </item>
<item handle="bb2c23b3c42cc" parent="f7e2d9f330615" root="f6622b4617424" order="1" type="FILE" class="CHARACTER" layout="NOTE"> <item handle="bb2c23b3c42cc" parent="f7e2d9f330615" root="f6622b4617424" order="1" type="FILE" class="CHARACTER" layout="NOTE">
<meta expanded="no" heading="H1" charCount="55" wordCount="9" paraCount="1" cursorPos="31" /> <meta expanded="no" heading="H1" charCount="55" wordCount="9" paraCount="1" cursorPos="40" />
<name status="sf12341" import="i56be10" active="yes">Jane Smith</name> <name status="sf12341" import="i56be10" active="yes">Jane Smith</name>
</item> </item>
<item handle="15c4492bd5107" parent="None" root="15c4492bd5107" order="3" type="ROOT" class="WORLD"> <item handle="15c4492bd5107" parent="None" root="15c4492bd5107" order="3" type="ROOT" class="WORLD">
+3 -3
View File
@@ -37,7 +37,7 @@ T_HANDLE = "0123456789abc"
@pytest.fixture() @pytest.fixture()
def syntax(nwGUI): def syntax(nwGUI):
"""Create a syntax object for use with testing.""" """Create a syntax object for use with testing."""
CONFIG.lightTheme = "tomorrow" CONFIG.lightTheme = "default_light"
CONFIG.themeMode = nwTheme.LIGHT CONFIG.themeMode = nwTheme.LIGHT
CONFIG.dialogStyle = 3 CONFIG.dialogStyle = 3
@@ -48,8 +48,8 @@ def syntax(nwGUI):
theme = SHARED.theme theme = SHARED.theme
theme.loadTheme(force=True) theme.loadTheme(force=True)
assert theme._guiPalette.base().color().getRgb() == (0xff, 0xff, 0xff, 0xff) assert theme._guiPalette.base().color().getRgb() == (0xfc, 0xfc, 0xfc, 0xff)
assert theme.syntaxTheme.text.getRgb() == (0x4d, 0x4d, 0x4c, 0xff) assert theme.syntaxTheme.text.getRgb() == (0x30, 0x30, 0x30, 0xff)
doc = QTextDocument() doc = QTextDocument()
syntax = GuiDocHighlighter(doc) syntax = GuiDocHighlighter(doc)