Rename *_space to space_x and space_y
This commit is contained in:
parent
c684fbd6af
commit
89b7585465
22 changed files with 92 additions and 113 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//! This example showcases an interactive `Canvas` for drawing Bézier curves.
|
||||
use iced::widget::{button, container, horizontal_space, hover, right};
|
||||
use iced::widget::{button, container, hover, right, space_x};
|
||||
use iced::{Element, Theme};
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
|
|
@ -38,7 +38,7 @@ impl Example {
|
|||
container(hover(
|
||||
self.bezier.view(&self.curves).map(Message::AddCurve),
|
||||
if self.curves.is_empty() {
|
||||
container(horizontal_space())
|
||||
container(space_x())
|
||||
} else {
|
||||
right(
|
||||
button("Clear")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue