Skip to content

Instantly share code, notes, and snippets.

@tripleowl
Last active December 27, 2015 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripleowl/7293291 to your computer and use it in GitHub Desktop.
Save tripleowl/7293291 to your computer and use it in GitHub Desktop.
Foobar ELPlaylist settings Track list tab
$puts(text_color,$if(%el_isplaying%,%Track_Color_Playing%,$if(%queue_index%,%Queue_Color%,%Track_Color%)))
$puts(album_art_top,$sub($mul($add($div(%Album_Art_Size%,%el_row_height%),1),%el_row_height%),%Album_Art_Size%))
$if(%el_isplaying%,
//do nothing
,
//------------------------selection---------------------------------------------------------------------------
$if(%el_selected%,
$drawrect($add(%Track_Left_Margin%),1,$sub(%el_width%,%Track_Left_Margin%),$sub(%el_height%,1),%Selection_Color%,)
,
$if(%tracknumber%,
$drawrect($add(%Track_Left_Margin%),2,32,$sub(%el_height%,3),%Tracknumber_Rect_Color%,,)
,
//do nothing
)
)
//------------------------text---------------------------------------------------------------------------
$if(%queue_index%,
$ifgreater(%queue_index%,9,
$font(,%Track_Font%,)$drawtextex([%queue_index%],$add(4,%Track_Left_Margin%),0,24,,$get(text_color),right vcenter)
,
$font(,%Track_Font%,)$drawtextex([0%queue_index%],$add(4,%Track_Left_Margin%),0,24,,$get(text_color),right vcenter)
)
,
$font(,%Track_Font%,)$drawtextex([[%discnumber%.]%tracknumber%],$add(4,%Track_Left_Margin%),0,24,,$get(text_color),right vcenter)
)
$font(,%Track_Font%,)$drawtextex([%title%],$add(%Track_Left_Margin%,42),0,$sub(%el_width%,%Track_Left_Margin%,125),,$get(text_color),vcenter end_ellipsis)
$font(,%Track_Font%,)$drawtextex($if($meta_test(album artist),[%artist%]),$add($add(52,%Track_Left_Margin%,$gettextwidth(%title%,,%Track_Font%,))),0,$sub(%el_width%,$gettextwidth(%title%),%Track_Left_Margin%,135),,%Track_Artist_Color%,vcenter end_ellipsis)
$font(,%Track_Font%,)$drawtextex(%length%,$sub(%el_width%,42),0,38,,$get(text_color),right vcenter)
)
//------------------------album art---------------------------------------------------------------------------
$setworldtransform(1)
$enabledraw(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment