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:
2026-02-07 23:50:22 -08:00
committed by Kat Huang
parent 5eee144236
commit 1db1da6378

View File

@@ -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