1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2026 Mathews Tom
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// https://www.apache.org/licenses/LICENSE-2.0
//! What every native indicator renders from.
//!
//! One rendering-independent snapshot, so the status item, the floating
//! panel, and anything else showing a live recording cannot disagree
//! about what they are showing. It carries no dependency on the service
//! layer: whichever frontend owns a recording projects its own state
//! model onto this, and the widgets never see a controller.
use Duration;
/// The recording lifecycle a native indicator shows.
///
/// Two states, not six. An indicator the size of a menu-bar item has
/// room for "this is running" and "this is finishing", and a reader
/// watching one wants exactly that distinction; the full state model
/// belongs to the surface that has room to render it.
/// One snapshot, as every native indicator sees it.