Skip to content

Commit

Permalink
fix: remove clickable timer (not working anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsquest committed Feb 2, 2023
1 parent afe70a7 commit 61555a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ func Display(app fyne.App) {
func MakeClassicLayout(myPomodoro *pomodoro.Pomodoro) fyne.CanvasObject {
timer := canvas.NewText(formatDuration(myPomodoro.RemainingTime), nil)
timer.TextSize = 42
timerButton := widget.NewButton("", nil)
timerPanel := container.NewHBox(layout.NewSpacer(), container.NewMax(timer, timerButton), layout.NewSpacer())
timerPanel := container.NewHBox(layout.NewSpacer(), container.NewMax(timer), layout.NewSpacer())

playButton := widget.NewButtonWithIcon("", theme.MediaPlayIcon(), nil)
stopButton := widget.NewButtonWithIcon("", theme.MediaStopIcon(), nil)
Expand Down Expand Up @@ -97,7 +96,6 @@ func MakeClassicLayout(myPomodoro *pomodoro.Pomodoro) fyne.CanvasObject {
}

playButton.OnTapped = onPlay
timerButton.OnTapped = onPlay
stopButton.OnTapped = onStop
nextButton.OnTapped = onNext
settingsButton.OnTapped = onSettings
Expand Down

0 comments on commit 61555a7

Please sign in to comment.