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]: Ability to right click on song title to bring up the context menu for it. #67

Open
DawarTheDastardly opened this issue Apr 29, 2023 · 3 comments
Labels
enhancement New feature or request full screen Regarding fullScreen extension.

Comments

@DawarTheDastardly
Copy link

Choose the extension for feature request.

Full Screen Mode

📝 Provide a description of the new feature

I think it'd be great to have the ability to right click on the song title or the album title since otherwise it is a bit annoying to add songs to playlists and whatnot.

➕ Additional Information

Example:

image

@DawarTheDastardly DawarTheDastardly added the enhancement New feature or request label Apr 29, 2023
@daksh2k
Copy link
Owner

daksh2k commented May 2, 2023

Yeah, would love to add this, always open for contributions via pull requests, if you have the knowledge and time!

Btw how did you create this image, is this just a concept design, or did you do some workaround to add it?

@DawarTheDastardly
Copy link
Author

I just used a photo editor to paste the menu onto the the screenshot and put a white line under the text.

@daksh2k daksh2k added the full screen Regarding fullScreen extension. label May 20, 2023
@Delusoire
Copy link

To implement this, first you need this component:
image
You can access it in V3 using:

const TrackMenu = S.webpack.exportedFunctions.find(f => f.toString().includes("canSwitchVisuals") && f.toString().includes("isSmartRecommendation"))

Then you need to wrap your title's component in a

<ContextMenu menu={<TrackMenu {...trackMenuProps} />} >
    <YourComponentGoesHere />
</ContextMenu>

with trackMenuProps being:

const playerState = Platform.getPlayerAPI().getState()
const trackMenuProps = {
    context: playerState.context,
    item: playerState.item
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request full screen Regarding fullScreen extension.
Projects
None yet
Development

No branches or pull requests

3 participants