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

[Bug] Time Label not themeable #500

Open
deadbody13 opened this issue Jan 4, 2025 · 7 comments
Open

[Bug] Time Label not themeable #500

deadbody13 opened this issue Jan 4, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@deadbody13
Copy link

Describe the bug
Time label isn't themeable. I tried finding this in GTK Inspector and can't for the life of me figure out how to style it. I've tried copying the template theme and other people's themes and it doesn't seem to respond to any of it.

To Reproduce
Make any change to the .time class.

Expected behavior
Label should respond to changes in theme.

Screenshots
bug

Desktop (please complete the following information):

  • OS: Fedora 41
@deadbody13 deadbody13 added the bug Something isn't working label Jan 4, 2025
@ErikReider
Copy link
Owner

ErikReider commented Jan 4, 2025

Might be that your global GTK theme is overriding the set values?

@ErikReider
Copy link
Owner

Ok, figured it out. Seems to be a GTK 3 bug... Try pressing the pause button in the inspector twice... Sighs

@phisch
Copy link

phisch commented Jan 4, 2025

I debugged this with @deadbody13 together (yesterday), and neither setting styles for .time in the theme worked, nor in the inspector, even after disabling and enabling the inspector overwrites.

The overwrite panel by the way is a hard overwrite. So as far as I know anything you style there should not be able to be overwritten by a base theme. It's kind of like !important in CSS.

@ErikReider
Copy link
Owner

Hmmm. It seems like the preinstalled css theme is interfering with any custom styling within the debugger. Setting the .time color within the users custom CSS file works as expected so my guess would be that your cssPriority config option isn't set to "user"?

@deadbody13
Copy link
Author

Just checked the config.json and it was set to application. Changed it to user and relaunched swaync. It's still not responding to any changes. Also tried editing the files in /etc/xdg/swaync just to see if that did anything and it doesn't appear to have any effect.

@ErikReider ErikReider reopened this Jan 4, 2025
@ErikReider
Copy link
Owner

That's strange... On my end, editing the system CSS file has an effect. What GTK theme are you using?

@deadbody13
Copy link
Author

Breeze

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