From 0ae6b1a810a8c6d908614bc0c67599510d9861dd Mon Sep 17 00:00:00 2001 From: Le Tan Date: Wed, 25 Jul 2018 21:19:20 +0800 Subject: [PATCH] theme: refine styles for MARK --- src/pegmarkdownhighlighter.cpp | 2 +- src/resources/themes/v_detorte/v_detorte.css | 4 ---- src/resources/themes/v_detorte/v_detorte.mdhl | 4 ++++ src/resources/themes/v_detorte/v_detorte.palette | 2 +- src/resources/themes/v_moonlight/v_moonlight.mdhl | 4 ++++ src/resources/themes/v_moonlight/v_moonlight.palette | 2 +- src/resources/themes/v_native/v_native.mdhl | 4 ++++ src/resources/themes/v_native/v_native.palette | 2 +- src/resources/themes/v_pure/v_pure.mdhl | 4 ++++ src/resources/themes/v_pure/v_pure.palette | 2 +- 10 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/pegmarkdownhighlighter.cpp b/src/pegmarkdownhighlighter.cpp index 8be19255..b47582c6 100644 --- a/src/pegmarkdownhighlighter.cpp +++ b/src/pegmarkdownhighlighter.cpp @@ -15,7 +15,7 @@ PegMarkdownHighlighter::PegMarkdownHighlighter(QTextDocument *p_doc) m_doc(p_doc), m_timeStamp(0), m_parser(NULL), - m_parserExts(pmh_EXT_NOTES | pmh_EXT_STRIKE | pmh_EXT_FRONTMATTER) + m_parserExts(pmh_EXT_NOTES | pmh_EXT_STRIKE | pmh_EXT_FRONTMATTER | pmh_EXT_MARK) { } diff --git a/src/resources/themes/v_detorte/v_detorte.css b/src/resources/themes/v_detorte/v_detorte.css index 729bf330..0d9438de 100644 --- a/src/resources/themes/v_detorte/v_detorte.css +++ b/src/resources/themes/v_detorte/v_detorte.css @@ -16,10 +16,6 @@ h1, h2, h3, h4, h5, h6 { padding: 0; } -strong, em { - color: #E0E0E0; -} - p { padding: 0; margin-top: 16px; diff --git a/src/resources/themes/v_detorte/v_detorte.mdhl b/src/resources/themes/v_detorte/v_detorte.mdhl index ed76dda2..e76b2596 100644 --- a/src/resources/themes/v_detorte/v_detorte.mdhl +++ b/src/resources/themes/v_detorte/v_detorte.mdhl @@ -200,3 +200,7 @@ font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New DISPLAYFORMULA foreground: 93d3cc font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New + +MARK +foreground: dadada +background: 802090 diff --git a/src/resources/themes/v_detorte/v_detorte.palette b/src/resources/themes/v_detorte/v_detorte.palette index ca3c5a65..8fdaec01 100644 --- a/src/resources/themes/v_detorte/v_detorte.palette +++ b/src/resources/themes/v_detorte/v_detorte.palette @@ -9,7 +9,7 @@ mdhl_file=v_detorte.mdhl css_file=v_detorte.css codeblock_css_file=v_detorte_codeblock.css mermaid_css_file=v_detorte_mermaid.css -version=6 +version=7 ; This mapping will be used to translate colors when the content of HTML is copied ; without background. You could just specify the foreground colors mapping here. diff --git a/src/resources/themes/v_moonlight/v_moonlight.mdhl b/src/resources/themes/v_moonlight/v_moonlight.mdhl index dabcdf0c..2eb8418c 100644 --- a/src/resources/themes/v_moonlight/v_moonlight.mdhl +++ b/src/resources/themes/v_moonlight/v_moonlight.mdhl @@ -199,3 +199,7 @@ font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New DISPLAYFORMULA foreground: 4db6ac font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New + +MARK +foreground: abb2bf +background: 551560 diff --git a/src/resources/themes/v_moonlight/v_moonlight.palette b/src/resources/themes/v_moonlight/v_moonlight.palette index f75a630e..25d71527 100644 --- a/src/resources/themes/v_moonlight/v_moonlight.palette +++ b/src/resources/themes/v_moonlight/v_moonlight.palette @@ -7,7 +7,7 @@ mdhl_file=v_moonlight.mdhl css_file=v_moonlight.css codeblock_css_file=v_moonlight_codeblock.css mermaid_css_file=v_moonlight_mermaid.css -version=17 +version=18 ; This mapping will be used to translate colors when the content of HTML is copied ; without background. You could just specify the foreground colors mapping here. diff --git a/src/resources/themes/v_native/v_native.mdhl b/src/resources/themes/v_native/v_native.mdhl index da3ce5bb..4b2c6e74 100644 --- a/src/resources/themes/v_native/v_native.mdhl +++ b/src/resources/themes/v_native/v_native.mdhl @@ -195,3 +195,7 @@ font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New DISPLAYFORMULA foreground: 00897b font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New + +MARK +foreground: 363636 +background: ffff76 diff --git a/src/resources/themes/v_native/v_native.palette b/src/resources/themes/v_native/v_native.palette index e3ea2a21..62ad198c 100644 --- a/src/resources/themes/v_native/v_native.palette +++ b/src/resources/themes/v_native/v_native.palette @@ -7,7 +7,7 @@ mdhl_file=v_native.mdhl css_file=v_native.css codeblock_css_file=v_native_codeblock.css mermaid_css_file=v_native_mermaid.css -version=14 +version=15 [phony] ; Abstract color attributes. diff --git a/src/resources/themes/v_pure/v_pure.mdhl b/src/resources/themes/v_pure/v_pure.mdhl index 9989d61b..d2802ad0 100644 --- a/src/resources/themes/v_pure/v_pure.mdhl +++ b/src/resources/themes/v_pure/v_pure.mdhl @@ -196,3 +196,7 @@ font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New DISPLAYFORMULA foreground: 00897b font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New + +MARK +foreground: 222222 +background: ffff76 diff --git a/src/resources/themes/v_pure/v_pure.palette b/src/resources/themes/v_pure/v_pure.palette index d7a07212..ff3c8b72 100644 --- a/src/resources/themes/v_pure/v_pure.palette +++ b/src/resources/themes/v_pure/v_pure.palette @@ -7,7 +7,7 @@ mdhl_file=v_pure.mdhl css_file=v_pure.css codeblock_css_file=v_pure_codeblock.css mermaid_css_file=v_pure_mermaid.css -version=15 +version=16 [phony] ; Abstract color attributes.