making header better and fixing stroke width on text

This commit is contained in:
Chris Cochrun 2025-07-04 06:11:48 -05:00
parent 049e5bd7cc
commit 7f66f33462
4 changed files with 27 additions and 19 deletions

View file

@ -551,7 +551,7 @@ pub(crate) fn slide_view(
.text(&slide_text)
.fill("#fff")
.shadow(text_svg::shadow(2, 2, 5, "#000000"))
.stroke(text_svg::stroke(1, "#000"))
.stroke(text_svg::stroke(3, "#000"))
.font(font)
.view()
.map(|m| Message::None);

View file

@ -218,7 +218,7 @@ impl TextSvg {
};
let stroke = if let Some(stroke) = &self.stroke {
format!(
"stroke=\"{}\" stroke-width=\"{}\"",
"stroke=\"{}\" stroke-width=\"{}px\" paint-order=\"stroke\"",
stroke.color, stroke.size
)
} else {