Approach to make libadwaita apps look native on Plasma

I’ve tried the following gtk4 css:

@import 'colors.css';

window.csd {
    border-radius: 6px;
}

windowcontrols button image:not(:hover) {
    background-color: transparent;
}

windowcontrols button.minimize {
    padding: 0px;
}

windowcontrols button.maximize {
    padding: 0px;
}

windowcontrols button.close {
    padding: 0px;
}

It does the following things:

  1. Set the window decoration radius to 6px;
  2. Hide the circles behind window control buttons;
  3. Remove the padding between window control buttons.

It doesn’t change the color scheme.

I’m wondering if this configuration can be added to Plasma’s theme settings.

Screenshot:

Hi! Thought I’d recommend my library, gtk4-nocsd (very similar to gtk3-nocsd, if you know that), for removing GTK4/libadwaita CSD and bringing back SSD MorsMortium/GTK4-NoCSD: A small LD_PRELOAD library to disable CSD in GTK4 and LibAdwaita apps. - Codeberg.org

1 Like

I think this would be a nice addition to have, but this would probably not go over well with the wider GNOME app development community, as a lot of them are very vocal against third-party theming by distributions (see: stopthemingmy.app) (and I sense this also extends to DE-level theming)

If we are gonna do it at all, I think we should make it opt-in, probably with some warning like “some applications might break from this, and if it does, please do not bother the app maintainer!”

I didn’t imply adding it to KDE/Plasma, gtk3-nocsd wasn’t added either, after all. However, I do plan to incorporate gtk3-nocsd into this and making it as seamless as possible and would be proud if it was added, but I do agree that the Gnome side wouldn’t be happy about it. So I just recommended it for people that want to try it and add it to their own installs