Closed flipflop97 closed 1 year ago
I've tried, but I'm not entirely sure if the buttons are hardcoded or not. There's a .root
css class in the headerbar, but with it I can only change the buttons borders a little bit, the rest just doesn't want to comply.
I think the classes are .terminal-window.root
and .terminal-window.remote
Works in gtk inspector, but not when applied to the theme. I'm clueless as to why.
Yeah, same behaviour here.
As an alternative solution @flipflop97, add this to ~/.config/gtk-3.0/gtk.css
:
/* gnome-console, kgx */
.terminal-window.root headerbar button:not(.titlebutton),
.terminal-window.remote headerbar button:not(.titlebutton) {
min-width: 16px;
background: transparent;
border: 1px solid transparent;
}
.terminal-window.root headerbar button:not(.titlebutton):hover,
.terminal-window.remote headerbar button:not(.titlebutton):hover,
.terminal-window.root headerbar button:not(.titlebutton):checked,
.terminal-window.remote headerbar button:not(.titlebutton):checked,
.terminal-window.root headerbar button.titlebutton,
.terminal-window.remote headerbar button.titlebutton {
background: alpha(white, 0.12);
}
.terminal-window.root headerbar button:not(.titlebutton):active,
.terminal-window.remote headerbar button:not(.titlebutton):active,
.terminal-window.root headerbar button:not(.titlebutton):checked:hover,
.terminal-window.remote headerbar button:not(.titlebutton):checked:hover,
.terminal-window.root headerbar button.titlebutton:hover,
.terminal-window.remote headerbar button.titlebutton:hover {
background: alpha(white, 0.18);
}
.terminal-window.root headerbar button.titlebutton:active,
.terminal-window.remote headerbar button.titlebutton:active {
background: alpha(white, 0.3);
}
I see that Console is now ported to GTK4 and libadwaita (https://thisweek.gnome.org/posts/2022/07/twig-54/), so just wait until the distributions packages that version and we don't need it anymore except those who uses a distribution that still ships with GTK3 Console
Gnome Console has alternate headerbar styles when running a remote connection or when running a command as root. These are not styled with the Adwaita theme. Would it be possible to theme these?