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
/// Reference watch dial diameter in logical dp for compact viewport scaling (`1.0x`).
pub const WEARABLE_REF_DIAL_DP: f32 = 210.0;
/// Minimum compact viewport scale clamp for ultra-compact smartwatch displays.
pub const WEARABLE_MIN_COMPACT_SCALE: f32 = 0.72;
/// Maximum compact viewport scale clamp for large rugged smartwatch displays (e.g. Ultra).
pub const WEARABLE_MAX_COMPACT_SCALE: f32 = 1.20;
/// Default scroll distance in logical pixels emitted per rotary crown/bezel detent tick.
pub const WEARABLE_CROWN_PIXELS_PER_DETENT: f32 = 36.0;
/// Default interactive smartwatch refresh rate in Hertz (`60.0` Hz).
pub const WEARABLE_INTERACTIVE_REFRESH_HZ: f32 = 60.0;
/// Low-power Always-On Display (AOD) ambient refresh rate in Hertz (`1.0` Hz).
pub const WEARABLE_AOD_REFRESH_HZ: f32 = 1.0;
/// Canonical vendor identifier for Google / Samsung / Pixel / TicWatch Wear OS.
pub const WEARABLE_VENDOR_WEAR_OS: &str = "wearos";
/// Canonical vendor identifier for Apple watchOS.
pub const WEARABLE_VENDOR_WATCH_OS: &str = "watchos";
/// Canonical vendor identifier for Huawei HarmonyOS Watch.
pub const WEARABLE_VENDOR_HARMONY_WATCH: &str = "harmony-watch";
/// Canonical vendor identifier for Xiaomi HyperOS / Vela Watch.
pub const WEARABLE_VENDOR_HYPEROS_VELA: &str = "hyperos-vela";
/// Canonical vendor identifier for OPPO ColorOS Watch.
pub const WEARABLE_VENDOR_OPPO_WATCH: &str = "oppo-watch";
/// Canonical vendor identifier for vivo BlueOS Watch.
pub const WEARABLE_VENDOR_VIVO_WATCH: &str = "vivo-watch";
/// Canonical vendor identifier for Garmin Connect IQ watches.
pub const WEARABLE_VENDOR_GARMIN: &str = "garmin";
/// Canonical vendor identifier for Amazfit Zepp OS watches.
pub const WEARABLE_VENDOR_ZEPP_OS: &str = "zeppos";
/// Canonical vendor identifier for generic wrist wearable devices.
pub const WEARABLE_VENDOR_GENERIC: &str = "generic-wearable";
/// Default compact top clock/status inset for rectangular wearable bands in logical dp.
pub const WEARABLE_RECT_TOP_INSET_DP: f32 = 16.0;
/// Default compact bottom gesture/edge inset for rectangular wearable bands in logical dp.
pub const WEARABLE_RECT_BOTTOM_INSET_DP: f32 = 10.0;
/// Default horizontal padding inset for rectangular wearable bands in logical dp.
pub const WEARABLE_RECT_SIDE_INSET_DP: f32 = 6.0;
/// Default squircle corner radius ratio relative to the shorter display edge.
pub const WEARABLE_SQUIRCLE_RADIUS_RATIO: f32 = 0.22;
/// Default initial route path for wearable host sessions.
pub const WEARABLE_DEFAULT_ROUTE: &str = "/";