tuner icon indicating copy to clipboard operation
tuner copied to clipboard

Use gnome theme

Open smalltimer opened this issue 3 years ago • 7 comments

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!

smalltimer avatar Apr 26 '21 08:04 smalltimer

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

BzfpWg9g avatar Apr 27 '21 09:04 BzfpWg9g

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.

smalltimer avatar Apr 27 '21 11:04 smalltimer

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.

BzfpWg9g avatar Apr 27 '21 19:04 BzfpWg9g

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

smalltimer avatar Apr 27 '21 21:04 smalltimer

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.

BzfpWg9g avatar Apr 28 '21 06:04 BzfpWg9g

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.

smalltimer avatar Apr 28 '21 07:04 smalltimer

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).

BzfpWg9g avatar Apr 28 '21 09:04 BzfpWg9g