mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
1000d971f9
Making sure that an opacity node doesn't end up reviving a node that's hidden because the cross-fade has progress 0 or 1.
24 lines
400 B
Plaintext
24 lines
400 B
Plaintext
/* Background */
|
|
color {
|
|
bounds: 0 0 200 200;
|
|
color: white;
|
|
}
|
|
|
|
/* It is important that the following node structure leaves the
|
|
* start child of the cross-fade node invisible. */
|
|
opacity {
|
|
opacity: 0.4;
|
|
|
|
child: cross-fade {
|
|
start: color {
|
|
color: blue;
|
|
bounds: 0 0 100 100;
|
|
}
|
|
end: color {
|
|
color: red;
|
|
bounds: 100 100 100 100;
|
|
}
|
|
progress: 1.0;
|
|
}
|
|
}
|