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 681601 - Update style of attached modal dialogs
Update style of attached modal dialogs
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-08-10 14:22 UTC by Florian Müllner
Modified: 2015-07-16 09:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
windowManager: Update dim effect (1.84 KB, patch)
2012-08-10 14:23 UTC, Florian Müllner
committed Details | Review
windowManager: Remove WindowDimmer class (3.91 KB, patch)
2012-08-10 14:23 UTC, Florian Müllner
needs-work Details | Review
Revert "windowManager: Update animation of attached modals" (2.63 KB, patch)
2012-08-10 14:23 UTC, Florian Müllner
committed Details | Review
windowManager: Update animation of attached modals (again) (1.33 KB, patch)
2012-08-10 14:23 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2012-08-10 14:22:58 UTC
There were some concerns from the design team that some of the changes to attached modals didn't work out quite so well. This is what they came up with ...
Comment 1 Florian Müllner 2012-08-10 14:23:01 UTC
Created attachment 220891 [details] [review]
windowManager: Update dim effect

The combination of desaturating and lowering the brightness does
not work too well in all cases, in particular for applications
using the dark theme variant. Dropping the desaturation effect and
making the brightness adjustment more profound gives a better
result.
Comment 2 Florian Müllner 2012-08-10 14:23:04 UTC
Created attachment 220892 [details] [review]
windowManager: Remove WindowDimmer class

Given that we now use a single clutter effect for dimming, we can
now just as well use the effect directly rather than the WindowDimmer
wrapper class.
Comment 3 Florian Müllner 2012-08-10 14:23:08 UTC
Created attachment 220893 [details] [review]
Revert "windowManager: Update animation of attached modals"

This reverts commit 6ab25cd7912a623151d0d6aa5876cd6de1987ea9.
Comment 4 Florian Müllner 2012-08-10 14:23:11 UTC
Created attachment 220894 [details] [review]
windowManager: Update animation of attached modals (again)

The fade animation we started using after centering attached
modal dialogs didn't work too well. So after going back to the
scale animation, adjust it to scale from the center rather
than the top, which works quite well.
Comment 5 Florian Müllner 2012-08-15 10:28:41 UTC
Ping? Would be nice to get this in before the freeze ...
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-08-15 13:29:13 UTC
Review of attachment 220891 [details] [review]:

Sure.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-08-15 13:30:21 UTC
Review of attachment 220892 [details] [review]:

::: js/ui/windowManager.js
@@ +261,3 @@
+                           transition: 'linear',
+                           onUpdate: function() {
+                               this.set_brightness(this._dimFactor * DIM_BRIGHTNESS);

Can't you tween the brightness directly? It has a "brightness" property.
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-08-15 13:31:13 UTC
Review of attachment 220893 [details] [review]:

Sure, I guess.
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-08-15 13:31:40 UTC
Review of attachment 220894 [details] [review]:

Meep.
Comment 10 Florian Müllner 2012-08-15 14:19:03 UTC
(In reply to comment #7)
                          this.set_brightness(this._dimFactor *
> DIM_BRIGHTNESS);
> 
> Can't you tween the brightness directly? It has a "brightness" property.

It's a ClutterColor ...
Comment 11 Jasper St. Pierre (not reading bugmail) 2012-08-15 22:49:59 UTC
(With the Clutter tweening framework, you can tween ClutterColors)
Comment 12 Florian Müllner 2012-08-16 07:53:14 UTC
Attachment 220891 [details] pushed as ca7c4ed - windowManager: Update dim effect
Attachment 220893 [details] pushed as aaf61cb - Revert "windowManager: Update animation of attached modals"
Attachment 220894 [details] pushed as ff25a5e - windowManager: Update animation of attached modals (again)
Comment 13 Alexandre Franke 2015-07-15 06:43:18 UTC
Is work still needed there or can we close this one as FIXED?
Comment 14 Florian Müllner 2015-07-16 09:04:45 UTC
I don't think so, no.