-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
62 lines (50 loc) · 1.39 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package main
import (
"image/color"
"time"
"fyne.io/fyne/v2"
)
const (
// Window
WindowTitle = "Pomodoro"
WindowWidth = 300
WindowHeight = 200
)
var (
// Timer
TimerOptions = []time.Duration{
25 * time.Minute,
20 * time.Minute,
15 * time.Minute,
}
TimerDefaultTime = TimerOptions[0]
// Custom settings
DefaultSettings = Settings{
soundEnabled: true,
autoStartEnabled: false,
timer: TimerDefaultTime,
}
// Theme
TimerTextSize = float32(100)
TimerStartText = "Start!"
TimerTextColor = color.RGBA{R: 255, G: 255, B: 255, A: 255}
TimerTextColorPaused = color.RGBA{R: 80, G: 80, B: 80, A: 75}
// Pause
PauseTextColor = color.RGBA{R: 255, G: 255, B: 255, A: 255}
// Background
BackgroundColor = color.RGBA{R: 186, G: 73, B: 73, A: 150}
BackgroundColorBreak = color.RGBA{R: 102, G: 153, B: 255, A: 150}
BackgroundAnimationTime = 450 * time.Millisecond
OverlayBackgroundColor = color.RGBA{R: 186, G: 73, B: 73, A: 237}
// Breaks
BreakDisabledTextColor = color.RGBA{R: 80, G: 80, B: 80, A: 75}
BreakDisabledRectColor = color.RGBA{R: 80, G: 80, B: 80, A: 75}
BreakEnabledTextColor = color.RGBA{R: 255, G: 255, B: 255, A: 255}
BreakEnabledRectColor = color.RGBA{R: 255, G: 255, B: 255, A: 255}
BreakRectSize = fyne.NewSize(3, 3)
DefaultBreaks = [...]time.Duration{
5 * time.Minute,
5 * time.Minute,
15 * time.Minute,
}
)