Re-export variants of Length and alignment types
This commit is contained in:
parent
f9dd5cbb09
commit
76737351ea
51 changed files with 255 additions and 395 deletions
|
|
@ -3,7 +3,7 @@ use iced::gradient;
|
|||
use iced::widget::{
|
||||
checkbox, column, container, horizontal_space, row, slider, text,
|
||||
};
|
||||
use iced::{Color, Element, Length, Radians, Theme};
|
||||
use iced::{Center, Color, Element, Fill, Radians, Theme};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
tracing_subscriber::fmt::init();
|
||||
|
|
@ -67,8 +67,8 @@ impl Gradient {
|
|||
|
||||
gradient.into()
|
||||
})
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill);
|
||||
.width(Fill)
|
||||
.height(Fill);
|
||||
|
||||
let angle_picker = row![
|
||||
text("Angle").width(64),
|
||||
|
|
@ -77,7 +77,7 @@ impl Gradient {
|
|||
]
|
||||
.spacing(8)
|
||||
.padding(8)
|
||||
.center_y();
|
||||
.align_y(Center);
|
||||
|
||||
let transparency_toggle = iced::widget::Container::new(
|
||||
checkbox("Transparent window", transparent)
|
||||
|
|
@ -129,6 +129,6 @@ fn color_picker(label: &str, color: Color) -> Element<'_, Color> {
|
|||
]
|
||||
.spacing(8)
|
||||
.padding(8)
|
||||
.center_y()
|
||||
.align_y(Center)
|
||||
.into()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue