taffybar: add nerd font icon to mpris widget
Wrap the mpris grid in a box with a nerd font music note icon (U+F075A) so it follows the same icon+label pattern as other widgets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -291,7 +291,15 @@ mprisWidget :: TaffyIO Gtk.Widget
|
||||
mprisWidget =
|
||||
mpris2NewWithConfig
|
||||
MPRIS2Config
|
||||
{ mprisWidgetWrapper = decorateWithClassAndBox "mpris"
|
||||
{ mprisWidgetWrapper = \grid -> do
|
||||
icon <- Gtk.labelNew (Just "\xF075A")
|
||||
_ <- widgetSetClassGI icon "icon"
|
||||
Gtk.widgetSetName icon "mpris-icon"
|
||||
box <- Gtk.boxNew Gtk.OrientationHorizontal 0
|
||||
Gtk.containerAdd box icon
|
||||
Gtk.containerAdd box grid
|
||||
Gtk.widgetShowAll box
|
||||
Gtk.toWidget box >>= decorateWithClassAndBox "mpris"
|
||||
, updatePlayerWidget =
|
||||
simplePlayerWidget
|
||||
defaultPlayerConfig
|
||||
|
||||
Reference in New Issue
Block a user