Skip to main content

Module idle_fade

Module idle_fade 

Expand description

Chrome that shows on activity and fades out on its own once things are quiet: an overlay scroll bar after scrolling, a block’s drag handle after the pointer moves. It is fully visible for a hold after the last activity, then fades; something that holds it (the pointer on it, a drag) keeps it visible. Its owner sleeps through the hold on IdleFade::fade_deadline_at and asks for frames only while IdleFade::fading_at, so resting chrome costs no frames.

Structs§

IdleFade
The idle fade of a piece of chrome: when it was last woken, how long it then stays fully visible, and how long it takes to fade out.

Constants§

CHROME_FADE
How long fading chrome takes to go, once its hold is over: every piece of chrome that fades does so alike.