Skip to content

Commit

Permalink
Use consistent dialogue colours in preview, ODT and HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jun 10, 2024
1 parent 4b0ad6e commit 7821f09
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions novelwriter/core/tohtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ def getStyleSheet(self) -> list[str]:
styles.append(".break {text-align: left;}")
styles.append(".synopsis {font-style: italic;}")
styles.append(".comment {font-style: italic; color: rgb(100, 100, 100);}")
styles.append(".dialog {color: rgb(174, 0, 0);}")
styles.append(".altdialog {color: rgb(66, 113, 174);}")
styles.append(".dialog {color: rgb(66, 113, 174);}")
styles.append(".altdialog {color: rgb(129, 55, 9);}")

return styles

Expand Down
4 changes: 2 additions & 2 deletions novelwriter/tools/manuscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ def _generatePreview(self) -> None:
theme.keyword = QColor(245, 135, 31)
theme.tag = QColor(66, 113, 174)
theme.optional = QColor(66, 113, 174)
theme.dialog = QColor(174, 0, 0)
theme.altdialog = QColor(66, 113, 174)
theme.dialog = QColor(66, 113, 174)
theme.altdialog = QColor(129, 55, 9)

self.docPreview.beginNewBuild(len(docBuild))
for step, _ in docBuild.iterBuildPreview(theme):
Expand Down
4 changes: 2 additions & 2 deletions tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.htm
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
.break {text-align: left;}
.synopsis {font-style: italic;}
.comment {font-style: italic; color: rgb(100, 100, 100);}
.dialog {color: rgb(174, 0, 0);}
.altdialog {color: rgb(66, 113, 174);}
.dialog {color: rgb(66, 113, 174);}
.altdialog {color: rgb(129, 55, 9);}
</style>
<body>
<article>
Expand Down
8 changes: 4 additions & 4 deletions tests/reference/mBuildDocBuild_HTML5_Lorem_Ipsum.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"meta": {
"projectName": "Lorem Ipsum",
"novelAuthor": "lipsum.com",
"buildTime": 1718032228,
"buildTimeStr": "2024-06-10 17:10:28"
"buildTime": 1718057434,
"buildTimeStr": "2024-06-11 00:10:34"
},
"text": {
"css": [
Expand All @@ -21,8 +21,8 @@
".break {text-align: left;}",
".synopsis {font-style: italic;}",
".comment {font-style: italic; color: rgb(100, 100, 100);}",
".dialog {color: rgb(174, 0, 0);}",
".altdialog {color: rgb(66, 113, 174);}"
".dialog {color: rgb(66, 113, 174);}",
".altdialog {color: rgb(129, 55, 9);}"
],
"html": [
[
Expand Down

0 comments on commit 7821f09

Please sign in to comment.