Score:0

Ubuntu 23.04 fixing thick window title bar on gtk.css won't work

am flag

I used xorg than Wayland on Ubuntu 23.04

Does anyone know why editing the .config/gtk3.0/gtk.css does not work and will not affect nautilus, VSCode and other app title bar/headerbar thickness on 23.04? Ubuntu 23.04 application title bar was thick af. The only affected apps are gnome-terminal and gnome-tweaks which correctly shrink in size, other apps don't shrink.

This is my complete code for shrinking the title bar/headerbar thickness, this works on 22.04, but on 23.04 it only applies to some application. By the way I also added CSS code to customize the title bar menu button icons, but I will not include it on the code below.

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;
}

This is the result on 23.04 after saving and reloading.

Result after saving and reloading (alt+f2 & r)

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 these apps.

While on Ubuntu 22.04 LTS, the result will be this.

Result on 22.04 LTS

As you can see on 22.04 LTS the styling is applied correctly accross all apps.

Score:0
cn flag

It does not anymore work for these applications that moved to GTK4. This hack only works for applications using the GTK3 toolkit.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.