mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
disable background rgba
This commit is contained in:
parent
c0d372a0d2
commit
f832ff6ad0
1 changed files with 2 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ impl Syntax {
|
||||||
alt: Option<&String>,
|
alt: Option<&String>,
|
||||||
) -> Result<Vec<(TextTag, String)>, Error> {
|
) -> Result<Vec<(TextTag, String)>, Error> {
|
||||||
if let Some(name) = alt {
|
if let Some(name) = alt {
|
||||||
if let Some(reference) = self.syntax_set.find_syntax_by_extension(name) {
|
if let Some(reference) = self.syntax_set.find_syntax_by_extension("rs") {
|
||||||
return self.syntect_buffer(source_code, source_tag, reference);
|
return self.syntect_buffer(source_code, source_tag, reference);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -78,7 +78,7 @@ impl Syntax {
|
||||||
// @TODO copy preset tag.clone_from(source_tag);
|
// @TODO copy preset tag.clone_from(source_tag);
|
||||||
|
|
||||||
// Tuneup using syntect conversion
|
// Tuneup using syntect conversion
|
||||||
tag.set_background_rgba(Some(&color_to_rgba(style.background)));
|
// tag.set_background_rgba(Some(&color_to_rgba(style.background)));
|
||||||
tag.set_foreground_rgba(Some(&color_to_rgba(style.foreground)));
|
tag.set_foreground_rgba(Some(&color_to_rgba(style.foreground)));
|
||||||
tag.set_style(font_style_to_style(style.font_style));
|
tag.set_style(font_style_to_style(style.font_style));
|
||||||
tag.set_underline(font_style_to_underline(style.font_style));
|
tag.set_underline(font_style_to_underline(style.font_style));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue