move shuffle and repeat controls into main player controls (#862)

Shuffle moves to the far left of the transport buttons and repeat to the far right, flanking prev/play/next. Both use a new IconButtonSizeSmallest (10% smaller than IconButtonSizeSmaller) with 2dp spacing separating them from the adjacent transport buttons. Wiring updated in bottompanel.go accordingly.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Drew Weymouth
2026-02-20 18:53:02 -08:00
committed by GitHub
co-authored by Claude Sonnet 4.6
parent e31f546e09
commit b40c154f7e
4 changed files with 72 additions and 62 deletions
+6
View File
@@ -16,8 +16,10 @@ type IconButtonSize int
const (
IconButtonSizeNormal IconButtonSize = iota
IconButtonSizeSlightlyBigger
IconButtonSizeBigger
IconButtonSizeSmaller
IconButtonSizeSmallest
)
type IconButton struct {
@@ -141,8 +143,12 @@ func (i *IconButton) iconSize() fyne.Size {
switch i.IconSize {
case IconButtonSizeBigger:
return fyne.NewSquareSize(theme.IconInlineSize() * 2)
case IconButtonSizeSlightlyBigger:
return fyne.NewSquareSize(theme.IconInlineSize() * 1.37)
case IconButtonSizeSmaller:
return fyne.NewSquareSize(theme.IconInlineSize())
case IconButtonSizeSmallest:
return fyne.NewSquareSize(theme.IconInlineSize() * 0.9)
default:
return fyne.NewSquareSize(theme.IconInlineSize() * 1.3333)
}