forge
Explore
Log in

Don't you dare go Hollow

wiki: Use HTML dark/light image

Browse files at this commit

908c8eb42af7a24b3fe7961b9d52c104910edcf7Ivan MolodetskikhParent: 0078293
Apparently GitHub Markdown is not supported on GitHub Wiki.
wiki/Redraw-Loop.mdmodified+4 -2
@@ -3,8 +3,10 @@ In niri we keep track of this via the `RedrawState` enum that you can find in an
33
44 Here's a diagram of state transitions for the `RedrawState` state machine:
55
6-![RedrawState state transition diagram](./img/RedrawState-light.drawio.png#gh-light-mode-only)
7-![RedrawState state transition diagram](./img/RedrawState-dark.drawio.png#gh-dark-mode-only)
6+<picture>
7+ <source media="(prefers-color-scheme: dark)" srcset="./img/RedrawState-dark.drawio.png">
8+ <img alt="RedrawState state transition diagram" src="./img/RedrawState-light.drawio.png">
9+</picture>
810
911 `Idle` is the default state, when the output does not need to be repainted.
1012 Any operation that may cause the screen to update calls `queue_redraw()`, which moves the output to a `Queued` state.