Skip to content

Instantly share code, notes, and snippets.

@tripleowl
Created November 3, 2013 18:37
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/7293308 to your computer and use it in GitHub Desktop.
Save tripleowl/7293308 to your computer and use it in GitHub Desktop.
Foobar ELPlaylist settings Group header tab
$puts(text_color,$if(%el_isplaying%,%Group_Color_Playing%,%Group_Color%))
$puts(album_art_top,$sub($mul($add($div(%Album_Art_Size%,%el_row_height%)),%el_row_height%),%Album_Art_Size%))
//------------------------selection---------------------------------------------------------------------------
$if(%el_is_collapsed%,
$if(%el_selected%,
$drawrect(%Group_Left_Margin%,$sub(%el_height%,25),%el_width%,1,$get(text_color),)
,
$drawrect(%Group_Left_Margin%,$sub(%el_height%,25),%el_width%,1,%Group_Separator_Color%,)
)
,
$if(%el_selected%,
$drawrect(%Group_Left_Margin%,$sub(%el_height%,1),%el_width%,1,$get(text_color),)
,
$drawrect(%Group_Left_Margin%,$sub(%el_height%,1),%el_width%,1,%Group_Separator_Color%,)
)
)
//------------------------text---------------------------------------------------------------------------
$if(%el_is_collapsed%,
$font(,%Album_Font%,)$drawtextex([%album%],$add(%Group_Left_Margin%),$sub(%el_height%,42,$gettextheight(,%Album_Font%,),$gettextheight(,%Artist_Font%,),$gettextheight(,%Genre_Font%,)),$sub(%el_width%,%Group_Left_Margin%,44,$gettextwidth(%codec% ❚ %el_sum_length%,,)),,$get(text_color),end_ellipsis)
$font(,%Artist_Font%,)$drawtextex([$if(%album artist%,%album artist%,%artist%)],$add(%Group_Left_Margin%),$sub(%el_height%,39,$gettextheight(,%Artist_Font%,),$gettextheight(,%Genre_Font%,)),$sub(%el_width%,%Group_Left_Margin%,44,$gettextwidth(%codec% ❚ %el_sum_length%,,)),,$get(text_color),end_ellipsis)
$font(,%Genre_Font%,)$drawtextex([%genre% ❚ ]%codec% ❚ %el_sum_length% ❚ %el_item_count% tracks,$add(%Group_Left_Margin%),$sub(%el_height%,34,$gettextheight(,%Genre_Font%,)),$sub(%el_width%,%Group_Left_Margin%,44,$gettextwidth(%codec% ❚ %el_sum_length%,,)),,%Group_Color2%,end_ellipsis)
$font(,%Date_Font%,bold italic)$drawtextex(%date%,$sub(%el_width%,$gettextwidth(%date%,,),4),18,$gettextwidth(%date%,,),,$get(text_color),)
,
$font(,%Album_Font%,)$drawtextex([%album%],$add(%Group_Left_Margin%),$sub(%el_height%,18,$gettextheight(,%Album_Font%,),$gettextheight(,%Artist_Font%,),$gettextheight(,%Genre_Font%,)),$sub(%el_width%,%Group_Left_Margin%,44,$gettextwidth(%codec% ❚ %el_sum_length%,,)),,$get(text_color),end_ellipsis)
$font(,%Artist_Font%,)$drawtextex([$if(%album artist%,%album artist%,%artist%)],$add(%Group_Left_Margin%),$sub(%el_height%,15,$gettextheight(,%Artist_Font%,),$gettextheight(,%Genre_Font%,)),$sub(%el_width%,%Group_Left_Margin%,44,$gettextwidth(%codec% ❚ %el_sum_length%,,)),,$get(text_color),end_ellipsis)
$font(,%Genre_Font%,)$drawtextex([%genre% ❚ ]%codec% ❚ %el_sum_length%,$add(%Group_Left_Margin%),$sub(%el_height%,10,$gettextheight(,%Genre_Font%,)),$sub(%el_width%,%Group_Left_Margin%,44,$gettextwidth(%codec% ❚ %el_sum_length%,,)),,%Group_Color2%,end_ellipsis)
$font(,%Date_Font%,bold italic)$drawtextex(%date%,$sub(%el_width%,$gettextwidth(%date%,,),4),18,$gettextwidth(%date%,,),,$get(text_color),)
)
//------------------------album art---------------------------------------------------------------------------
$if(%el_isplaying%,
$imageabs(0,$get(album_art_top),%Album_Art_Size%,%Album_Art_Size%,%Skin_Path%\album_art_playing.png)
,
$drawrect(0,$get(album_art_top),%Album_Art_Size%,%Album_Art_Size%,255-255-255-32,)
$if($albumart(0,$get(album_art_top),%Album_Art_Size%,%Album_Art_Size%,front,),
//do nothing
,
$imageabs(0,$get(album_art_top),%Album_Art_Size%,%Album_Art_Size%,%Skin_Path%\album_art_missing.png)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment