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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user