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

Automatic system theme application no longer working #38

Closed
csforbes opened this issue Oct 6, 2022 · 7 comments
Closed

Automatic system theme application no longer working #38

csforbes opened this issue Oct 6, 2022 · 7 comments
Labels
bug Something isn't working Stale

Comments

@csforbes
Copy link

csforbes commented Oct 6, 2022

Describe the bug
When Spotify desktop is opened with this theme applied, it loads with the Dark theme no matter what the system theme is or what theme was previously set in-app. It does notify "dark theme applied" on first load. When, before, the theme would automatically change in reaction to the system theme, it no longer does.

This started happening after 3 major updates:

  1. Spotify updater forced me to redownload the whole app from browser.
  2. I ran spicetify upgrade to v2.14
  3. I re-ran the MacOS install sh script from the spicetify-dynamic-theme readme.

This is by far my favorite Spicetify theme because of the subtle styling and a good light theme 😱, so thank you for the work you've done on this! Sorry if this is an OS, Spicetify, or personal setup issue I'm misinterpreting.

To Reproduce
Steps to reproduce the behavior:

  1. With Spotify quit, Switch MacOS to system light theme.
  2. Open Spotify. (Would show Dark theme still)
  3. Switch Spotify theme manually to light.
  4. Switch MacOS to dark theme. (Spotify would be light still)

Screenshots
Spicetify-dynamic-theme-auto-system-bug

Desktop Setup

  • Operating System: MacOS 12.6
  • Spotify: Spotify for macOS (Intel) 1.1.95.893.g6cf4d40c
  • Spicetify: 2.14.0
  • Theme: v4.0

Logs

cosmos-connector:  fetchAdForSlot endpoint=%o sp://ads/v1/ads/hpto
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/vendor~xpui.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/xpui.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/8696.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/home-hpto.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/4453.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/7269.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/home-v2.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/xpui-desktop-modals.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/5392.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not load content for https://xpui.app.spotify.com/8419.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
@csforbes csforbes added the bug Something isn't working label Oct 6, 2022
@JulienMaille
Copy link
Owner

JulienMaille commented Oct 6, 2022

This feature stopped working months ago due to Spotify. A workaround is available under Windows. It relies on patching the .exe file with https://github.com/JulienMaille/spicetify-dynamic-theme/blob/main/patch-dark-mode.ps1
I have no idea if the same can be done under MacOs, can you try?

@csforbes
Copy link
Author

csforbes commented Oct 13, 2022 via email

@swrobel
Copy link

swrobel commented Nov 16, 2022

I have no idea if the same can be done under MacOs, can you try?

I just tried removing force-dark-mode from the macOS binary using a hex editor, and the app won't launch anymore. I notice that you are replacing it with some character ([byte]65) - can you explain your strategy a bit and maybe I can get it working on a Mac?

@legolasdimir
Copy link

a [point with the patch. If you get an update on windows you have to run the patch again.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jul 21, 2023
@JulienMaille
Copy link
Owner

FIXed thanks to Spotify

@gdude2002
Copy link

gdude2002 commented Aug 9, 2023

This does not appear to be working - Spotify opens with the dark theme set for me, and I always have to toggle it back to light mode manually.

  • Operating System: Windows 11
  • Spotify: 1.2.17.834.g26ee1129
  • Spicetify: 2.22.1
  • Theme: Both 4.6 from the marketplace and main branch manual install (35408c5)

EDIT: The patch that Julien provided here is working for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

5 participants