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
//! Shared terminal breakpoints.
//!
//! Every screen that reflows has to agree on where the breaks are. If two
//! screens each invent their own numbers, the same terminal width produces
//! a two column grid on one and a three column grid on the other, and a
//! user resizing the window sees the app disagree with itself.
//!
//! So there is one table, here, and every responsive screen reads it.
/// Width at which a card grid gets three columns.
pub const GRID_THREE_COL_MIN: u16 = 90;
/// Width at which a card grid gets two columns.
pub const GRID_TWO_COL_MIN: u16 = 56;
/// Columns a card grid should use at this width: three when there is room
/// for them, two when there is some, one when there is not.
/// Width at which Mission Control gets its two column split.
pub const MC_SPLIT_MIN: u16 = 100;
/// Width at which that split widens to the wide 40/60 ratio. Below this and
/// above [`MC_SPLIT_MIN`] the left column gets 45% instead of 40%.
pub const MC_WIDE_MIN: u16 = 120;
/// Does Mission Control have room for two columns at this width? Below this
/// it shows one panel at a time, filling the area.