MordenX icon indicating copy to clipboard operation
MordenX copied to clipboard

[Feature request] Add icon to toggle playlist display

Open TheLastZombie opened this issue 2 years ago • 2 comments

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.

TheLastZombie avatar Jan 30 '23 18:01 TheLastZombie

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

BoscoFZ avatar Feb 11 '23 19:02 BoscoFZ