Actor should not have its own opacity property
See original GitHub issueContext
Actor
should not have its own opacity property. Currently, it’s used to facilitate the Fade
Action, and to override the opacity of the Actor’s color
property (if it has one). This has the potential to cause confusion, over which property is actually used (see #837).
Proposal
Actor.opacity
should be deprecated in favor of using the opacity of Actor.color.a
or Actor.currentDrawing.opacity
(if the IDrawable
has an opacity property, such as if it is a Sprite
)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
mutter/clutter-actor.c at master · endlessm/mutter - GitHub
The example above will animate the #ClutterActor:opacity property. * of an actor between fully opaque and fully transparent, and back, over.
Read more >ClutterActor: Clutter Reference Manual
The example above will animate the “opacity” property of an actor between fully opaque and fully transparent, and back, over a span of...
Read more >Clutter.Actor - Classes
Actors can know from their allocation box whether they have moved with respect ... Action is owned by the actor and it should...
Read more >opacity - CSS: Cascading Style Sheets - MDN Web Docs
opacity applies to the element as a whole, including its contents, even though the value is not inherited by child elements. Thus, the...
Read more >opacity acting weird (css) - Stack Overflow
1 Answer 1 ... Opacity values are not inherited. Rather, they stack. So if you make .container have opacity 0.92, and don't change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just wasted a bunch of time on this. It could not possibly be more confusing. Everything about Actor.opacity is inconsistent and broken.
Color.Transparent
causes the Actor to turn black and retain its previous opacity.this.color.a = this.opacity
in itsupdate
function (WHY?!) so classes that extend Actor and define their owndraw
function inherit the weird relationship betweencolor
andopacity
. For example,Label
. They could overrideupdate
but then they lose the existing implementation of a bunch of other useful stuff.visibility = false
inupdate
whenopacity === 0
, so if you ever set the opacity of an Actor to zero then it disappears and doesn’t come back when you set the opacity back to a value > 0.This issue hasn’t had any recent activity lately and is being marked as stale automatically.