Change titlebar height in Gnome 47

Hi all,

I used to change the titlebar height in the past releases by adding something like

headerbar {
    min-height: 20px;
    margin: 0px;
    padding: 0px;
}
.default-decoration {
    min-height: 0px;
    padding: 1px;
}

to my ~/.config/gtk-4.0/gtk.css.
Now with Gnome 47 this no longer changes the titlebar height. Altering the font color etc. works fine, but I cannot reduce the height.

Could anyone give me a hint how this could be done in F41, please?

What are you looking to achieve? Do you want to make the header higher or lower?

[edit] Sorry i misread, you want to reduce the height.

I don’t know how much smaller you want to make it, but this will shave some height off the titlebar:

headerbar {
	min-height:20px;
}

windowhandle box {
	padding-top:0px;
	padding-bottom:0px;
}

Original:

Reduced:

Thanks!

Yes, that helped a bit reducing the height, but still the titlebar was bigger than it should be.

I got good results with this:

windowhandle box {
    padding-top: 0;
    padding-bottom: 0;
}

.titlebar {
    min-height: 0px;
    padding: 0;
}