making header better and fixing stroke width on text
This commit is contained in:
parent
049e5bd7cc
commit
7f66f33462
4 changed files with 27 additions and 19 deletions
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue