Gala: Add bounce animation to Granite.MessageDialog

Created on 13 Feb 2021  路  3Comments  路  Source: elementary/gala

Problem


Message dialogues aren't very visually distinct from other windows when they are opened unless you view the contents. This is even more the case since message dialogues are almost always of some importance or urgency

I'm also aware that this is a cross-project request, but since animations are Gala's problem I opened it here

Proposal


Make Granite.MessageDialogs emit a signal so that Gala can animate it openening.
This would make them easily distinguishable from windows and other dialogues by giving them a 'bounce' animation when they appear. This not only gives them +300% quirkyness but also helps if the user takes longer read the dialogue contents and realise that they didn't just accidentally open something.

Prior Art

Another nice demo:

https://user-images.githubusercontent.com/58219504/107857460-57748a00-6e26-11eb-9cbf-6098d4adb407.mov

Needs Design

Most helpful comment

I think that this should be possible for any Gtk.Dialog as it should expose some hints to the WM that it is a Dialog and not a Window. Assigning UX for confirmation.

All 3 comments

I think that this should be possible for any Gtk.Dialog as it should expose some hints to the WM that it is a Dialog and not a Window. Assigning UX for confirmation.

I think that this should be possible for any Gtk.Dialog as it should expose some hints to the WM that it is a Dialog and not a Window. Assigning UX for confirmation.

The reason I say this is partly due to the new Granite.Dialog which afaik is not a Gtk.Dialog. The other oart is that a lot of apps use Gtk.Dialog as a lazy way of rounding their corners, which would confuse users and leave them questioning why not all windows do it.

Granite.Dialog is a Gtk.Dialog subclass and apps misusing Gtk.Dialog should fix their copy as Gtk.Dialog is really made to work with a Gtk.Window (it will raise a message if it is shown alone without Gtk.Window)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cassidyjames picture cassidyjames  路  4Comments

waldyrious picture waldyrious  路  4Comments

Blast-City picture Blast-City  路  4Comments

wout picture wout  路  3Comments

Janiczek picture Janiczek  路  4Comments