refac(comp): some cosmetic changes
This commit is contained in:
parent
b10937ad18
commit
21a098405e
|
@ -11,12 +11,7 @@ pub fn build(
|
|||
rest_duration_env_key: Key<f64>,
|
||||
) -> impl Widget<state::BreakTimer> {
|
||||
comp::flex::row_sta_sta()
|
||||
.with_child(
|
||||
Label::new(name)
|
||||
.align_right()
|
||||
.fix_width(50.0)
|
||||
.background(druid::Color::AQUA),
|
||||
)
|
||||
.with_child(Label::new(name).align_right().fix_width(50.0))
|
||||
.with_child(
|
||||
comp::timer::build()
|
||||
.controller(
|
||||
|
|
|
@ -13,7 +13,7 @@ pub fn build() -> impl Widget<state::Timer> {
|
|||
let progress_bar = ProgressBar::new().lens(state::Timer::progress);
|
||||
|
||||
comp::flex::row_sta_sta()
|
||||
.with_child(time_label)
|
||||
.with_child(time_label.align_right().fix_width(55.0))
|
||||
.with_child(progress_bar)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue