Re-export variants of Length and alignment types

This commit is contained in:
Héctor Ramón Jiménez 2024-07-12 18:12:34 +02:00
parent f9dd5cbb09
commit 76737351ea
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
51 changed files with 255 additions and 395 deletions

View file

@ -3,7 +3,7 @@ use iced::mouse;
use iced::widget::{
canvas, checkbox, column, horizontal_space, row, slider, text,
};
use iced::{Element, Length, Point, Rectangle, Renderer, Theme, Vector};
use iced::{Center, Element, Fill, Point, Rectangle, Renderer, Theme, Vector};
pub fn main() -> iced::Result {
iced::application(
@ -59,7 +59,7 @@ impl VectorialText {
};
column![
canvas(&self.state).width(Length::Fill).height(Length::Fill),
canvas(&self.state).width(Fill).height(Fill),
column![
checkbox("Use Japanese", self.state.use_japanese,)
.on_toggle(Message::ToggleJapanese),
@ -85,7 +85,7 @@ impl VectorialText {
]
.spacing(20),
]
.center_x()
.align_x(Center)
.spacing(10)
]
.spacing(10)