feat: update terminology from "Work" to "Focus"
- change "Work" to "Focus" in all occurences - update GoTomato version to v0.4.0
This commit is contained in:
parent
646f460e6a
commit
a121f01371
5 changed files with 10 additions and 10 deletions
|
@ -43,8 +43,8 @@ func terminalOutput(pomodoro GoTomato.ServerMessage) string {
|
|||
)
|
||||
|
||||
// header
|
||||
output += colour.Sprintf("^D^4Work: %d ◊ Break: %d ◊ Longbreak: %d^R\n\n",
|
||||
pomodoro.Settings.Work/60,
|
||||
output += colour.Sprintf("^D^4Focus: %d ◊ Break: %d ◊ Longbreak: %d^R\n\n",
|
||||
pomodoro.Settings.Focus/60,
|
||||
pomodoro.Settings.ShortBreak/60,
|
||||
pomodoro.Settings.LongBreak/60,
|
||||
)
|
||||
|
@ -80,8 +80,8 @@ func calc_percentage(message GoTomato.ServerMessage) float64 {
|
|||
var duration float64
|
||||
|
||||
switch message.Mode {
|
||||
case "Work":
|
||||
duration = float64(message.Settings.Work)
|
||||
case "Focus":
|
||||
duration = float64(message.Settings.Focus)
|
||||
case "ShortBreak":
|
||||
duration = float64(message.Settings.ShortBreak)
|
||||
case "LongBreak", "End":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue