euv_ui/component/avatar/view/enum.rs
1use super::*;
2
3/// The square edge length of the `euv_avatar` component.
4///
5/// The sizes mirror the `c_euv_logo_nav` (32px) square convention used by the
6/// brand logo: `Small` for dense list rows, `Medium` as the default inline
7/// size, and `Large` for profile headers.
8#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
9pub enum EuvAvatarSize {
10 /// A 24×24 avatar for dense rows such as comment lists.
11 Small,
12 /// A 32×32 avatar, the default size matching the navigation logo square.
13 #[default]
14 Medium,
15 /// A 40×40 avatar for profile headers and user cards.
16 Large,
17}