MordenX
MordenX copied to clipboard
[Feature request] Add icon to toggle playlist display
It would be great if there was an icon to toggle playlist display when the skin detects that mpv-playlistmanager is loaded - next to the info/stats icon, for example.
You can try with my code
local osc_icons = {
playlist = "\239\134\180",
}
-- Playlist
lo = add_layout("playlist")
lo.geometry = {x = osc_geo.w - 50, y = refY - 15, an = 6, w = 15, h = 15}
lo.style = osc_styles.smallButtons
-- playlist buttons
ne = new_element("playlist", "button")
ne.content = osc_icons.playlist
ne.eventresponder["mbtn_left_up"] =
function () mp.commandv("script-binding", "playlistmanager/showplaylist") end
Change the value of osc_icons and lo.style = osc_styles. with you settings