euv-ui 0.49.1

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::*;

pub(crate) const EMPTY_ICON_GLYPH: &str = "[ ]";
pub(crate) const TREE_EXPAND_PREFIX: &str = "v ";
pub(crate) const TREE_COLLAPSED_PREFIX: &str = "> ";
pub(crate) const TREE_LEAF_PREFIX: &str = "- ";

/// Precomputed `(cos, sin, alpha)` table for the 8 radial spokes rendered by `EuvSpinner`.
pub(crate) const SPINNER_SPOKES: [(f32, f32, f32); 8] = [
    (1.0, 0.0, 0.22 + 0.78 * (1.0 / 8.0)),
    (FRAC_1_SQRT_2, FRAC_1_SQRT_2, 0.22 + 0.78 * (2.0 / 8.0)),
    (0.0, 1.0, 0.22 + 0.78 * (3.0 / 8.0)),
    (-FRAC_1_SQRT_2, FRAC_1_SQRT_2, 0.22 + 0.78 * (4.0 / 8.0)),
    (-1.0, 0.0, 0.22 + 0.78 * (5.0 / 8.0)),
    (-FRAC_1_SQRT_2, -FRAC_1_SQRT_2, 0.22 + 0.78 * (6.0 / 8.0)),
    (0.0, -1.0, 0.22 + 0.78 * (7.0 / 8.0)),
    (FRAC_1_SQRT_2, -FRAC_1_SQRT_2, 1.0),
];