mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
appDisplay: Fade the dialog background
As a last step towards the better app grid, add a semi-transparent black background to the folder dialog. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301
This commit is contained in:
parent
a60b8b3b50
commit
ffdf3feb04
1 changed files with 11 additions and 0 deletions
|
|
@ -1621,6 +1621,11 @@ var AppFolderDialog = GObject.registerClass({
|
|||
opacity: 0,
|
||||
});
|
||||
|
||||
this.ease({
|
||||
background_color: Clutter.Color.from_pixel(0x000000cc),
|
||||
duration: FOLDER_DIALOG_ANIMATION_TIME,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
});
|
||||
this.child.ease({
|
||||
translation_x: 0,
|
||||
translation_y: 0,
|
||||
|
|
@ -1653,6 +1658,12 @@ var AppFolderDialog = GObject.registerClass({
|
|||
let [dialogX, dialogY] =
|
||||
this.child.get_transformed_position();
|
||||
|
||||
this.ease({
|
||||
background_color: Clutter.Color.from_pixel(0x00000000),
|
||||
duration: FOLDER_DIALOG_ANIMATION_TIME,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
});
|
||||
|
||||
this.child.ease({
|
||||
translation_x: sourceX - dialogX,
|
||||
translation_y: sourceY - dialogY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue