I added this CSS code to .config/gtk-3.0/gtk.css to shrink and customize the titlebar/headerbar of all the application.
headerbar {
padding: 0 6px;
min-height: 46px;
}
headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
margin-top: 0px;
margin-bottom: 0px;
}
.default-decoration {
min-height: 0;
padding: 0px;
}
.default-decoration .titlebutton {
min-height: 2px;
min-width: 3px;
}
window.ssd headerbar.titlebar {
padding-top: 1px;
padding-bottom: 3px;
min-height: 0;
}
window.ssd headerbar.titlebar button.titlebutton {
padding-top: 2px;
padding-left:2px;
padding-bottom:2px;
min-height: 0;
}
but this only works on 22.04 LTS
As you can see on 22.04 LTS the styling is applied correctly accross all apps.
But on 23.04, it’s a different story
As you can see it does not affect nautilus, Chrome, and VSCode. I also tried changing shell themes & icons, but it still doesn’t affect the thickness and icon of the title bar/headerbar of nautilus and other apps.