Align text in iced_wgpu on a case-by-case basis
This commit is contained in:
parent
19f6a5e2fd
commit
b549b509c9
5 changed files with 49 additions and 23 deletions
|
|
@ -38,7 +38,11 @@ impl checkbox::Renderer for Renderer {
|
|||
content: crate::text::CHECKMARK_ICON.to_string(),
|
||||
font: crate::text::BUILTIN_ICONS,
|
||||
size: bounds.height * 0.7,
|
||||
bounds,
|
||||
bounds: Rectangle {
|
||||
x: bounds.center_x(),
|
||||
y: bounds.center_y(),
|
||||
..bounds
|
||||
},
|
||||
color: style.checkmark_color,
|
||||
horizontal_alignment: HorizontalAlignment::Center,
|
||||
vertical_alignment: VerticalAlignment::Center,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue