summaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-02-07 01:28:05 +0000
committerBlaž Hrastnik2022-02-07 01:30:03 +0000
commite7f5ec55617f9f6cddfd78b3c42960f757705f2b (patch)
tree93d18cb9d2767ecbbad0fec33b5bd5f6e493986a /helix-term/src/ui
parentf5b95beef69bbd8e627b6b0e7ea69317fd12b763 (diff)
fix: There is no such thing as markup.normal, use ui.text
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/markdown.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs
index 003266d3..6a7b641a 100644
--- a/helix-term/src/ui/markdown.rs
+++ b/helix-term/src/ui/markdown.rs
@@ -22,7 +22,6 @@ pub struct Markdown {
config_loader: Arc<syntax::Loader>,
- text_style: String,
block_style: String,
heading_style: String,
}
@@ -35,14 +34,12 @@ impl Markdown {
Self {
contents,
config_loader,
- text_style: "markup.normal".into(),
block_style: "markup.raw.inline".into(),
heading_style: "markup.heading".into(),
}
}
pub fn style_group(mut self, suffix: &str) -> Self {
- self.text_style = format!("markup.normal.{}", suffix);
self.block_style = format!("markup.raw.inline.{}", suffix);
self.heading_style = format!("markup.heading.{}", suffix);
self
@@ -78,7 +75,7 @@ impl Markdown {
.unwrap_or_default()
};
}
- let text_style = get_theme!(self.text_style);
+ let text_style = theme.map(|theme| theme.get("ui.text")).unwrap_or_default();
let code_style = get_theme!(self.block_style);
let heading_style = get_theme!(self.heading_style);