minor formatting
This commit is contained in:
+1
-1
@@ -13,5 +13,5 @@ func SecondsToTimeString(s float64) string {
|
||||
min := sec / 60
|
||||
sec -= min * 60
|
||||
|
||||
return fmt.Sprintf("%2d:%02d", min, sec)
|
||||
return fmt.Sprintf("%3d:%02d", min, sec)
|
||||
}
|
||||
|
||||
@@ -75,8 +75,8 @@ func NewPlayerControls() *PlayerControls {
|
||||
pc.ExtendBaseWidget(pc)
|
||||
|
||||
pc.slider = NewTrackPosSlider()
|
||||
pc.curTimeLabel = widget.NewLabel("0:00")
|
||||
pc.totalTimeLabel = widget.NewLabel("0:00")
|
||||
pc.curTimeLabel = widget.NewLabel(util.SecondsToTimeString(0))
|
||||
pc.totalTimeLabel = widget.NewLabel(util.SecondsToTimeString(0))
|
||||
|
||||
pc.slider.OnChanged = func(f float64) {
|
||||
time := f * pc.totalTime
|
||||
|
||||
Reference in New Issue
Block a user