lengthen Now Playing gradient animation + standardize anim durations

This commit is contained in:
Drew Weymouth
2025-04-17 08:49:10 -07:00
parent f3e1aa94f9
commit 8619857425
6 changed files with 17 additions and 12 deletions
+6
View File
@@ -10,11 +10,13 @@ import (
"path/filepath"
"slices"
"strings"
"time"
"github.com/dweymouth/supersonic/backend"
"github.com/dweymouth/supersonic/res"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
"fyne.io/fyne/v2/theme"
)
@@ -30,6 +32,10 @@ const (
SizeNameSubSubHeadingText fyne.ThemeSizeName = "subSubHeadingText" // in between Text and SubHeadingText
SizeNameSubText fyne.ThemeSizeName = "subText" // in between Text and Caption
SizeNameSuffixText fyne.ThemeSizeName = "suffixText" // a tiny bit smaller than subText
AnimationDurationShort = canvas.DurationShort
AnimationDurationMedium = 225 * time.Millisecond
AnimationDurationLong = canvas.DurationStandard
)
var (