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

Can't change Spot to dark theme #388

Closed
ghost opened this issue Nov 27, 2021 · 6 comments
Closed

Can't change Spot to dark theme #388

ghost opened this issue Nov 27, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Nov 27, 2021

Describe the bug
Hi! I'm loving Spot so far, but ran into an issue. I've installed it using the AUR package and the app opens in light theme.
I have tried to toggle prefers-dark-theme using the dconf editor, but it seems to have no effect as the app still launches in light theme.

To Reproduce
Steps to reproduce the behavior:

  1. Install spot-client from the AUR.
  2. Launch the app (not as sudo).
  3. Observe the app is in light theme instead of dark theme.

Expected behavior
The app should use the gorgeous dark theme displayed in the README.

Screenshots
image

General information:

  • Distribution: Arch Linux
  • Installation method: yay -S spot-client (from AUR)
  • Version: 0.2.2-1
  • Device used: Desktop
@ghost ghost added the bug Something isn't working label Nov 27, 2021
@iam-cult
Copy link

The flatpak version uses the dark theme by default for me.

@xou816
Copy link
Owner

xou816 commented Nov 27, 2021

Hi! Thanks for the report.

This...

Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.

...used to be a mere warning I think, but looks like now the old gtk setting does not work :(

It's been fixed in the development version. I might merge dev into master soon, if I can't I'll just cherry pick the relevant change into master.

If you don't mind building it yourself, you can try out the development branch or fix the issue (relevant lines) and rebuild! :)

@xou816
Copy link
Owner

xou816 commented Nov 27, 2021

The flatpak version uses an older libadwaita version than what arch ships I think so it might be fine indeed!

@PJ-Singh-001
Copy link

I do not think this is a flatpak-only issue.

I built and installed Spot using these instructions.

The gsettings key is set to use a dark theme:

gsettings get dev.alextren.Spot prefers-dark-theme
true

And this is reflected in the Spot Preferences dialog:

image

However, (as you can see from the screen clip of the Preferences dialog) Spot only uses the light theme.

This occurs on Ubuntu 22.04 in both Wayland and X11.

@xou816
Copy link
Owner

xou816 commented Apr 28, 2022

The code surrounding this has changed a bit since the original issue. There are probably more option that we have to expose besides light and dark, i think libadwaita lists 4 enum variants. Related to #142 (comment) as well

@xou816
Copy link
Owner

xou816 commented Feb 18, 2023

fixed recently #548

@xou816 xou816 closed this as completed Feb 18, 2023
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

3 participants