writ 0.17.0

A hybrid markdown editor combining raw text editing with live inline rendering
Documentation
//! Appearance / frame constants, in one place so the shell (which renders) and the
//! layout tests (which reproduce the frame) share a single source of truth rather than
//! each hardcoding the same numbers. All values are logical px unless noted.

/// Padding around the document body. The bottom uses `2 × PADDING` so the last line
/// clears the status bar.
pub const PADDING: f32 = 24.0;
/// Maximum content (body) width for readability. On windows wider than this plus the
/// side padding, the body is capped at this width and centered instead of sprawling
/// edge-to-edge; narrower windows just use `PADDING` on each side.
pub const MAX_CONTENT_WIDTH: f32 = 880.0;
/// Body font size.
pub const FONT_SIZE: f32 = 18.0;
/// Line height as a multiple of the font size (CSS-unitless semantics).
pub const LINE_HEIGHT: f32 = 1.5;
/// Line height for chrome/overlay UI text (title bar, status bar, popovers, image
/// labels) — tighter than the document body.
pub const UI_LINE_HEIGHT: f32 = 1.3;
/// Height of the bottom status bar.
pub const STATUS_BAR_H: f32 = 30.0;
/// Width of the right-docked document-map / outline panel when open (0 when closed).
/// The document region insets by this amount so it never draws under the panel.
pub const OUTLINE_WIDTH: f32 = 240.0;
/// Height of one row of the bottom-docked find bar (the search row; Replace mode adds a
/// second). The bar's total height adds a small vertical pad on top of `rows × this`.
pub const FIND_ROW_H: f32 = 30.0;
/// Text caret width.
pub const CARET_WIDTH: f32 = 2.0;
/// Scroll distance per wheel line-delta.
pub const WHEEL_LINE_STEP: f32 = 48.0;