spicetify / cli

Command-line tool to customize Spotify client. Supports Windows, MacOS, and Linux.
https://spicetify.app
GNU Lesser General Public License v2.1
18.63k stars 732 forks source link

Re-implementation of Apps system on 2.x #563

Closed itsmeow closed 3 years ago

itsmeow commented 3 years ago

I see you've cut out the Apps system for the new XPUI, I was wondering if it's still possible in the new UI or if Spotify also removed the functionality? Will an alternative to https://github.com/khanhas/genius-spicetify/ be possible if so?

Maybe it could be rewritten as an extension if so? Awesome work on getting the project running on the new UI so quickly.

khanhas commented 3 years ago

I got some work done on custom apps injection. But apps need to be built from the ground up because we can't use Spotify assets anymore. So i don't know. It's impossible to port anything anymore. Spicetify APIs are still available in app environment tho. And app has to be written with React JS components and returns a React object.

const react = Spicetify.React();
const span = react.createElement(
    "span", 
    { style: { 
        color: color,
        border: "3px",
    } },
    "inside app"
);

function render() { 
    return react.createElement("div", {}, span);
}

image

itsmeow commented 3 years ago

New apps look good. Using React is great.