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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! Central theme: Nerd Font icon glyphs and the Spotify-like accent color, shared by the TUI and
//! the `login` command's console output.
//!
//! This is the single source of truth so that icon rendering, the status-line classifier
//! (`tui::view::status_kind`), and their tests all reference the *same* constants. Changing a glyph
//! here must keep those in sync — hence the shared definitions.
//!
//! Icons are Nerd Font (v3) Private Use Area glyphs and require a patched Nerd Font in the user's
//! terminal (documented as a requirement in the README). Without one, they render as tofu (□).
use Color;
/// Spotify classic brand green (#1DB954). Used as the accent across borders, titles, the progress
/// gauge, list selection, and "ok" status lines. Rendered accurately on truecolor terminals;
/// approximated on 256-color terminals by ratatui.
pub const GREEN: Color = Rgb;
// --- Now Playing / library icons ---
/// Music note — track title and the cover-art placeholder.
pub const MUSIC: &str = "\u{f001}"; // nf-fa-music
/// Microphone — artist line.
pub const ARTIST: &str = "\u{f130}"; // nf-fa-microphone
/// Compact disc — album line.
pub const ALBUM: &str = "\u{f51f}"; // nf-fa-compact_disc
/// Speaker — device / volume line.
pub const VOLUME: &str = "\u{f028}"; // nf-fa-volume_up
// --- State / status icons ---
/// Warning — the prefix for every warning status line (matched by `status_kind`).
pub const WARN: &str = "\u{f071}"; // nf-fa-exclamation_triangle
/// Play — playing state.
pub const PLAY: &str = "\u{f04b}"; // nf-fa-play
/// Pause — paused state.
pub const PAUSE: &str = "\u{f04c}"; // nf-fa-pause
/// Step forward — next track.
pub const NEXT: &str = "\u{f051}"; // nf-fa-step_forward
/// Step backward — previous track.
pub const PREV: &str = "\u{f048}"; // nf-fa-step_backward
/// Fast forward — seek.
pub const SEEK: &str = "\u{f04e}"; // nf-fa-forward
/// Filled heart — track saved to library.
pub const HEART: &str = "\u{f004}"; // nf-fa-heart
/// Empty heart — track not saved.
pub const HEART_O: &str = "\u{f08a}"; // nf-fa-heart_o
/// Check mark — login success (CLI output).
pub const CHECK: &str = "\u{f00c}"; // nf-fa-check
/// The set of status prefixes classified as [`super::view::StatusKind::Ok`]. `status_kind` matches
/// against these, so this list is the single definition shared by the classifier and its tests.
pub const OK_PREFIXES: & = &;