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

[core] wrong color variable names after new UI update #1

Open
2 tasks done
Tetrax-10 opened this issue Sep 27, 2022 · 16 comments
Open
2 tasks done

[core] wrong color variable names after new UI update #1

Tetrax-10 opened this issue Sep 27, 2022 · 16 comments
Labels
🐛 bug Something isn't working

Comments

@Tetrax-10
Copy link

🔍 Have you checked Spicetify.app page for your issue?

  • I have checked the FAQ

🔍 Is there already an issue for your problem?

  • I have checked older issues, open and closed

ℹ Environment / Computer Info

- Spotify version: 1.1.94.872.g7a9200fe
- Spicetify version: 2.13.1

📝 Description

Wrong color variable names after new UI update

📸 Screenshots

Player

image

image

Sidebar

image

image

@Tetrax-10 Tetrax-10 added the 🐛 bug Something isn't working label Sep 27, 2022
@kyrie25
Copy link
Member

kyrie25 commented Sep 28, 2022

If you are able to, can you test some more and maybe provide an comprehensive list of which color variables are incorrectly applied? Would speed up the process by a lot.

@kyrie25
Copy link
Member

kyrie25 commented Sep 28, 2022

Currently Spotify supports both their legacy and new layout at the same time as shown in their xpui.css

image
image

Though it may be temporarily patched via Regexp selecting those specific styles with .nav-alt, or to forcefully apply the colors with !important, it seems as though once Spotify themselves decides to dump the legacy layout from their releases both these solutions won't be plausible anymore.

For --spice-sidebar, the colors are now shared with --spice-main as they share the same CSS variable:
image
As for the player, their color is now shared with the black background of the whole app (via setting background: none)

Both of these can't be simply solved by changing values in the xpui files, nor does looking for specific class names and change the ruleset as it would require classes to be mapped at all times, while Spotify client's HTML layout and CSS ruleset applied to them are subjected to change at any times.

Currently I have come up with 2 stable solutions:

  1. Maintain our own CSS snippet bundled into the CLI to somewhat preserve the colorings of previous themes.
  • This, in itself, is not really stable because of the aforementioned points, we would probably need to publish a lot more releases to match the stylings once it changes and the CSS map must always be patched right after a class name changes.
  • We could also shift this onto Marketplace's side, and have it maintained there, but not sure how stable it would be still. The caveat for this however, is that users have to be made aware that such snippet exists and install them, else legacy themes would still break their client.
  1. Change the current color.ini color key strings to adapt with the new UI.
  • Specifically, we would need to phase out --spice-sidebar and --spice-player in favor of a new color key for the client's background, as those key names are no longer accurate and does not serve the same purpose as before.
  • This would require all current theme developers to adapt with the new changes, but it would ensure better maintainability in the long run (at least as long as this layout is used), as patching colors would only depend in the color values like it does currently and we would not need to publish CLI releases as often.

Either way, we will need to phase out on some support for the legacy layout as the color values are different to avoid replacing colors of the wrong element as shown on this issue.
May I have your opinions on this? @afonsojramos

@Tetrax-10
Copy link
Author

If you ask me, I will go with 2nd, stable solution, we should always go with the flow of Spotify updates. So, it will be easy to maintain. Theme's devs should adopt to new updates. we should prob wait for their new UI final release as current CSS is supporting two diff UIs and color schemes. once a/b testing is over we will get their new color scheme and then we adopt that and release a patched CLI.

@Tetrax-10
Copy link
Author

If you are able to, can you test some more and maybe provide an comprehensive list of which color variables are incorrectly applied? Would speed up the process by a lot.

the whole thing has changed. As mentioned in the above comment we should wait for Spotify to stable release their UI

@kyrie25
Copy link
Member

kyrie25 commented Sep 28, 2022

If you ask me, I will go with 2nd, stable solution, we should always go with the flow of Spotify updates. So, it will be easy to maintain. Theme's devs should adopt to new updates. we should prob wait for their new UI final release as current CSS is supporting two diff UIs and color schemes. once a/b testing is over we will get their new color scheme and then we adopt that and release a patched CLI.

I do also prefer following the 2nd solution as it'd be more sensible to do so, but as this is a major breaking change, we need many different perspectives and opinions before going forward so as to make it the most beneficial for all current, new theme devs and the users.

@github-actions
Copy link

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

3 similar comments
@github-actions
Copy link

github-actions bot commented Nov 6, 2022

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

@github-actions
Copy link

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

@CursedSpiderBoi
Copy link

we still have this issue?

@spicetify spicetify deleted a comment from RoverBot-Dev Nov 8, 2023
Copy link

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

Copy link

github-actions bot commented Feb 1, 2024

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

@ok-coder1
Copy link

ok-coder1 commented Feb 21, 2024

What happened to GitHub Actions? It's marking stale after stale after stale after stale and so on...

But this issue is stale. It was opened in 2022 and it's 2024 now (2 years).

@ok-coder1
Copy link

ok-coder1 commented Feb 21, 2024

Anyway, is this issue fixed?

@rxri
Copy link
Member

rxri commented Feb 21, 2024

What happened to GitHub Actions? It's marking stale after stale after stale after stale and so on...

But this issue is stale. It was opened in 2022 and it's 2024 now (2 years).

Any activity related to this issue is marked as „not stale anymore”
And no, it’s not fixed

@rxri rxri changed the title Wrong color variable names after new UI update [core] wrong color variable names after new UI update Feb 28, 2024
Copy link

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

@rxri rxri transferred this issue from spicetify/cli May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants