After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700081 - vignette has a harsh border
vignette has a harsh border
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: overview
3.12.x
Other Linux
: Low minor
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 695724 704635 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-05-10 14:24 UTC by Jakub Steiner
Modified: 2021-07-05 14:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
flat corners (184.78 KB, image/jpeg)
2013-05-10 14:28 UTC, Jakub Steiner
  Details
suggested serving :) (562.76 KB, image/jpeg)
2013-05-10 14:34 UTC, Jakub Steiner
  Details
meta-background: Don't use brigthness twice (1.32 KB, patch)
2014-04-01 16:23 UTC, Carlos Soriano
none Details | Review
meta-background: Add inner and outer radius to vignette (1.93 KB, patch)
2014-04-01 16:23 UTC, Carlos Soriano
none Details | Review
meta-background: Delete vignetteSharpness parameter (5.47 KB, patch)
2014-04-01 16:23 UTC, Carlos Soriano
none Details | Review
overview: Delete vignetteSharpness parameter (3.11 KB, patch)
2014-04-01 16:23 UTC, Carlos Soriano
none Details | Review
ligthBox: Add inner and outer radius to vignette (1.71 KB, patch)
2014-04-01 16:23 UTC, Carlos Soriano
none Details | Review
ligthbox: Delete vignetteSharpness parameter (2.62 KB, patch)
2014-04-01 16:23 UTC, Carlos Soriano
none Details | Review

Description Jakub Steiner 2013-05-10 14:24:54 UTC
Overview backdrop has a nice vignette, but the 4 corners feel like the opacity fade is clipped there and appear flat. Due to the color being flat on the corners, visually it actually feels like it's getting lighter towards the corners again. Would be great if the alpha fade happened all the way to the corners, not just the edges.
Comment 1 Jakub Steiner 2013-05-10 14:28:30 UTC
Created attachment 243789 [details]
flat corners
Comment 2 Jakub Steiner 2013-05-10 14:34:17 UTC
Created attachment 243790 [details]
suggested serving :)
Comment 3 Ray Strode [halfline] 2013-05-13 20:24:39 UTC
*** Bug 695724 has been marked as a duplicate of this bug. ***
Comment 4 Allan Day 2013-08-27 23:26:15 UTC
*** Bug 704635 has been marked as a duplicate of this bug. ***
Comment 5 Carlos Soriano 2014-04-01 16:21:55 UTC
I tried to tweak the parameters to match designs. But it can't be possible with the current code. (there was also a "bug")

So following I did a set of patches for mutter and gnome-shell adding inner and outer radius to the vignette effect and tweak it to match designs.

1- The first patch in mutter fix a bug that previously we were aplying brigthness twice, causing meta-background vignette effect (the one in overview) and ligthbox vignette effect (the one in modals) don't match. I guess this was to try to diferenciate between the overall brigthness and the background brightness, but since we only use meta-background in the overview, and we want to match the ligthbox effect, just don't take into account the overall brigthness and take into acount only for the vignette effect like we do in ligthbox.

2- I didn't do inner and outer radius parameters to set, bus instead private variables. Not sure if we want to tweak it from outside. Feedback on this?

3- On the other hand, the vignette_sharpness is now gone in both ligthbox and meta-background, since brigthness is enough to do an animation and inner/outer radius control allows us to tweak it even more if needed.

Some of those patches mean to be squashed, but to make easy the review I splitted them.
Comment 6 Carlos Soriano 2014-04-01 16:23:08 UTC
Created attachment 273416 [details] [review]
meta-background: Don't use brigthness twice

Until now the brigthness was being applied both to
the background and to the vignette effect. That was causing
the effect to not be the same as ligthbox in gnome-shell.
Since we are only using meta-background in the overview of
gnome-shell, we can delete the brigthness that was being applied
to the background and use only the brigthness applied to the
vignette effect, so we can match gnome-shell ligthbox vignette
effect.
Comment 7 Carlos Soriano 2014-04-01 16:23:13 UTC
Created attachment 273417 [details] [review]
meta-background: Add inner and outer radius to vignette

Until now we were using a vignette effect with lack
of some parameters that vignette effect should provide.
That causes that we can't tweak it as designers want.
Add inner radius and outter radius to the vignette effect
and tweak it to match designs.
Comment 8 Carlos Soriano 2014-04-01 16:23:17 UTC
Created attachment 273418 [details] [review]
meta-background: Delete vignetteSharpness parameter

Since in the last patch we don't use it anymore,
just delete it.
The only client of vignette_sharpness is gnome-shell
in Background.js. So a patch for gnome-shell alongside
this patch is made.
Comment 9 Carlos Soriano 2014-04-01 16:23:43 UTC
Created attachment 273419 [details] [review]
overview: Delete vignetteSharpness parameter

Since meta-background no longer use it, delete it
from the background params.
Comment 10 Carlos Soriano 2014-04-01 16:23:48 UTC
Created attachment 273420 [details] [review]
ligthBox: Add inner and outer radius to vignette

Until now we were using a vignette effect with lack
of some parameters that vignette effect should provide.
That causes that we can't tweak it as designers want.
Add inner radius and outter radius to the vignette effect
and tweak it to match designs.
Comment 11 Carlos Soriano 2014-04-01 16:23:52 UTC
Created attachment 273421 [details] [review]
ligthbox: Delete vignetteSharpness parameter

Since in the last patch we don't use it anymore,
just delete it.
It is safe to delete it since nobody is using
it currently.
Comment 12 Carlos Soriano 2014-04-01 16:26:57 UTC
Master:
 - Modal (ligthbox): http://i.imgur.com/6GBRjix.jpg
 - Overview (meta-background): http://i.imgur.com/JvpsCJ8.jpg

Patches:
 - Modal (ligthbox): http://i.imgur.com/M9zN6bs.jpg
 - Overview (meta-background): http://i.imgur.com/DynIJu9.jpg
Comment 13 Carlos Soriano 2014-04-01 17:05:32 UTC
Jakub,
I'm not that good matching design by eye, so probably you want to tweak it.
The thing is that, with those patches you can give me inner radius, outer radius(I guess the entire size) and opacity of the design picture and I can match the design mathematically.
Comment 14 Carlos Soriano 2014-05-01 23:39:43 UTC
Closer to the mockup:
http://i.imgur.com/YHvK68X.jpg
Comment 15 Jakub Steiner 2014-05-05 06:22:33 UTC
Great work! The gradient progression is a lot better, there doesn't seem to be any flatness to the corners anymore. I'll see if I can tweak the brightness when I get back to my jhbuild environment as it feels a little lighter.
Comment 16 Ray Strode [halfline] 2014-12-18 19:01:48 UTC
I think this is obsolete now and things should be square with all the recent background changes? reopen if i'm wrong.
Comment 17 Carlos Soriano 2015-01-09 15:55:16 UTC
(In reply to comment #16)
> I think this is obsolete now and things should be square with all the recent
> background changes? reopen if i'm wrong.

It's not =S visually is still unchanged, and the code creates a vignette with the same values...
Comment 18 GNOME Infrastructure Team 2021-07-05 14:27:21 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.