EDIT: partially solved: check EDIT2 on the bottom of this message
Hi, On Xfce I’d want to get rid of rounded corners around the applications windows (due CSD), so in ~/.config/gtk-3.0/gtk.css
I added:
headerbar {
border-radius: 0 0 0 0;
}
headerbar .title {
border-radius: 0 0 0 0;
}
Which, in facts, remove rounded corners, but only in “pure” GTK applications, like gedit, gnome-calculator, firefox (after unckeck Title Bar option), pamac-gtk.
All others Xfce applications, still have the rounded corners (Xfce4-Terminal, taskmanager, thunar).
What else should I add to ~/.config/gtk-3.0/gtk.css
for get rid of rounded corners everywhere?
I also tried to set xfconf-query -c xsettings -p /Gtk/DialogsUseHeader -s false but didn’t helped.
I’m using Adwaita-dark theme on Xfce 4.16.
EDIT:
I added the following section to gtk.css and has removed rounded corners also from the context menu on the desktop, but not on others Xfce applications:
.csd .titlebar {
border-radius: 0;
}
.window-frame {
border-radius: 0;
}
decoration, window, window.background, window.titlebar, * {
border-radius: 0px;
}
.titlebar,
.titlebar .background, * {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
}
.window-frame {
border-radius: 0 0 0 0;
}
.background.csd {
border-radius: 0 0 0px 0px;
}
.background.maximized, .background.solid-csd {
border-radius: 0;
}
.window-frame, .window-frame:backdrop {
box-shadow: 0 0 0 black;
border-style: none;
margin: 0;
border-radius: 0;
}
.titlebar {
border-radius: 0;
}
EDIT2
After experimenting, I found out an odd thing: I installed gtk3-nocsd and I exported export GTK_CSD=1
instead of the suggested export GTK_CSD=0
(so in some way for forcing csd instead of disable them).
And now, all Xfce applications are honoring gtk.css: no longer rounded corners, except on Qt applications: these are using adwaita-qt, but these Qt applications are ignoring at all gtk.css; I suspect that I have to create a stylesheet in Qt5 Configuration Tool (qt5ct) but I have no clue.
Some hints?