Rename space_{x,y} to space::{horizontal,vertical}
This commit is contained in:
parent
299eb54d6f
commit
611f89fc59
25 changed files with 143 additions and 142 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use iced::gradient;
|
||||
use iced::theme;
|
||||
use iced::widget::{checkbox, column, container, row, slider, space_x, text};
|
||||
use iced::widget::{checkbox, column, container, row, slider, space, text};
|
||||
use iced::{Center, Color, Element, Fill, Radians, Theme, color};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
|
|
@ -57,7 +57,7 @@ impl Gradient {
|
|||
transparent,
|
||||
} = *self;
|
||||
|
||||
let gradient_box = container(space_x())
|
||||
let gradient_box = container(space())
|
||||
.style(move |_theme| {
|
||||
let gradient = gradient::Linear::new(angle)
|
||||
.add_stop(0.0, start)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue