refac(comp): some cosmetic changes

This commit is contained in:
Dmitriy Pleshevskiy 2022-02-14 23:17:53 +03:00
parent b10937ad18
commit 21a098405e
2 changed files with 2 additions and 7 deletions

View File

@ -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(

View File

@ -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)
}