Skip to content

Instantly share code, notes, and snippets.

@tripleowl
Created November 3, 2013 18:38
Show Gist options
  • Save tripleowl/7293317 to your computer and use it in GitHub Desktop.
Save tripleowl/7293317 to your computer and use it in GitHub Desktop.
Foobar ELPlaylist settings Per second
$puts(seekbar,$muldiv(%playback_time_seconds%,$sub(%el_width%,%Track_Left_Margin%),%length_seconds%))
$puts(seekbar_remaining,$muldiv(%playback_time_remaining_seconds% ,$sub(%el_width%,%Track_Left_Margin%),%length_seconds%))
//------------------------seekbar---------------------------------------------------------------------------
$drawrect(%Track_Left_Margin%,1,$get(seekbar),$sub(%el_height%,1),%Seekbar_Color_Light%,)
$drawrect($add(%Track_Left_Margin%,$get(seekbar)),1,$sub(%el_width%,%Track_Left_Margin%,$get(seekbar)),$sub(%el_height%,1),%Seekbar_Color_Dark%,)
//------------------------text---------------------------------------------------------------------------
$if(%queue_index%,
$ifgreater(%queue_index%,9,
$font(,10,bold)$drawtextex([%queue_index%],$add(4,%Track_Left_Margin%),0,24,,%Track_Color_Playing%,right vcenter)
,
$font(,10,bold)$drawtextex([0%queue_index%],$add(4,%Track_Left_Margin%),0,24,,%Track_Color_Playing%,right vcenter)
)
,
$font(,10,bold)$drawtextex([[%discnumber%.]%tracknumber%],$add(4,%Track_Left_Margin%),0,24,,%Track_Color_Playing%,right vcenter)
)
$font(,10,bold)$drawtextex([%title%],$add(%Track_Left_Margin%,42),0,$sub(%el_width%,%Track_Left_Margin%,125),,%Track_Color_Playing%,vcenter end_ellipsis)
$font(,10,bold)$drawtextex($if($meta_test(album artist),[%artist%]),$add($add(52,%Track_Left_Margin%,$gettextwidth(%title%,,10,bold))),0,$sub(%el_width%,$gettextwidth(%title%),%Track_Left_Margin%,135),,%Track_Artist_Color_Playing%,vcenter end_ellipsis)
$font(,10,bold)$drawtextex(- %playback_time_remaining% | %length%,$sub(%el_width%,80),0,76,,%Track_Color_Playing%,right vcenter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment