lassekongo83 / adw-gtk3

The theme from libadwaita ported to GTK-3
GNU Lesser General Public License v2.1
1.55k stars 57 forks source link

Change corner radius with css #244

Closed Odizinne closed 1 year ago

Odizinne commented 1 year ago

Prerequisites

Checklist to make sure the issue is not on your end

Description

Hello, i'm working on a little project and i would need to reduce the default corner radius for this.

Is this something achievable with css? I tried somes, but it look weird. The gnome ext rounded-window-corners give the same weird result.

.background.csd {
    border-radius: 5px 5px 0 0;
}

Border radius set to 5px in GTK4 app

Screenshot from 2023-09-29 17-23-49

Border radius set to 5px in GTK3 app with adw-gtk3

Screenshot from 2023-09-29 17-24-05

I think it might be a mutter issue, if i understand the window manager render GTK3 window decorations, but i'm lacking knowledge, so i prefer asking.

OS and version [e.g Fedora 37]

Arch

Adw-gtk3 version. Also specify your installation source. [e.g tar.xz, AUR, git main branch]

AUR git

GNOME version

44

Application name and version (If the issue is with an app.)

Any GTK3 apps

lassekongo83 commented 1 year ago

In GTK3 the border radius is handled here: https://github.com/lassekongo83/adw-gtk3/blob/main/gtk/src/adw-gtk3/gtk-3.0/_common.scss#L1771 to line 1804. And also here: https://github.com/lassekongo83/adw-gtk3/blob/main/gtk/src/adw-gtk3/gtk-3.0/_common.scss#L4484