egui_charts/styles/icons.rs
1//! Icon size constants
2//!
3//! Consistent icon sizing across toolbar and UI components.
4
5// =============================================================================
6// Icon Size Scale
7// =============================================================================
8
9/// Tiny icon (11px) - status indicators, compact badges
10pub const TINY: f32 = 11.0;
11
12/// Extra small icon (12px)
13pub const XS: f32 = 12.0;
14
15/// Compact icon (14px) - floating controls, compact buttons
16pub const COMPACT: f32 = 14.0;
17
18/// Small icon (16px)
19pub const SM: f32 = 16.0;
20
21/// Small-medium icon (18px) - bottom toolbar, compact btns
22pub const SM_MD: f32 = 18.0;
23
24/// Medium icon (20px)
25pub const MD: f32 = 20.0;
26
27/// Large icon (24px)
28pub const LG: f32 = 24.0;
29
30/// Extra large icon (28px) - standard toolbar icon
31pub const XL: f32 = 28.0;
32
33/// 2X large icon (32px)
34pub const XXL: f32 = 32.0;
35
36// =============================================================================
37// Semantic Aliases
38// =============================================================================
39
40/// Standard toolbar icon size
41pub const TOOLBAR: f32 = XL;
42
43/// Menu item icon size
44pub const MENU: f32 = MD;
45
46/// Button icon size (small)
47pub const BUTTON_SM: f32 = SM;
48
49/// Button icon size (standard)
50pub const BUTTON: f32 = MD;
51
52/// Indicator/badge icon size
53pub const INDICATOR: f32 = SM;
54
55/// Bottom toolbar icon size
56pub const BOTTOM_TOOLBAR: f32 = SM_MD;
57
58/// Status indicator icon size (compact badges)
59pub const STATUS_INDICATOR: f32 = TINY;
60
61/// Floating control icon size (compact floating toolbars)
62pub const FLOATING_CONTROL: f32 = COMPACT;
63
64// =============================================================================
65// UiExt Aliases (for extension traits)
66// =============================================================================
67
68/// Small icon size (16px) - for UiExt::small_icon
69pub const SMALL: f32 = SM;
70
71/// Medium icon size (20px) - for UiExt::medium_icon
72pub const MEDIUM: f32 = MD;
73
74/// Large icon size (24px) - for UiExt::large_icon
75pub const LARGE: f32 = LG;