Docs · API reference · Verso.Abstractions

ThemeSpacing Class#

Defines the spacing and dimension constants for a Verso notebook theme. All values are in device-independent pixels.

public sealed record ThemeSpacing : System.IEquatable<Verso.Abstractions.ThemeSpacing>

Inheritance System.Object → ThemeSpacing

Implements System.IEquatable<ThemeSpacing>

Properties#

ButtonBorderRadius Property#

Corner border radius for buttons, in pixels.

public double ButtonBorderRadius { get; init; }

Property Value#

System.Double

CellBorderRadius Property#

Corner border radius for notebook cells, in pixels.

public double CellBorderRadius { get; init; }

Property Value#

System.Double

CellGap Property#

Vertical gap between consecutive cells, in pixels.

public double CellGap { get; init; }

Property Value#

System.Double

CellPadding Property#

Inner padding within each notebook cell, in pixels.

public double CellPadding { get; init; }

Property Value#

System.Double

ContentMarginHorizontal Property#

Horizontal margin around the main content area, in pixels.

public double ContentMarginHorizontal { get; init; }

Property Value#

System.Double

ContentMarginVertical Property#

Vertical margin around the main content area, in pixels.

public double ContentMarginVertical { get; init; }

Property Value#

System.Double

OutputPadding Property#

Inner padding within cell output regions, in pixels.

public double OutputPadding { get; init; }

Property Value#

System.Double

ScrollbarWidth Property#

Width of scrollbar tracks, in pixels.

public double ScrollbarWidth { get; init; }

Property Value#

System.Double

ShapeFull Property#

Corner radius that fully rounds an element into a pill, in pixels.

public double ShapeFull { get; init; }

Property Value#

System.Double

ShapeLarge Property#

Corner radius for cards, panels, and dialogs, in pixels.

public double ShapeLarge { get; init; }

Property Value#

System.Double

ShapeMedium Property#

Corner radius for grouped controls, menus, and popovers, in pixels.

public double ShapeMedium { get; init; }

Property Value#

System.Double

ShapeSmall Property#

Corner radius for small elements: badges, chips, inline code, and the editor surface inside a cell. In pixels.

public double ShapeSmall { get; init; }

Property Value#

System.Double

Remarks#

ShapeSmall through ShapeFull are a scale, not four independent values. Pick by the size of the thing being rounded rather than by what it is: small for anything roughly one line tall, medium for grouped controls and menus, large for cards and panels, full for pills. A theme that wants square corners sets all four to zero.

SidebarWidth Property#

Width of the sidebar panel, in pixels.

public double SidebarWidth { get; init; }

Property Value#

System.Double

ToolbarHeight Property#

Height of the main toolbar, in pixels.

public double ToolbarHeight { get; init; }

Property Value#

System.Double