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

@ -1,7 +1,7 @@
use iced::keyboard;
use iced::time;
use iced::widget::{button, center, column, row, text};
use iced::{Element, Subscription, Theme};
use iced::{Center, Element, Subscription, Theme};
use std::time::{Duration, Instant};
@ -101,7 +101,7 @@ impl Stopwatch {
.size(40);
let button =
|label| button(text(label).center_x()).padding(10).width(80);
|label| button(text(label).align_x(Center)).padding(10).width(80);
let toggle_button = {
let label = match self.state {
@ -118,7 +118,7 @@ impl Stopwatch {
let controls = row![toggle_button, reset_button].spacing(20);
let content = column![duration, controls].center_x().spacing(20);
let content = column![duration, controls].align_x(Center).spacing(20);
center(content).into()
}