From fb3f5aef60fff53786976eab31964c87d9e0cb90 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 1 Apr 2023 23:35:32 +0800 Subject: [PATCH 1/2] Fix ayu theme markup unreadable bg --- runtime/themes/ayu_dark.toml | 2 +- runtime/themes/ayu_light.toml | 2 +- runtime/themes/ayu_mirage.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/themes/ayu_dark.toml b/runtime/themes/ayu_dark.toml index 211d423f4e43..d169fcf4760e 100644 --- a/runtime/themes/ayu_dark.toml +++ b/runtime/themes/ayu_dark.toml @@ -22,7 +22,7 @@ "namespace" = "blue" "markup.heading" = "orange" "markup.list" = "yellow" -"markup.raw.block" = { bg = "gray", fg = "orange" } +"markup.raw.block" = "orange" "markup.link.url" = "blue" "markup.link.text" = "yellow" "markup.link.label" = "green" diff --git a/runtime/themes/ayu_light.toml b/runtime/themes/ayu_light.toml index 4b0ba1db76bd..2b272b0a9770 100644 --- a/runtime/themes/ayu_light.toml +++ b/runtime/themes/ayu_light.toml @@ -22,7 +22,7 @@ "namespace" = "blue" "markup.heading" = "orange" "markup.list" = "yellow" -"markup.raw.block" = { bg = "gray", fg = "orange" } +"markup.raw.block" = "orange" "markup.link.url" = "blue" "markup.link.text" = "yellow" "markup.link.label" = "green" diff --git a/runtime/themes/ayu_mirage.toml b/runtime/themes/ayu_mirage.toml index 5afe0acd91ac..807f52714388 100644 --- a/runtime/themes/ayu_mirage.toml +++ b/runtime/themes/ayu_mirage.toml @@ -22,7 +22,7 @@ "namespace" = "blue" "markup.heading" = "orange" "markup.list" = "yellow" -"markup.raw.block" = { bg = "gray", fg = "orange" } +"markup.raw.block" = "orange" "markup.link.url" = "blue" "markup.link.text" = "yellow" "markup.link.label" = "green" From 1cc781bdfff082b2a5e6622c534653b510c37a82 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 2 Apr 2023 01:18:30 +0800 Subject: [PATCH 2/2] Add modifiers for markup --- runtime/themes/ayu_dark.toml | 3 +++ runtime/themes/ayu_light.toml | 5 ++++- runtime/themes/ayu_mirage.toml | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/runtime/themes/ayu_dark.toml b/runtime/themes/ayu_dark.toml index d169fcf4760e..1e1aab91eaaa 100644 --- a/runtime/themes/ayu_dark.toml +++ b/runtime/themes/ayu_dark.toml @@ -22,6 +22,9 @@ "namespace" = "blue" "markup.heading" = "orange" "markup.list" = "yellow" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.strikethrough" = { modifiers = ["crossed_out"] } "markup.raw.block" = "orange" "markup.link.url" = "blue" "markup.link.text" = "yellow" diff --git a/runtime/themes/ayu_light.toml b/runtime/themes/ayu_light.toml index 2b272b0a9770..d4cb56de8a5b 100644 --- a/runtime/themes/ayu_light.toml +++ b/runtime/themes/ayu_light.toml @@ -22,8 +22,11 @@ "namespace" = "blue" "markup.heading" = "orange" "markup.list" = "yellow" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.strikethrough" = { modifiers = ["crossed_out"] } "markup.raw.block" = "orange" -"markup.link.url" = "blue" +"markup.link.url" = { fg = "blue", modifiers = ["underlined"] } "markup.link.text" = "yellow" "markup.link.label" = "green" "markup.quote" = "yellow" diff --git a/runtime/themes/ayu_mirage.toml b/runtime/themes/ayu_mirage.toml index 807f52714388..b27efc1cccb1 100644 --- a/runtime/themes/ayu_mirage.toml +++ b/runtime/themes/ayu_mirage.toml @@ -22,6 +22,9 @@ "namespace" = "blue" "markup.heading" = "orange" "markup.list" = "yellow" +"markup.bold" = { fg = "orange", modifiers = ["bold"] } +"markup.italic" = { fg = "orange", modifiers = ["italic"] } +"markup.strikethrough" = { modifiers = ["crossed_out"] } "markup.raw.block" = "orange" "markup.link.url" = "blue" "markup.link.text" = "yellow"