I add accelerators for play, pause, next track, previous track, setting
autopause, adding the current track to the favorites playlist, and
scrolling to the current track in the tracklist.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
I create can-activate-* properties to indicate if a specific accelerator
can be activated. At the same time, I introduce functions intended to be
called by accelerators to activate each of our widgets.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
All I needed the frame for was to add rounded corners to the
Gtk.Picture, but this had some problems with the Frame expanding beyond
the edges of the picture in some cases. I can get the same effect by
adding the "card" css class to the Picture so hopefully this will work
better.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This button is an ImageToggle configured to show a filled-in heart when
active and an outline when inactive. I added some icons from the Gnome
icon-library to represent the different states.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This displays the current track's album art with a fancy frame drawn
around it. Clicking the image opens a popover showing the artwork at
full size.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
And wire it up to the Player through the Application.
Implements: #45 (Create a new NowPlaying widget)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
And wire up signals between the Now Playing card and the player.
Implements: #45 (Create a new NowPlaying widget)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
Complete with signals so we'll know when the user wants us to do
something. I also clear the autopause property when the user manually
pauses the player. I use large versions of the play and pause icons from
the Gnome Icon Library for the buttons.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This is a PopoverButton that has an autopause.Entry set as the child. I
also override the displayed icon to show the current autopause count.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This entry is inspired by the Gtk.SpinButton, but lets us set
placeholder text to display the current autopause value to the user.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
And bind the Player tag properties to the Now Playing card.
Implements: #45 (Create a new NowPlaying widget)
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This label has properties for both Artist and Album Artist, and chooses
which to display based on the prefer-artist property and which tags have
been set.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This Label supports setting a prefix that is applied to the displayed
string and setting a font size in pixels.
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>