Implement rounded bottom corners
Categories
(Core :: Widget: Gtk, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox119 | --- | affected |
People
(Reporter: rmader, Assigned: emilio)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(3 files, 2 obsolete files)
We already do that on other platforms and GTK-land has moved to the direction as well.
Reporter | ||
Comment 1•1 year ago
|
||
Reporter | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
Assignee | ||
Comment 4•1 year ago
|
||
Okay, so I took a look and rebased the patch. Ironically, the Adwaita Gtk3 theme doesn't have bottom corners, so that's why that border shows up. More ironically, this works with Breeze and improves the rendering there :)
The thing is, we can't know if the current gtk theme has bottom rounded corners. The right thing to do would be to query the border-bottom-right/left-radius in the CSD node of the window. That's what GTK does here. But those properties aren't exposed, so we can just query border-radius
as a whole, and that just returns the top left radius here...
So unless there's somehow a way to override this (maybe there is... a custom CSS provider or so?) I don't think there's an easy way to do this...
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
This makes the rounded bottom corners work on X11, and makes the top
corner drawing less insane.
Depends on D187343
This also solves https://bugzilla.mozilla.org/show_bug.cgi?id=1743981?
Updated•1 year ago
|
Reporter | ||
Comment 8•1 year ago
|
||
For anyone wanting to test: https://treeherder.mozilla.org/jobs?repo=try&revision=4dcf74dec8d8bfac1de6b81a8eb6c67dd0ca6bc7
Reporter | ||
Comment 9•1 year ago
|
||
This looks almost perfect to me, thanks a lot! The only issue I see on Gnome is a slight misalignment of the black border and the transparent area, both at the bottom and at the top. At the bottom it's just a bit more visible IMO.
I attached a screenshot for more easy reasoning.
Assignee | ||
Comment 10•1 year ago
|
||
Is the one at the top a new thing with these patches or do you see it without them too?
Assignee | ||
Comment 11•1 year ago
|
||
(I can't reproduce comment 9 neither on mutter nor kwin fwiw, looks perfect here)
Reporter | ||
Comment 12•1 year ago
•
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #10)
Is the one at the top a new thing with these patches or do you see it without them too?
- The top part is also visible in nightly, but only catches my eye when using dark mode (so the title bar color is dark) and over light background. It's easy to miss over dark background and doesn't appear to be a big deal.
- The bottom part is easily visible - but so far I could only reproduce it on https://www.mozilla.org/en-US/firefox/nightly/firstrun/ :)
Tested on two different machines - both dark-mode, one text-scale-factor 1.25 (the other 1.0).
Assignee | ||
Updated•1 year ago
|
Comment 13•1 year ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a7ce0ac3a970 Implement rounded bottom corners in GTK. r=rmader
Comment 14•1 year ago
|
||
bugherder |
Comment 15•1 year ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7b7144975b31 Simplify how we draw window decorations. r=stransky,rmader,desktop-theme-reviewers,dao
Comment 16•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 17•1 year ago
|
||
Reopening because of scrolling perf regressions (bug 1852584).
Updated•1 year ago
|
Assignee | ||
Comment 18•1 year ago
|
||
Comment 19•10 months ago
|
||
It seems that rounded corners disappears when visiting a website with blurred elements.
Example: https://build.archlinuxcn.org/~auxiliarypower/map.html
Description
•