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

Use gnome theme #52

Open
smalltimer opened this issue Apr 26, 2021 · 7 comments
Open

Use gnome theme #52

smalltimer opened this issue Apr 26, 2021 · 7 comments

Comments

@smalltimer
Copy link

Hi,

First up, this is fantastic software. Thank you for the time and effort that has been invested in this project!

I was wondering if it is at all possible to make the top bar follow the gnome/gtk theme. Right now, the buttons on the top-left do not follow the system theme, and full-screening has no effect. For reference, I am attaching snapshots in floating and fullscreen mode for tuner and audacious (a software which follows the system theme).

  • Audacious: floating
    audacious-floating

  • Audacious: fullscreen
    audacious-fullscreen

  • Tuner: floating
    tuner-floating

  • Tuner: fullscreen
    tuner-fullscreen

Please feel free to remove this message if this is not the right forum for it. If this is the case, I'd like to know the right place for this discussion please.

Cheers!

@BzfpWg9g
Copy link

Workaround: https://github.com/PCMan/gtk3-nocsd. Installing procedure depends on your OS

@smalltimer
Copy link
Author

Thanks for the response @BzfpWg9g - had no idea gtk-nocsd existed! I'm on Debian 10 and I installed it right from the repo. But unfortunately can't figure out how to get the nocsd to work with flatpak. Any tips? Couldn't find too many answers by googling.

@BzfpWg9g
Copy link

Sorry, @smalltimer, no experience with flatpk but there should be deb file in normal repository. After installing try adding this to ~/.profile

export GTK_CSD=0
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0

Maybe you need to reboot/logout afterwards. I know I had some difficulties getting this to work but can't remember the steps.

@smalltimer
Copy link
Author

Hi again, do you mean this repo for tuner has a .deb too? I can't seem to be able to find it.

@BzfpWg9g
Copy link

Ah I understand. You installed Tuner via flatpak and gtk3-nocsd via deb. No, unfortunately there is no deb for Tuner (as far as I know). Did you try adding the 2 lines in ~/.profile? Did it work?

If not maybe flatpak, snap, etc. behave differently than regular installations. I built Tuner from source so I can't tell. If you want to check if gtk3-nocsd is working you could try installing some regular application which uses client side decorations, e.g.. gnome-mahjongg.

@smalltimer
Copy link
Author

With Debian you can install gtk3-nocsd systemwide so there's no need to include it in .profile. I tested it with gnome to-do and it works.

Regarding tuner: I don't understand why CSD cannot be left alone In any case, the software works. It's just ugly on most operating systems! Leaving this open in case someone comes up with a trick to make gtk3-nocsd work with flatpak.

@BzfpWg9g
Copy link

I read some pages about flatpak now and it seems the applications are isolated from the rest of the system. Stumbled across this site: https://githubmemory.com/repo/kujeger/flatpak-gog/issues

flatpak run com.gog.PrisonArchitect
ERROR: ld.so: object '/home//.var/app/com.spotify.Client/libgtk3-nocsd.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Running Prison Architect
ERROR: ld.so: object '/home//.var/app/com.spotify.Client/libgtk3-nocsd.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

You could try to find out the folder for Tuner, maybe something like /home//.var/app/com.github.louis77.tuner/ and putting libgtk3-nocsd.so there (if the folder is persistent).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants