Tokenize remaining component layout metrics

- Add combobox, alert edge, and code gutter tokens.
- Replace rem-derived literals in alert, combobox, code, and diff.
This commit is contained in:
2026-11-16 18:35:43 +07:00
parent 1dafa87bef
commit 2c92f26e20
6 changed files with 30 additions and 14 deletions
+8
View File
@@ -43,6 +43,14 @@ pub const DIALOG_MIN_WIDTH: Pixels = px(384.0);
pub const MENU_MIN_WIDTH: Pixels = px(224.0);
/// The width of the pushed-alert stack.
pub const ALERT_STACK_WIDTH: Pixels = px(320.0);
/// The accent edge of an inline alert.
pub const ALERT_EDGE_WIDTH: Pixels = px(6.0);
/// The default width of a combobox trigger.
pub const COMBOBOX_WIDTH: Pixels = px(192.0);
/// The narrowest a combobox trigger may shrink.
pub const COMBOBOX_MIN_WIDTH: Pixels = px(96.0);
/// The width of a code view's line-number gutter.
pub const CODE_GUTTER_WIDTH: Pixels = px(40.0);
/// The width of the speech waveform strip.
pub const SPEECH_WAVEFORM_WIDTH: Pixels = px(96.0);
/// The line-height ratio of monospace code.