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
/// Minimum logical side safe-area width in dp that activates a vertical navigation rail inside the safe-area strip (e.g. iPhone Duo right signal rail or landscape cutout).
pub const CHROME_SIDE_SAFE_RAIL_MIN_WIDTH: f32 = 52.0;
/// Minimum logical height in dp required to dock a vertical navigation rail cleanly inside a side safe-area strip.
pub const CHROME_SIDE_SAFE_RAIL_MIN_HEIGHT: f32 = 320.0;
/// Top signal-cluster clearance in logical dp reserved inside a portrait-aspect side safe-area strip (clears iPhone Duo camera hole, clock, and Wi-Fi/cellular ring).
pub const CHROME_SIDE_RAIL_SIGNAL_CLEARANCE_PORTRAIT: f32 = 172.0;
/// Top clearance in logical dp reserved inside a landscape-aspect side safe-area strip.
pub const CHROME_SIDE_RAIL_SIGNAL_CLEARANCE_LANDSCAPE: f32 = 24.0;
/// Bottom corner-radius clearance in logical dp reserved below a vertical side safe-area navigation rail.
pub const CHROME_SIDE_RAIL_BOTTOM_CORNER_GAP: f32 = 24.0;
/// Minimum logical height in dp for a tall top safe-area strip (e.g. rotated Duo landscape) to host a horizontal top safe-area navigation bar.
pub const CHROME_TOP_SAFE_RAIL_MIN_HEIGHT: f32 = 72.0;
/// Minimum logical viewport width in dp required before placing navigation inside a wide top safe-area strip (prevents standard 390px phones and MiniApps from moving out of bottom dock).
pub const CHROME_TOP_SAFE_RAIL_MIN_VIEWPORT_WIDTH: f32 = 460.0;
/// Minimum logical height in dp for an extra-tall bottom safe-area strip (e.g. inverted Duo landscape) to host navigation inside the bottom safe area.
pub const CHROME_BOTTOM_SAFE_RAIL_MIN_HEIGHT: f32 = 68.0;
/// Horizontal clearance in logical dp reserved for the clock/signal corner inside a rotated top or bottom safe-area navigation strip.
pub const CHROME_HORIZONTAL_SIGNAL_CLEARANCE: f32 = 168.0;
/// Logical viewport axis threshold below which `EuvChromeLayoutPolicy` selects compact smartwatch chrome geometry.
pub const CHROME_WATCH_VIEWPORT_MAX: f32 = 300.0;
/// Compact icon-only floating bottom navigation height in logical dp for smartwatch viewports.
pub const CHROME_WATCH_DOCK_HEIGHT: f32 = 36.0;
/// Minimum vertical clearance in logical dp protecting interactive controls inside large display rounded corners during fullscreen presentation.
pub const CHROME_FULLSCREEN_CORNER_V_MIN: f32 = 22.0;
/// Minimum horizontal clearance in logical dp protecting interactive controls inside large display rounded corners during fullscreen presentation.
pub const CHROME_FULLSCREEN_CORNER_H_MIN: f32 = 24.0;
/// Minimum logical vertical rail height in dp needed to render both icons and text labels comfortably.
pub const CHROME_VERTICAL_RAIL_LABEL_MIN_HEIGHT: f32 = 276.0;
/// Minimum horizontal padding inset on each side of a docked vertical rail inside a side safe-area strip.
pub const CHROME_SIDE_RAIL_INSET_PAD: f32 = 6.0;
/// Minimum width in logical dp for a docked vertical safe-area navigation rail.
pub const CHROME_SIDE_RAIL_MIN_DOCK_W: f32 = 48.0;
/// Maximum width in logical dp for a docked vertical safe-area navigation rail.
pub const CHROME_SIDE_RAIL_MAX_DOCK_W: f32 = 72.0;
/// Maximum height in logical dp for a docked vertical safe-area navigation rail so tabs stay ergonomic and thumb-reachable.
pub const CHROME_SIDE_RAIL_MAX_DOCK_H: f32 = 396.0;
/// Horizontal bar height in logical dp when navigation sits inside a wide top or bottom hardware safe strip.
pub const CHROME_EDGE_STRIP_BAR_HEIGHT: f32 = 52.0;
/// Minimum logical viewport clamp protecting layout math from degenerate zero dimensions.
pub const CHROME_MIN_VIEWPORT_CLAMP: f32 = 120.0;