Rename container::box_ to rounded_box
This commit is contained in:
parent
0a65fd0d74
commit
34faedd32b
8 changed files with 9 additions and 9 deletions
|
|
@ -286,7 +286,7 @@ fn action<'a, Message: Clone + 'a>(
|
||||||
label,
|
label,
|
||||||
tooltip::Position::FollowCursor,
|
tooltip::Position::FollowCursor,
|
||||||
)
|
)
|
||||||
.style(container::box_)
|
.style(container::rounded_box)
|
||||||
.into()
|
.into()
|
||||||
} else {
|
} else {
|
||||||
action.style(button::secondary).into()
|
action.style(button::secondary).into()
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,7 @@ fn application<'a>() -> Element<'a, Message> {
|
||||||
.width(200)
|
.width(200)
|
||||||
.align_items(Alignment::Center),
|
.align_items(Alignment::Center),
|
||||||
)
|
)
|
||||||
.style(container::box_)
|
.style(container::rounded_box)
|
||||||
.height(Length::Fill)
|
.height(Length::Fill)
|
||||||
.center_y();
|
.center_y();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ impl Application for App {
|
||||||
)
|
)
|
||||||
.width(300)
|
.width(300)
|
||||||
.padding(10)
|
.padding(10)
|
||||||
.style(container::box_);
|
.style(container::rounded_box);
|
||||||
|
|
||||||
Modal::new(content, modal)
|
Modal::new(content, modal)
|
||||||
.on_blur(Message::HideModal)
|
.on_blur(Message::HideModal)
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ impl Application for Example {
|
||||||
|
|
||||||
let image = container(image)
|
let image = container(image)
|
||||||
.padding(10)
|
.padding(10)
|
||||||
.style(container::box_)
|
.style(container::rounded_box)
|
||||||
.width(Length::FillPortion(2))
|
.width(Length::FillPortion(2))
|
||||||
.height(Length::Fill)
|
.height(Length::Fill)
|
||||||
.center_x()
|
.center_x()
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ mod toast {
|
||||||
container(text(toast.body.as_str()))
|
container(text(toast.body.as_str()))
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.padding(5)
|
.padding(5)
|
||||||
.style(container::box_),
|
.style(container::rounded_box),
|
||||||
])
|
])
|
||||||
.max_width(200)
|
.max_width(200)
|
||||||
.into()
|
.into()
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ impl Sandbox for Example {
|
||||||
self.position,
|
self.position,
|
||||||
)
|
)
|
||||||
.gap(10)
|
.gap(10)
|
||||||
.style(container::box_);
|
.style(container::rounded_box);
|
||||||
|
|
||||||
container(tooltip)
|
container(tooltip)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ impl Application for Example {
|
||||||
container(text("I am the outer container!"))
|
container(text("I am the outer container!"))
|
||||||
.id(OUTER_CONTAINER.clone())
|
.id(OUTER_CONTAINER.clone())
|
||||||
.padding(40)
|
.padding(40)
|
||||||
.style(container::box_),
|
.style(container::rounded_box),
|
||||||
vertical_space().height(400),
|
vertical_space().height(400),
|
||||||
scrollable(
|
scrollable(
|
||||||
column![
|
column![
|
||||||
|
|
@ -141,7 +141,7 @@ impl Application for Example {
|
||||||
container(text("I am the inner container!"))
|
container(text("I am the inner container!"))
|
||||||
.id(INNER_CONTAINER.clone())
|
.id(INNER_CONTAINER.clone())
|
||||||
.padding(40)
|
.padding(40)
|
||||||
.style(container::box_),
|
.style(container::rounded_box),
|
||||||
vertical_space().height(400),
|
vertical_space().height(400),
|
||||||
]
|
]
|
||||||
.padding(20)
|
.padding(20)
|
||||||
|
|
|
||||||
|
|
@ -590,7 +590,7 @@ pub fn transparent<Theme>(_theme: &Theme, _status: Status) -> Appearance {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A rounded [`Container`] with a background.
|
/// A rounded [`Container`] with a background.
|
||||||
pub fn box_(theme: &Theme, _status: Status) -> Appearance {
|
pub fn rounded_box(theme: &Theme, _status: Status) -> Appearance {
|
||||||
let palette = theme.extended_palette();
|
let palette = theme.extended_palette();
|
||||||
|
|
||||||
Appearance {
|
Appearance {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue