euv_ui/chrome_policy/enum.rs
1/// Axis orientation of the adaptive navigation dock rendered by `EuvBottomNav`.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum NavDockOrientation {
4 /// Horizontal row of tabs (standard mobile bottom dock or compact watch dock).
5 #[default]
6 Horizontal,
7 /// Vertical column of tabs docked borderless inside an asymmetric left or right hardware safe-area strip (e.g. iPhone Duo folded/unfolded/rotated/split).
8 Vertical,
9}
10
11/// Concrete screen placement selected by `EuvChromeLayoutPolicy` for the adaptive navigation dock.
12#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
13pub enum NavDockPlacement {
14 /// Navigation dock is hidden (desktop sidebar active, fullscreen mode, or no bottom nav provided).
15 #[default]
16 Hidden,
17 /// Standard floating horizontal capsule above the bottom safe inset.
18 BottomHorizontal,
19 /// Compact icon-only horizontal capsule centered inside a round/squircle smartwatch bezel.
20 WatchBottomCompact,
21 /// Borderless vertical navigation buttons docked inside the left hardware safe-area strip avoiding the camera and signal cluster.
22 LeftSafeRail,
23 /// Borderless vertical navigation buttons docked inside the right hardware safe-area strip avoiding the camera and signal cluster.
24 RightSafeRail,
25}
26
27/// Normalized hardware display posture inferred purely from viewport dimensions and safe-area geometry.
28#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
29pub enum ChromePosture {
30 /// Desktop / PC / wide landscape tablet (`>= 960dp`) with persistent left sidebar.
31 Desktop,
32 /// Compact smartwatch dial (`< 300dp` on either axis).
33 WatchCompact,
34 /// Asymmetric left-side hardware safe-area strip hosting borderless persistent vertical navigation (iPhone Duo rotated left-safe / split).
35 SideSafeRailLeft,
36 /// Asymmetric right-side hardware safe-area strip hosting borderless persistent vertical navigation (iPhone Duo folded/unfolded/split).
37 SideSafeRailRight,
38 /// Wide top hardware safe-area strip hosting the page top bar (avoiding the top-right hardware zone) while navigation docks at the bottom (iPhone Duo unfolded portrait).
39 TopSafeHeader,
40 /// Standard mobile / tablet portrait / MiniApp / QuickApp / symmetric landscape layout with bottom navigation dock.
41 #[default]
42 StandardMobile,
43}