brummer10 / guitarix

guitarix virtual versatile amplification for Jack/Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Close X button in tittlebar don't match with gnome theme.

arumihsnek opened this issue · comments

Why the X to close the swindow is not the same of other gtk aplications?
Captura de pantalla de 2021-12-14 13-29-04

Thanks for this amazing plugin!

That depend on your desktop manager, guitarix is GTK3 based, when you sue a QT based desktop manager you may need a gtk3 theme like Breeze or Adwaita.
https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
may help

Strange, I have an other theme, but i tried with adwaita too. I'm in gnome wayland, and guitarrix es the only program that show the X like that. Even the qt programs look uniform.

I've no experience with wayland, I've just gnome with X-server, there the guitarix window decoration is the same as all other apps.
So you may need to find out how to set the window decoration for gtk3 apps under wayland.

it's a theming issue - on Guitarix side. Nothing to do with the graphics subsystem.

How to you come to that conclusion? guitarix does nothing in it's theme for window decoration, and, with other desktop managers using the X-server there is not such a issue.
Window decoration is added by the desktop-manager.

If you use Mutter/gnome-shell as a compositor (GNOME default) and Gtk3, the window decorations are influenced by the themeing from inside the app.

As I said, there is nothing inside the guitarix theme files which will influence the window decoration. And, there is no issue under gnome with the X-server.
If wayland require anything from the app theme file for window decoration, then it should have a mechanism to use a fallback.

I checked again and was mistaken, it's only when running using Wayland (the Gdk backend) and how CSD are handled in that case.

Another thing I see here is that when the Guitarix window is not in the front, the title bar is dark colour (using the default Guitarix skin)

This is not a workaround suggestion

If you use the gtk inspector, you can change the visual style of that button, using the following CSS rule:

button.close.titlebutton, button.close.titlebutton > image {
}

I'll see if I can provide a patch to the skin CSS for Guitarix.

I looked a bit deeper into that, but don't find a other solution (doable from inside the CSS file) then hiding the titelbar complete.
It seems that this one: https://github.com/PCMan/gtk3-nocsd
is the way to go to solve (work around) that issue more general.

A other way is to force Xwayland by start guitarix like this
env WAYLAND_DISPLAY= guitarix