Support max_width and text::Alignment for canvas::Text
This commit is contained in:
parent
6ebf386249
commit
97b4ed0d84
13 changed files with 139 additions and 127 deletions
|
|
@ -169,7 +169,7 @@ impl Theme {
|
|||
});
|
||||
|
||||
let mut text = canvas::Text {
|
||||
align_x: alignment::Horizontal::Center,
|
||||
align_x: text::Alignment::Center,
|
||||
align_y: alignment::Vertical::Top,
|
||||
size: Pixels(15.0),
|
||||
color: text_color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue