Rename fill
to bg
This commit is contained in:
parent
597a9f9548
commit
296a2b8e5d
35 changed files with 136 additions and 106 deletions
|
@ -141,7 +141,7 @@ impl<S: 'static + Send + Sync + Clone> Label<S> {
|
|||
.my_auto()
|
||||
.w_full()
|
||||
.h_px()
|
||||
.fill(LabelColor::Hidden.hsla(cx)),
|
||||
.bg(LabelColor::Hidden.hsla(cx)),
|
||||
)
|
||||
})
|
||||
.children(runs.into_iter().map(|run| {
|
||||
|
@ -185,7 +185,11 @@ mod stories {
|
|||
}
|
||||
}
|
||||
|
||||
fn render(&mut self, _view: &mut S, cx: &mut ViewContext<S>) -> impl Element<ViewState = S> {
|
||||
fn render(
|
||||
&mut self,
|
||||
_view: &mut S,
|
||||
cx: &mut ViewContext<S>,
|
||||
) -> impl Element<ViewState = S> {
|
||||
Story::container(cx)
|
||||
.child(Story::title_for::<_, Label<S>>(cx))
|
||||
.child(Story::label(cx, "Default"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue