adding text_svg to build text out of svgs
This commit is contained in:
parent
89ec3145d1
commit
2b92b9b792
3 changed files with 28 additions and 1 deletions
26
src/ui/text_svg.rs
Normal file
26
src/ui/text_svg.rs
Normal file
|
@ -0,0 +1,26 @@
|
|||
use cosmic::iced::Font;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct TextSvg {
|
||||
text: String,
|
||||
font: Font,
|
||||
shadow: Shadow,
|
||||
stroke: Color,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Color {}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Shadow {
|
||||
offset_x: i16,
|
||||
offset_y: i16,
|
||||
spread: u16,
|
||||
color: Color,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct Stroke {
|
||||
size: u16,
|
||||
color: Color,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue