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 689249 - Fade scroll view fade edges near scrolling edges
Fade scroll view fade edges near scrolling edges
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 661506 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-11-29 01:16 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-11-29 21:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
scroll-view-sizing: Add a lot more boxes (1.04 KB, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-sizing: Enable vfade by default (744 bytes, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-fade: Put the shader in another file (8.40 KB, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-fade: Clean up GLSL (2.20 KB, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-fade: Use GLSL 1.20 (907 bytes, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-fade: Do the offset math in the shader (6.98 KB, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-fade: Only calculate the ratios if they're needed (1.80 KB, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
scroll-view-fade: Fade gradients when near edges (2.06 KB, patch)
2012-11-29 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:07 UTC
Right now, scroll view fades pop into existence, which gives for
a very jarring effect. Fade the fades out when approaching the edge
while scrolling, rather than having the fades suddenly appear on edges.

... Feel free to make a better description. I'm so confused right now;
the word fade does not mean anything to me anymore. Fade fade fade fade
fade fade fade. Nope.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:09 UTC
Created attachment 230140 [details] [review]
scroll-view-sizing: Add a lot more boxes
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:13 UTC
Created attachment 230141 [details] [review]
scroll-view-sizing: Enable vfade by default
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:16 UTC
Created attachment 230142 [details] [review]
scroll-view-fade: Put the shader in another file

This doesn't make any changes to the shader outside of adding
a header; it simply makes changes in the future easier to edit.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:20 UTC
Created attachment 230143 [details] [review]
scroll-view-fade: Clean up GLSL

Basic cleanup of what we're doing already. This moves a bunch
of the "inside the fade area" checks to the top, before doing
any calculations.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:23 UTC
Created attachment 230144 [details] [review]
scroll-view-fade: Use GLSL 1.20

GLSL 1.20 is a better language, and we'll rely on it in future updates.
This doesn't have any additional constraints, since GLSL 1.20 was
standardized before GLSL-supporting drivers came out.
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:26 UTC
Created attachment 230145 [details] [review]
scroll-view-fade: Do the offset math in the shader

This doesn't (or shouldn't) change the visual appearance of the fade
effect, but does do all the testing math inside the shader, rather
than on the CPU. This will make fading the offset much easier in
the future.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:28 UTC
Created attachment 230146 [details] [review]
scroll-view-fade: Only calculate the ratios if they're needed

This prevents some calculations being done for poor drivers with
bad optimizers.
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-11-29 01:16:32 UTC
Created attachment 230147 [details] [review]
scroll-view-fade: Fade gradients when near edges

Rather than sharply transitioning to gradients, fade them out when
near the edge of the scroll view.
Comment 9 drago01 2012-11-29 12:46:15 UTC
Review of attachment 230140 [details] [review]:

OK.
Comment 10 drago01 2012-11-29 12:48:21 UTC
Review of attachment 230141 [details] [review]:

OK.
Comment 11 drago01 2012-11-29 12:52:15 UTC
Review of attachment 230142 [details] [review]:

This is indeed way better to work with.
Comment 12 drago01 2012-11-29 12:57:07 UTC
Review of attachment 230143 [details] [review]:

OK.
Comment 13 drago01 2012-11-29 12:57:41 UTC
Review of attachment 230144 [details] [review]:

OK.
Comment 14 drago01 2012-11-29 13:01:07 UTC
Review of attachment 230145 [details] [review]:

Looks correct couldn't spot any visual differences either.
Comment 15 drago01 2012-11-29 13:02:15 UTC
Review of attachment 230146 [details] [review]:

OK.
Comment 16 drago01 2012-11-29 13:03:52 UTC
Review of attachment 230147 [details] [review]:

OK.
Comment 17 Jasper St. Pierre (not reading bugmail) 2012-11-29 21:17:29 UTC
Attachment 230140 [details] pushed as affcd5c - scroll-view-sizing: Add a lot more boxes
Attachment 230141 [details] pushed as 7c93639 - scroll-view-sizing: Enable vfade by default
Attachment 230142 [details] pushed as b3fea01 - scroll-view-fade: Put the shader in another file
Attachment 230143 [details] pushed as ae1a3a0 - scroll-view-fade: Clean up GLSL
Attachment 230144 [details] pushed as c84236e - scroll-view-fade: Use GLSL 1.20
Attachment 230145 [details] pushed as 5c439f4 - scroll-view-fade: Do the offset math in the shader
Attachment 230146 [details] pushed as 69347ff - scroll-view-fade: Only calculate the ratios if they're needed
Attachment 230147 [details] pushed as b4f5f1e - scroll-view-fade: Fade gradients when near edges
Comment 18 Jasper St. Pierre (not reading bugmail) 2012-11-29 21:27:11 UTC
*** Bug 661506 has been marked as a duplicate of this bug. ***