Skip to content

Commit 1190646

Browse files
committed
refactor(ui): simplify layout
1 parent f4c171f commit 1190646

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ui/pomodoro_widget.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ func NewPomodoroWidget(thePomodoro *pomodoro.Pomodoro) *PomodoroWidget {
3131
l.timer.Label.TextStyle.Bold = true
3232
l.timer.Label.Alignment = fyne.TextAlignCenter
3333

34-
timerPanel := container.NewCenter(container.NewHBox(l.timer))
35-
3634
l.playButton = widget.NewButtonWithIcon("", theme.MediaPlayIcon(), nil)
3735
l.stopButton = widget.NewButtonWithIcon("", theme.MediaStopIcon(), nil)
3836
l.nextButton = widget.NewButtonWithIcon("", theme.MediaSkipNextIcon(), nil)
@@ -75,7 +73,7 @@ func NewPomodoroWidget(thePomodoro *pomodoro.Pomodoro) *PomodoroWidget {
7573
notifyPomodoroDone(kind)
7674
}
7775

78-
l.content = container.NewVBox(timerPanel, l.buttons)
76+
l.content = container.NewCenter(container.NewVBox(l.timer, l.buttons))
7977
l.ApplyPreferences()
8078
return l
8179
}

0 commit comments

Comments
 (0)