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
|
|
@ -6,7 +6,7 @@ use iced::time::Instant;
|
|||
use iced::widget::shader::wgpu;
|
||||
use iced::widget::{center, checkbox, column, row, shader, slider, text};
|
||||
use iced::window;
|
||||
use iced::{Color, Element, Length, Subscription};
|
||||
use iced::{Center, Color, Element, Fill, Subscription};
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::application(
|
||||
|
|
@ -122,12 +122,11 @@ impl IcedCubes {
|
|||
let controls = column![top_controls, bottom_controls,]
|
||||
.spacing(10)
|
||||
.padding(20)
|
||||
.center_x();
|
||||
.align_x(Center);
|
||||
|
||||
let shader =
|
||||
shader(&self.scene).width(Length::Fill).height(Length::Fill);
|
||||
let shader = shader(&self.scene).width(Fill).height(Fill);
|
||||
|
||||
center(column![shader, controls].center_x()).into()
|
||||
center(column![shader, controls].align_x(Center)).into()
|
||||
}
|
||||
|
||||
fn subscription(&self) -> Subscription<Message> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue