mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 18:22:38 +00:00
Keep the animated ring phase-locked across hosts and derive its knockout surface from each host's actual interaction state. Align filled status circles at 6px while preserving the larger needs-input alert. Co-authored-by: Christoph Leiter <christoph@leiter.io>
25 lines
1008 B
TypeScript
25 lines
1008 B
TypeScript
/**
|
|
* The surface something is drawn on top of.
|
|
*
|
|
* A knockout — an element that punches a hole in whatever it overlaps, like the status badge on
|
|
* the corner of a project icon — has to be filled with the colour *behind* it, or the hole reads
|
|
* as a bright halo instead of a gap. It cannot work that colour out for itself: it lives inside a
|
|
* row whose background changes on hover, on selection, while dragging. So the row names its
|
|
* surface and anything knocking out of it matches.
|
|
*
|
|
* A token name rather than a colour because theme colours are only legible inside
|
|
* `StyleSheet.create` — see docs/unistyles.md. Each knockout maps the name to a style of its own.
|
|
* Add a token here when a knockout lands on a surface that isn't listed.
|
|
*/
|
|
export type SurfaceBackdrop =
|
|
| "surface0"
|
|
| "surface1"
|
|
| "surface2"
|
|
| "surfaceSidebar"
|
|
| "surfaceSidebarHover";
|
|
|
|
export type SidebarSurfaceBackdrop = Extract<
|
|
SurfaceBackdrop,
|
|
"surfaceSidebar" | "surfaceSidebarHover" | "surface2"
|
|
>;
|