Skip to content

Commit

Permalink
make playing icon in compact tracklist rows a little bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Jul 28, 2024
1 parent 14e93c1 commit c3d3cf9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/widgets/tracklist.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package widgets

import (
"fyne.io/fyne/v2/lang"
"log"
"slices"
"sort"
"strings"
"sync"

"fyne.io/fyne/v2/lang"

"github.com/dweymouth/supersonic/backend"
"github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/sharedutil"
Expand Down Expand Up @@ -120,7 +121,10 @@ func NewTracklist(tracks []*mediaprovider.Track, im *backend.ImageManager, useCo
if useCompactRows {
t.columns = CompactTracklistRowColumns
colWidths = CompactTracklistRowColumnWidths
playingIcon = container.NewCenter(container.NewHBox(util.NewHSpace(2), widget.NewIcon(playIcon)))
playIconImg := canvas.NewImageFromResource(playIcon)
playIconImg.FillMode = canvas.ImageFillContain
playIconImg.SetMinSize(fyne.NewSquareSize(theme.IconInlineSize() * 1.2))
playingIcon = container.NewCenter(container.NewHBox(util.NewHSpace(4), playIconImg))
} else {
playIconImg := canvas.NewImageFromResource(playIcon)
playIconImg.FillMode = canvas.ImageFillContain
Expand Down

0 comments on commit c3d3cf9

Please sign in to comment.