From 80dace9d4349cf588660c40599bd70f97ab420fe Mon Sep 17 00:00:00 2001 From: un-pogaz <46523284+un-pogaz@users.noreply.github.com> Date: Thu, 27 Apr 2023 13:57:44 +0200 Subject: [PATCH] basic bold and emphasis --- src/calibre/gui2/markdown_syntax_highlighter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/markdown_syntax_highlighter.py b/src/calibre/gui2/markdown_syntax_highlighter.py index f9f1a56ac5..613f932fee 100644 --- a/src/calibre/gui2/markdown_syntax_highlighter.py +++ b/src/calibre/gui2/markdown_syntax_highlighter.py @@ -56,8 +56,8 @@ class MarkdownHighlighter(QSyntaxHighlighter): } light_theme = { - "bold": {"color":"#859900", "font-weight":"bold", "font-style":"normal"}, - "emphasis": {"color":"#b58900", "font-weight":"bold", "font-style":"italic"}, + "bold": {"font-weight":"bold"}, + "emphasis": {"font-style":"italic"}, "link": {"color":light_link_color.name(), "font-weight":"normal", "font-style":"normal"}, "image": {"color":"#cb4b16", "font-weight":"normal", "font-style":"normal"}, "header": {"color":"#2aa198", "font-weight":"bold", "font-style":"normal"}, @@ -71,8 +71,8 @@ class MarkdownHighlighter(QSyntaxHighlighter): } dark_theme = { - "bold": {"color":"#859900", "font-weight":"bold", "font-style":"normal"}, - "emphasis": {"color":"#b58900", "font-weight":"bold", "font-style":"italic"}, + "bold": {"font-weight":"bold"}, + "emphasis": {"font-style":"italic"}, "link": {"color":dark_link_color.name(), "font-weight":"normal", "font-style":"normal"}, "image": {"color":"#cb4b16", "font-weight":"normal", "font-style":"normal"}, "header": {"color":"#2aa198", "font-weight":"bold", "font-style":"normal"},