Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add icon to toggle playlist display #50

Open
TheLastZombie opened this issue Jan 30, 2023 · 2 comments
Open

[Feature request] Add icon to toggle playlist display #50

TheLastZombie opened this issue Jan 30, 2023 · 2 comments

Comments

@TheLastZombie
Copy link

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.

@BoscoFZ
Copy link

BoscoFZ commented Feb 11, 2023

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

@Keith94
Copy link

Keith94 commented Nov 5, 2024

You can use the new fork ModernZ with its showplaylist=yes option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants