calendar: Add group expanding animations

parent d9690bfc
......@@ -1084,7 +1084,10 @@ var SourceSection = GObject.registerClass({
this._closeButton.connect('clicked', () => {
this._groupHeader.visible = false;
this._list.layout_manager.expansion = 0;
this._list.ease_property('@layout.expansion', 0, {
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: 200,
});
this._updateNewestMessage();
});
......@@ -1108,7 +1111,10 @@ var SourceSection = GObject.registerClass({
this.moveMessage(message, isUrgent ? 0 : this._nUrgent, this.mapped);
});
message.connect('expand-group', () => {
this._list.layout_manager.expansion = 1;
this._list.ease_property('@layout.expansion', 1, {
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
duration: 200,
});
this._groupHeader.visible = true;
this._groupLabel.text = source.title;
this._updateNewestMessage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment