wiki: Use HTML dark/light image
Browse files at this commit908c8eb42af7a24b3fe7961b9d52c104910edcf7Parent: 00782931 changed file +4 -2
- wiki/Redraw-Loop.md +4 -2
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 | ||
| 3 | 3 | |
| 4 | 4 | Here's a diagram of state transitions for the `RedrawState` state machine: |
| 5 | 5 | |
| 6 | - | |
| 7 | - | |
| 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> | |
| 8 | 10 | |
| 9 | 11 | `Idle` is the default state, when the output does not need to be repainted. |
| 10 | 12 | Any operation that may cause the screen to update calls `queue_redraw()`, which moves the output to a `Queued` state. |