diff --git a/nw/core/tohtml.py b/nw/core/tohtml.py index c451daaf..282717b3 100644 --- a/nw/core/tohtml.py +++ b/nw/core/tohtml.py @@ -269,6 +269,7 @@ class ToHtml(Tokenizer): theStyles.append(r"h1, h2 {color: rgb(66, 113, 174);}") theStyles.append(r"h3, h4 {color: rgb(50, 50, 50);}") theStyles.append(r"h1, h2, h3, h4 {page-break-after: avoid;}") + theStyles.append(r"a {color: rgb(66, 113, 174);}") theStyles.append(r".title {font-size: 2.5em;}") theStyles.append(r".tags {color: rgb(245, 135, 31); font-weight: bold;}") theStyles.append(r".break {text-align: left;}") diff --git a/nw/gui/build.py b/nw/gui/build.py index 269c49d7..87bb8e65 100644 --- a/nw/gui/build.py +++ b/nw/gui/build.py @@ -982,8 +982,7 @@ class GuiBuildNovelDocView(QTextBrowser): if not theStyles: theStyles.append(r"h1, h2 {color: rgb(66, 113, 174);}") theStyles.append(r"h3, h4 {color: rgb(50, 50, 50);}") - theStyles.append(r"a {color: rgb(137, 89, 168);}") - theStyles.append(r"mark {background-color: rgb(240, 198, 116);}") + theStyles.append(r"a {color: rgb(66, 113, 174);}") theStyles.append(r".tags {color: rgb(245, 135, 31); font-weight: bold;}") self.qDocument.setDefaultStyleSheet("\n".join(theStyles)) diff --git a/tests/reference/build/1_LoremIpsum.htm b/tests/reference/build/1_LoremIpsum.htm index 4faf5f79..a3e4432f 100644 --- a/tests/reference/build/1_LoremIpsum.htm +++ b/tests/reference/build/1_LoremIpsum.htm @@ -9,6 +9,7 @@ p {text-align: left;} h1, h2 {color: rgb(66, 113, 174);} h3, h4 {color: rgb(50, 50, 50);} h1, h2, h3, h4 {page-break-after: avoid;} +a {color: rgb(66, 113, 174);} .title {font-size: 2.5em;} .tags {color: rgb(245, 135, 31); font-weight: bold;} .break {text-align: left;} diff --git a/tests/reference/build/2_LoremIpsum.htm b/tests/reference/build/2_LoremIpsum.htm index 7ea871c2..3bbbe9a1 100644 --- a/tests/reference/build/2_LoremIpsum.htm +++ b/tests/reference/build/2_LoremIpsum.htm @@ -9,6 +9,7 @@ p {text-align: justify;} h1, h2 {color: rgb(66, 113, 174);} h3, h4 {color: rgb(50, 50, 50);} h1, h2, h3, h4 {page-break-after: avoid;} +a {color: rgb(66, 113, 174);} .title {font-size: 2.5em;} .tags {color: rgb(245, 135, 31); font-weight: bold;} .break {text-align: left;} diff --git a/tests/reference/build/3_LoremIpsum.htm b/tests/reference/build/3_LoremIpsum.htm index a9c2e695..cbd64275 100644 --- a/tests/reference/build/3_LoremIpsum.htm +++ b/tests/reference/build/3_LoremIpsum.htm @@ -9,6 +9,7 @@ p {text-align: justify;} h1, h2 {color: rgb(66, 113, 174);} h3, h4 {color: rgb(50, 50, 50);} h1, h2, h3, h4 {page-break-after: avoid;} +a {color: rgb(66, 113, 174);} .title {font-size: 2.5em;} .tags {color: rgb(245, 135, 31); font-weight: bold;} .break {text-align: left;}