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
//! Theme constants — colors and geometry shared between paint primitives, chrome, and (eventually) widgets. Sourced verbatim from photon's [theme.rs](/mnt/Octopus/Code/photon/src/ui/theme.rs); names match photon exactly so cross-codebase greps work.
//!
//! All colors are u32 in packed ARGB format `0xAARRGGBB`. Android byte-swap (ARGB → ABGR) lives behind a cfg here so call sites stay platform-neutral.
const
const
// Background texture (organic noise, scrollable).
pub const BG_BASE: u32 = fmt;
pub const BG_MASK: u32 = fmt;
pub const BG_ALPHA: u32 = fmt;
pub const BG_SPECKLE: u32 = fmt;
// Window edges + controls background.
pub const WINDOW_LIGHT_EDGE: u32 = fmt;
pub const WINDOW_SHADOW_EDGE: u32 = fmt;
pub const WINDOW_CONTROLS_BG: u32 = fmt;
pub const WINDOW_CONTROLS_HAIRLINE: u32 = fmt;
// Button hover deltas (RGB channels wrap intentionally; 0xFF alpha absorbs carry).
pub const CLOSE_HOVER: u32 = fmt;
pub const MAXIMIZE_HOVER: u32 = fmt;
pub const MINIMIZE_HOVER: u32 = fmt;
// Generic UI text.
pub const TEXT_COLOUR: u32 = fmt;
pub const LABEL_COLOUR: u32 = fmt;
// Window control glyph colours (drawn on top of WINDOW_CONTROLS_BG).
pub const CLOSE_GLYPH: u32 = fmt;
pub const MAXIMIZE_GLYPH: u32 = fmt;
pub const MAXIMIZE_GLYPH_INTERIOR: u32 = fmt;
pub const MINIMIZE_GLYPH: u32 = fmt;