From 4563832318066fb927126db32f72479cb8456f2b Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Fri, 21 Jan 2022 21:03:01 +0800 Subject: [PATCH] add markup support for monokai pro themes (#1553) --- runtime/themes/monokai_pro.toml | 8 ++++++++ runtime/themes/monokai_pro_machine.toml | 8 ++++++++ runtime/themes/monokai_pro_octagon.toml | 8 ++++++++ runtime/themes/monokai_pro_ristretto.toml | 8 ++++++++ runtime/themes/monokai_pro_spectrum.toml | 8 ++++++++ 5 files changed, 40 insertions(+) diff --git a/runtime/themes/monokai_pro.toml b/runtime/themes/monokai_pro.toml index 5daeaf6cf..8de9994c8 100644 --- a/runtime/themes/monokai_pro.toml +++ b/runtime/themes/monokai_pro.toml @@ -85,6 +85,14 @@ # make diagnostic underlined, to distinguish with selection text. diagnostic = { modifiers = ["underlined"] } +# markup highlight, no need for `markup.raw` and `markup.list`, make them to be default +"markup.heading" = "green" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.link.url" = { fg = "orange", modifiers = ["underlined"] } +"markup.link.text" = "yellow" +"markup.quote" = "green" + [palette] # primary colors "red" = "#ff6188" diff --git a/runtime/themes/monokai_pro_machine.toml b/runtime/themes/monokai_pro_machine.toml index 0763a5fb6..c5890042a 100644 --- a/runtime/themes/monokai_pro_machine.toml +++ b/runtime/themes/monokai_pro_machine.toml @@ -85,6 +85,14 @@ # make diagnostic underlined, to distinguish with selection text. diagnostic = { modifiers = ["underlined"] } +# markup highlight, no need for `markup.raw` and `markup.list`, make them to be default +"markup.heading" = "green" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.link.url" = { fg = "orange", modifiers = ["underlined"] } +"markup.link.text" = "yellow" +"markup.quote" = "green" + [palette] # primary colors "red" = "#ff6d7e" diff --git a/runtime/themes/monokai_pro_octagon.toml b/runtime/themes/monokai_pro_octagon.toml index 6a74a8d0a..d9badf3ca 100644 --- a/runtime/themes/monokai_pro_octagon.toml +++ b/runtime/themes/monokai_pro_octagon.toml @@ -85,6 +85,14 @@ # make diagnostic underlined, to distinguish with selection text. diagnostic = { modifiers = ["underlined"] } +# markup highlight, no need for `markup.raw` and `markup.list`, make them to be default +"markup.heading" = "green" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.link.url" = { fg = "orange", modifiers = ["underlined"] } +"markup.link.text" = "yellow" +"markup.quote" = "green" + [palette] # primary colors "red" = "#ff657a" diff --git a/runtime/themes/monokai_pro_ristretto.toml b/runtime/themes/monokai_pro_ristretto.toml index 1a1a32ffa..ed7ebeaee 100644 --- a/runtime/themes/monokai_pro_ristretto.toml +++ b/runtime/themes/monokai_pro_ristretto.toml @@ -85,6 +85,14 @@ # make diagnostic underlined, to distinguish with selection text. diagnostic = { modifiers = ["underlined"] } +# markup highlight, no need for `markup.raw` and `markup.list`, make them to be default +"markup.heading" = "green" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.link.url" = { fg = "orange", modifiers = ["underlined"] } +"markup.link.text" = "yellow" +"markup.quote" = "green" + [palette] # primary colors "red" = "#fd6883" diff --git a/runtime/themes/monokai_pro_spectrum.toml b/runtime/themes/monokai_pro_spectrum.toml index 366304939..da06e597c 100644 --- a/runtime/themes/monokai_pro_spectrum.toml +++ b/runtime/themes/monokai_pro_spectrum.toml @@ -85,6 +85,14 @@ # make diagnostic underlined, to distinguish with selection text. diagnostic = { modifiers = ["underlined"] } +# markup highlight, no need for `markup.raw` and `markup.list`, make them to be default +"markup.heading" = "green" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.link.url" = { fg = "orange", modifiers = ["underlined"] } +"markup.link.text" = "yellow" +"markup.quote" = "green" + [palette] # primary colors "red" = "#fc618d"